@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --blue: #b70000;
    --blue-dark: #5f0a0a; 
    --gold: #c9a227;
    --white: #ffffff;
    --light: #f6f7f9;
    --gray: #e6e8ed;
    --text: #1f2937;
    --muted: #6b7280;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', sans-serif;
}

body {
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
    color: var(--text);
    direction: rtl;
}

.container {
    width: 92%;
    max-width: 1100px;
    margin: 40px auto;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    border: 1px solid #eef0f3;
}

.page-header {
    text-align: center;
    margin-bottom: 25px;
}

.page-header h1 {
    color: var(--blue);
    font-size: 34px;
    margin-bottom: 10px;
    font-weight: 800;
}

.page-header p {
    color: var(--muted);
    font-size: 17px;
}

.section-title {
    margin: 28px 0 18px;
    padding: 12px 16px;
    border-right: 5px solid var(--gold);
    background: #fafafa;
    border-radius: 12px;
    color: var(--blue-dark);
    font-weight: 700;
    font-size: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-weight: 700;
    color: #374151;
}

input,
select,
textarea {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #d9dde4;
    background: #fff;
    font-size: 15px;
    transition: 0.25s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(31, 78, 140, 0.08);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.radio-box,
.check-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fafbfd;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 12px;
}

.radio-list {
    display: grid;
    gap: 12px;
}

button,
.btn {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white;
    border: none;
    padding: 14px 26px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: 0.25s;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37, #b88916);
    color: #fff;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

table th {
    background: var(--blue);
    color: white;
    padding: 16px;
    text-align: right;
}

table td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f4;
}

table tr:hover {
    background: #fafbfd;
}

.badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #eef5ff;
    color: var(--blue);
}

.file-link {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.file-link:hover {
    color: var(--gold);
}

.info-box {
    background: #fafafa;
    border: 1px solid #ececec;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 14px;
}

.info-box strong {
    color: var(--blue-dark);
}

.login-box {
    max-width: 450px;
    margin: 80px auto;
}

.success-box {
    text-align: center;
    padding: 50px 25px;
}

.success-box h2 {
    color: var(--blue);
    margin-bottom: 15px;
}

.small {
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .card {
        padding: 20px;
    }
}



.attachments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 15px;
}

.attachment-card {
    background: #ffffff;
    border: 1px solid #e8ebf0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.attachment-card.empty {
    background: #fafafa;
    border-style: dashed;
}

.attachment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    background: linear-gradient(180deg, #f9fbff 0%, #f5f7fa 100%);
    border-bottom: 1px solid #eef1f4;
    flex-wrap: wrap;
}

.attachment-head h4 {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 18px;
    font-weight: 800;
}

.attachment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.attachment-type {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}

.attachment-name {
    color: #6b7280;
    font-size: 14px;
    word-break: break-all;
}

.attachment-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 12px;
}

.attachment-body {
    padding: 20px;
}

.attachment-preview {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.image-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 240px;
    background: #f8fafc;
}

.image-preview img {
    max-width: 100%;
    max-height: 500px;
    display: block;
    object-fit: contain;
}

.pdf-preview iframe {
    width: 100%;
    height: 520px;
    border: none;
    display: block;
    background: #fff;
}

.attachment-file-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px dashed #d5dbe3;
    border-radius: 14px;
    background: #fafbfd;
}

.file-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef5ff;
    font-size: 24px;
}

@media (max-width: 768px) {
    .attachment-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .pdf-preview iframe {
        height: 360px;
    }
}


.badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #eef5ff;
    color: #1f4e8c;
}

.small {
    color: #6b7280;
    font-size: 14px;
    margin-top: 6px;
    display: inline-block;
}
.site-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    border-bottom: 1px solid #e8ebef;
    padding: 0;
    position: relative;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-logo img {
    max-height: 85px;
    max-width: 100%;
    object-fit: contain;
}

.header-logo:first-child {
    justify-content: flex-start;
}

.center-logo {
    justify-content: center;
}

.header-logo:last-child {
    justify-content: flex-end;
}

.site-footer {
    margin-top: 50px;
    background: linear-gradient(180deg, #f7f8fa 0%, #eef1f5 100%);
    border-top: 1px solid #e4e8ee;
    padding: 22px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-copy {
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 14px;
}

.footer-contact a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    transition: 0.25s;
}

.footer-contact a:hover {
    color: var(--gold);
}

@media (max-width: 768px) {

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-contact {
        justify-content: center;
    }
}



