body {
    background: #f6f8fb;
    color: #263238;
    font-family: Arial, Tahoma, sans-serif;
}

.school-navbar {
    background: #17324d;
    padding: 14px 0;
}

.school-navbar .navbar-brand {
    color: #fff;
    font-weight: 700;
}

.school-navbar .nav-link {
    color: rgba(255,255,255,.85);
}

.school-navbar .nav-link:hover,
.school-navbar .nav-link.active {
    color: #fff;
}

.school-navbar .nav-link.active {
    font-weight: 700;
}

.director-name {
    color: #fff;
    font-size: 14px;
}

.school-btn {
    background: #17324d;
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 8px;
}

.school-btn:hover {
    background: #0f2539;
    color: #fff;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-header p {
    color: #7b8794;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,.05);
}

.stat-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3f8;
    border-radius: 10px;
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 28px;
    margin: 0;
}

.stat-card p {
    color: #7b8794;
    margin: 5px 0 0;
}

.content-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,.05);
}

.card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header-custom h4 {
    margin: 0;
}

.table th {
    background: #f8fafc;
    white-space: nowrap;
}

.upload-box {
    border: 2px dashed #ccd5df;
    padding: 35px;
    text-align: center;
    border-radius: 12px;
    background: #fafbfd;
}

.upload-box i {
    font-size: 40px;
    margin-bottom: 10px;
}

.upload-box p {
    margin-bottom: 5px;
    font-weight: 600;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.link-card {
    text-align: center;
}

.link-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.login-page {
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.login-card {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,.08);
    text-align: center;
}

.login-icon,
.public-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #eef3f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.school-footer {
    background: #17324d;
    color: #fff;
    margin-top: 60px;
    padding: 35px 0;
}

.school-footer p {
    color: rgba(255,255,255,.75);
}

.public-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.public-card {
    background: #fff;
    max-width: 700px;
    margin: auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,.08);
}

.document-summary {
    background: #f7f9fb;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
}

.recipient-box {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #e9f7ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
}

.completed-info {
    background: #f7f9fb;
    padding: 20px;
    border-radius: 10px;
    margin-top: 25px;
}

.signed-files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signed-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    background: #fafbfd;
}

.signed-file-details {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.signed-file-details strong,
.signed-file-details small {
    display: block;
}

.signed-file-details strong {
    overflow-wrap: anywhere;
}

.signed-file-details small {
    color: #7b8794;
    margin-top: 4px;
}

.signed-file-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
}

.signed-file-preview-frame {
    width: 100%;
    height: 75vh;
    border: 0;
    display: block;
}

.signed-file-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #17324d;
    background: #eef3f8;
    border-radius: 10px;
}

.documents-filter-card {
    padding: 22px 25px;
}

.documents-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.documents-count {
    color: #7b8794;
    font-size: 14px;
    margin-top: 4px;
}

.document-cell,
.recipient-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.document-cell {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.document-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3f8;
    color: #17324d;
    border-radius: 10px;
}

.document-cell small,
.recipient-cell small {
    color: #7b8794;
}

.category-pill {
    display: inline-block;
    background: #eef3f8;
    color: #17324d;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: #7b8794;
}

.empty-state i {
    font-size: 36px;
    margin-bottom: 12px;
    color: #17324d;
}

.empty-state h5 {
    color: #263238;
    margin-bottom: 6px;
}

.documents-table tbody tr:hover {
    background: #f8fafc;
}

@media (max-width: 768px) {

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
    }

    .public-card {
        padding: 25px;
    }

    .signed-file-item {
        align-items: flex-start;
        flex-direction: column;
    }

}
