﻿@font-face {
    font-family: "NEOSANSARABIC";
    font-style: normal;
    src: url("https://eservices.ammanu.edu.jo/Careers/Academic/assets/fonts/NEOSANSARABIC-Medium.ttf") format("truetype");
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    background-color: #f5f6f8;
    color: #333333;
    font-family: NEOSANSARABIC, Tahoma, Arial, sans-serif;
}

    body.rtl {
        direction: rtl;
        text-align: right;
    }

    body.ltr {
        direction: ltr;
        text-align: left;
    }

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 5px solid #2a2866;
    padding: 17px 30px;
}

.header-content {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.rtl .header-content {
    flex-direction: row;
}

.ltr .header-content {
    flex-direction: row-reverse;
}

.header-text {
    flex: 1;
}

.system-title {
    color: #2a2866;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.5;
}

.language-switch {
    margin-top: 7px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
}

.language-link {
    color: #777777 !important;
    text-decoration: none !important;
}

    .language-link:hover {
        color: #daa428 !important;
    }

.language-separator {
    color: #cccccc;
    padding: 0 7px;
}

.logo-wrapper {
    flex-shrink: 0;
}

.logo {
    width: auto;
    max-width: 280px;
    height: auto;
    display: block;
}

.top-navigation {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.navigation-content {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

    .navigation-content a {
        color: #2a2866;
        text-decoration: none !important;
        font-size: 14px;
        padding: 14px 18px;
        border-bottom: 3px solid transparent;
        transition: all .2s ease;
    }

        .navigation-content a:hover {
            color: #daa428;
            border-bottom-color: #daa428;
            background-color: #fafafa;
        }

.main-container {
    width: 100%;
    max-width: 1100px;
    margin: 32px auto 0 auto;
    padding: 0 20px 40px 20px;
    flex: 1;
}

.page-heading-box {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 22px 25px;
    margin-bottom: 24px;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.page-heading {
    color: #2a2866;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 7px 0;
}

.page-subtitle {
    margin: 0;
    color: #777777;
    font-size: 14px;
    line-height: 1.8;
}

.content-card, .panel {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 28px;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.section-title {
    width: 100%;
    color: #2a2866;
    font-size: 19px;
    font-weight: bold;
    padding-bottom: 12px;
    margin-bottom: 22px;
    border-bottom: 2px solid #daa428;
}

.welcome-box {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 22px 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 12px rgba(0,0,0,.05);
}

.welcome-title {
    color: #2a2866;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 7px;
}

.welcome-text {
    margin: 0;
    color: #777777;
    font-size: 14px;
    line-height: 1.9;
}

.services-title {
    color: #2a2866;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin: 6px 0 25px 0;
}

.actions-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 22px;
    flex-wrap: wrap;
}

.action-card {
    width: 315px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 28px 22px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
}

    .action-card:hover {
        transform: translateY(-5px);
        border-color: #daa428;
        box-shadow: 0 8px 25px rgba(0,0,0,.10);
    }

.action-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: #f1f1f8;
    color: #2a2866;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 31px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.action-title {
    color: #2a2866;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.action-description {
    min-height: 72px;
    color: #777777;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 18px;
}

.action-button {
    display: inline-block;
    min-width: 155px;
    background-color: #2a2866;
    color: #ffffff !important;
    border-radius: 5px;
    padding: 10px 18px;
    font-size: 14px;
    text-align: center;
}

.action-card:hover .action-button {
    background-color: #daa428;
}

.form-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group {
    width: 100%;
}

    .form-group.full, .form-grid .full {
        grid-column: 1 / -1;
    }

    .form-label, .form-group label {
        display: block;
        color: #555555;
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 8px;
    }

.input {
    width: 100%;
    min-height: 44px;
    background-color: #ffffff;
    border: 1px solid #d9dde3;
    border-radius: 6px;
    padding: 9px 12px;
    color: #333333;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

textarea.input {
    min-height: 120px;
    resize: vertical;
}

.input:focus {
    border-color: #2a2866;
    box-shadow: 0 0 0 3px rgba(42,40,102,.08);
}

.actions {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn {
    min-width: 135px;
    min-height: 42px;
    border-radius: 5px;
    border: 0;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn.primary {
        background-color: #2a2866;
        color: #ffffff;
    }

        .btn.primary:hover {
            background-color: #daa428;
        }

    .btn.secondary {
        background-color: #f0f0f5;
        color: #2a2866;
        border: 1px solid #d9d9e5;
    }

        .btn.secondary:hover {
            background-color: #e7e7f0;
        }

.message {
    display: block;
    margin-top: 18px;
    padding: 12px 15px;
    border-radius: 6px;
    color: #2a2866;
    background-color: #f4f4fa;
    font-weight: bold;
}

    .message:empty {
        display: none;
    }

.filters {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 22px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.grid {
    width: 100%;
    min-width: 800px;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

    .grid th {
        background-color: #2a2866;
        color: #ffffff;
        padding: 13px 12px;
        font-size: 13px;
        font-weight: bold;
        white-space: nowrap;
    }

    .grid td {
        color: #444444;
        padding: 13px 12px;
        border-bottom: 1px solid #eeeeee;
        font-size: 13px;
    }

    .grid tr:last-child td {
        border-bottom: 0;
    }

    .grid tr:nth-child(even) td {
        background-color: #fafafa;
    }

    .grid tr:hover td {
        background-color: #fffaf0;
    }

.footer {
    width: 100%;
    background-color: #daa428;
    color: #ffffff;
    text-align: center;
    padding: 19px 20px;
    margin-top: 35px;
    font-size: 14px;
}

.footer-separator {
    padding: 0 10px;
    opacity: .8;
}

@media (max-width: 850px) {
    .header {
        padding: 15px;
    }

    .header-content {
        flex-direction: column !important;
        text-align: center;
    }

    .system-title {
        font-size: 20px;
        text-align: center;
    }

    .language-switch {
        text-align: center;
    }

    .logo {
        max-width: 220px;
    }

    .navigation-content {
        justify-content: center;
    }

    .main-container {
        margin-top: 20px;
        padding: 0 12px 30px 12px;
    }

    .form-grid, .filters {
        grid-template-columns: 1fr;
    }

    .action-card {
        width: 100%;
    }

    .content-card, .panel {
        padding: 18px;
    }
}
