.neerp-student-diary {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #002947;
}

.neerp-student-diary-header,
.neerp-student-diary-card {
    background: #fff;
    border: 1px solid #d4e5ef;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 26px rgba(0, 41, 71, .06);
    margin-bottom: 16px;
}

.neerp-student-diary-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.neerp-student-diary-header span,
.neerp-student-diary-entry-head span {
    display: block;
    color: #52677c;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 4px;
}

.neerp-student-diary-header h2,
.neerp-student-diary-entry-head h3 {
    margin: 0 0 4px;
    color: #002947;
}

.neerp-student-diary-header p {
    margin: 0;
    color: #52677c;
}

.neerp-student-diary-header label,
.neerp-student-diary-filters label {
    font-weight: 500;
    color: #002947;
}

.neerp-student-diary-header select,
.neerp-student-diary-filters input {
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    border: 1px solid #cfe0eb;
    border-radius: 10px;
    padding: 9px 12px;
    color: #002947;
    background: #fff;
    box-sizing: border-box;
}

.neerp-student-diary-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    background: #f8fbfd;
    border: 1px solid #d4e5ef;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px;
}

.neerp-student-diary-filters button {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #0F3A4E;
    background: #0F3A4E;
    color: #fff;
    padding: 0 16px;
    font-weight: 500;
    cursor: pointer;
}

.neerp-student-diary-entry-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #d4e5ef;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.neerp-student-diary-entry-head small {
    font-weight: 500;
    color: #0F3A4E;
}

.neerp-student-diary-subject {
    border: 1px solid #d4e5ef;
    border-left: 5px solid #0F3A4E;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 14px;
    background: #fff;
}

.neerp-student-diary-subject.priority-important {
    border-left-color: #b7791f;
}

.neerp-student-diary-subject.priority-urgent {
    border-left-color: #b42318;
}

.neerp-student-diary-subject h4 {
    margin: 0 0 12px;
    color: #0F3A4E;
    font-size: 20px;
}

.neerp-student-diary-subject strong {
    display: block;
    margin-top: 10px;
    color: #002947;
}

.neerp-student-diary-subject p {
    margin: 4px 0 0;
    line-height: 1.65;
}

.neerp-student-diary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.neerp-student-diary-meta span,
.neerp-student-diary-meta a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #edf3f7;
    color: #0F3A4E;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

@media (max-width: 768px) {
    .neerp-student-diary-header,
    .neerp-student-diary-entry-head {
        display: block;
    }
    .neerp-student-diary-header label {
        display: block;
        margin-top: 14px;
    }
    .neerp-student-diary-filters {
        display: block;
    }
    .neerp-student-diary-filters button,
    .neerp-student-diary-filters label {
        display: block;
        width: 100%;
        margin-top: 10px;
    }
}

/* Buttons keep their original colors on hover and receive only a stronger shadow. */
.neerp-student-diary-filters button:hover,
.neerp-student-diary-filters button:focus,
.neerp-student-diary-meta a:hover,
.neerp-student-diary-meta a:focus {
    box-shadow: 0 14px 28px rgba(15, 58, 78, .22);
    transform: translateY(-1px);
    text-decoration: none;
}

.neerp-student-diary-filters button:hover,
.neerp-student-diary-filters button:focus {
    background: #0F3A4E;
    color: #ffffff;
    border-color: #0F3A4E;
}

.neerp-student-diary-meta a:hover,
.neerp-student-diary-meta a:focus {
    background: #edf3f7;
    color: #0F3A4E;
}

.neerp-student-diary .neerp-student-diary-filters button,
.neerp-student-diary .neerp-student-diary-filters button:hover,
.neerp-student-diary .neerp-student-diary-filters button:focus {
    background: #0F3A4E !important;
    color: #ffffff !important;
    border-color: #0F3A4E !important;
}

.neerp-diary-filters small {
    display: block;
    margin-top: 5px;
    color: #6d8395;
    font-size: 12px;
}


.neerp-diary-date-display {
    cursor: pointer;
    background: #fff;
}

.neerp-diary-date-picker {
    position: absolute;
    z-index: 999999;
    background: #fff;
    border: 1px solid #cfdbe6;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(15, 58, 78, .18);
    padding: 12px;
    width: 310px;
    max-width: calc(100vw - 24px);
}

.neerp-diary-date-picker-head {
    display: grid;
    grid-template-columns: 36px 1fr 88px 36px;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.neerp-diary-date-picker-head button,
.neerp-diary-date-picker-actions button {
    min-height: 34px;
    border: 1px solid #cfdbe6;
    background: #fff;
    color: #0F3A4E;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.neerp-diary-date-picker-head select {
    min-height: 34px;
    border: 1px solid #cfdbe6;
    border-radius: 10px;
    padding: 5px 8px;
}

.neerp-diary-date-picker-week,
.neerp-diary-date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.neerp-diary-date-picker-week span {
    color: #607484;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 4px 0;
}

.neerp-diary-date-picker-grid button,
.neerp-diary-date-picker-grid .empty {
    min-height: 34px;
    border-radius: 10px;
}

.neerp-diary-date-picker-grid button {
    border: 1px solid transparent;
    background: #f6fafc;
    color: #17354b;
    cursor: pointer;
}

.neerp-diary-date-picker-grid button:hover,
.neerp-diary-date-picker-grid button.selected {
    background: #0F3A4E;
    color: #fff;
}

.neerp-diary-date-picker-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}
