﻿/*Header*/
.text-ar {
    /*font-family: "Tajawal", sans-serif !important;*/
}

/*From Global CSS*/

.accordion-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
}

.accordion-header {
    width: 100%;
    background: #002d16;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-align: right;
    padding: 12px 15px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.arrow {
    transition: transform 0.3s ease;
}

.accordion-item.active .arrow {
    transform: rotate(90deg); /* rotate arrow when open */
}

.accordion-content {
    max-height: 0;
    overflow: auto;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 15px;
}

    .accordion-content a {
        display: block;
        padding: 8px 0;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.3s;
    }

        .accordion-content a:hover {
            color: #0077b6;
        }

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 0px 15px;
}

.header-log-menu {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0px;
}

.sidebar-header-employee {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease-in-out;
    z-index: 999;
}

    .sidebar-header-employee.active {
        right: 0;
    }

    .sidebar-header-employee a {
        display: block;
        padding: 12px;
        margin: 6px 0;
        text-decoration: none;
        color: #333;
        border-radius: 4px;
    }



.sidebar-close {
    display: flex;
    background: none;
    border: none;
    font-size: 22px;
    color: #333;
    cursor: pointer;
}

@media (max-width: 1200px) {

    .menu-toggle {
        display: block;
        float: left;
        cursor: pointer;
    }

    .sidebar {
        display: none !important;
    }
}

@media (min-width: 1201px) {
    .menu-toggle {
        display: none !important; /* hide toggle button */
    }

    .header-log-menu {
        width: auto !important; /* make width fit content */
        justify-content: flex-start; /* align items naturally */
        gap: 15px; /* optional spacing between logo & title */
    }
}

    .custom-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background-color: rgba(255,255,255,.7);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 24px;
        color: #333;
        z-index: 10;
        transition: all .3s ease;
    }

        .custom-nav:hover {
            background-color: #fff;
        }

        .custom-nav.custom-prev {
            left: 20px;
        }

        .custom-nav.custom-next {
            right: 20px;
        }

    .box-facilites {
        position: relative;
    }

        .box-facilites .overlay {
            width: 100%;
            height: 100%;
            top: 0;
            position: absolute;
            background: linear-gradient(to bottom,rgba(0,0,0,0),#000);
        }

        .box-facilites .content {
            position: absolute;
            bottom: 2%;
            padding: 5%;
        }

            .box-facilites .content h4 {
                text-transform: uppercase;
            }

    .event-schedule .box-event {
        background: #fff5e9;
    }

        .event-schedule .box-event .img {
            width: 250px;
            height: 250px;
            object-fit: cover;
        }

    .header {
        background: #002d16;
        color: #fff;
        padding: 10px 0;
    }

    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /*max-width: 1200px;*/
        width: 100%;
        margin: 0 auto;
        padding: 0 20px;
    }

    .logo-section {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .logo {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        color: #1a5f3f;
    }

        .logo img {
            height: 58px;
            margin-right: 10px;
        }

    .site-title {
        font-size: 18px;
        font-weight: bold;
    }

    .header-actions {
        display: flex;
    }

    .lang-switch {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 12px;
    }

    .custom-btn {
        display: inline-block;
        padding: 8px 20px;
        color: #fff;
        background-color: transparent;
        border: 1px solid #fff;
        border-radius: 20px;
        position: relative;
        text-decoration: none;
        font-size: 16px;
    }

        .custom-btn:hover {
            background-color: #ffd162;
            color: #000000;
        }

/*a.custom-btn:hover {
    background-color: #ffd162;
    color: #000000;
}*/

.button-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

    .btn-top {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 18px;
        border: 1px solid;
        border-radius: 25px;
        font-size: 16px;
        cursor: pointer;
        background: transparent;
        transition: .3s;
    }

    .btn-inbox {
        border-color: #004225;
        color: #004225;
    }

        .btn-inbox:hover {
            background: #004225;
            color: #fff;
        }

    .btn-logout {
        border-color: #b71c1c;
        color: #b71c1c;
    }

        .btn-logout:hover {
            background: #b71c1c;
            color: #fff;
        }

    .icon {
        font-size: 18px;
    }

    .date-box {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: #003c27;
        font-weight: bold;
        font-size: 16px;
    }

        .date-box .icon {
            font-size: 22px;
        }

    .nav-bar {
        background: #f8f9fa;
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
    }

    .nav-content {
        /*max-width: 1200px;*/
        width: 100%;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-buttons {
        display: flex;
        gap: 10px;
    }

    .nav-btn {
        background: #28a745;
        color: #fff;
        border: 0;
        padding: 8px 20px;
        border-radius: 20px;
        font-size: 14px;
        cursor: pointer;
    }

        .nav-btn:hover {
            background: #b71c1c;
            color: #fff;
        }

        .nav-btn.secondary {
            width: 269px;
        }

    .highlight-name {
        background-color: #fff;
        color: #00a651;
        padding: 10px;
        border-radius: 20px;
    }

    .note-box {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        border-radius: 8px;
        margin: 20px 0;
        direction: rtl;
    }

    .note-icon {
        font-weight: bold;
        padding: 3px 14px;
        font-size: 22px;
        color: #d32f2f;
        border: 2px solid;
        border-radius: 11px;
    }

    .note-text p {
        margin: 0;
        line-height: 1.6;
        /*color: #575757;*/
        font-size: 15px;
        color: #b71c1c;
    }

    .user-info {
        color: #28a745;
        font-weight: bold;
    }

    .main-content {
        /*max-width: 1200px;*/
        margin: 20px auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 20px;
    }

    .content-area {
        background: #fff;
        overflow: hidden;
    }

    .content-header {
        background: #002d16;
        color: #fff;
        padding: 12px 20px;
        font-weight: bold;
        font-size: 14px;
    }

    .content-body {
        padding: 20px;
    }

    .form-section {
        padding: 10px;
        margin-bottom: 20px;
        background-color: #f0fff8;
        border: 1px #959595 solid;
    }

    .form-title {
        color: #002d16;
        font-weight: bold;
        margin-bottom: 15px;
    }

    .form-grid {
        display: grid;
        grid-template-columns: 50% 50%;
        gap: 20px;
        margin-bottom: 20px;
    }

    .form-group {
        display: grid;
        grid-template-columns: 130px 1fr;
    }

    .form-group-left {
        display: grid;
        grid-template-columns: 1fr 224px;
    }

    .form-group label {
        display: flex;
        align-items: center;
        margin-bottom: 5px;
        font-weight: bold;
        color: #333;
    }

    .form-group input, .form-group select {
        height: 41px;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
    }

    .form-group-left label {
        display: flex;
        align-items: center;
        margin-bottom: 5px;
        font-weight: bold;
        color: #333;
    }

    .form-group-left input, .form-group-left textarea .form-group-left select {
        height: 41px;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
    }

    .checkbox-group {
        display: flex;
        align-items: center;
        gap: 30px;
        margin: 10px 0;
    }

    .warning-box {
        font-weight: bold;
        font-size: 14px;
        background: #ffd064;
        border: 0 solid #ffd064;
        border-radius: 0;
        padding: 11px;
        margin: 0 0;
        color: #856404;
    }

    .action-buttons {
        display: flex;
        gap: 10px;
        margin-top: 20px;
        justify-content: flex-end;
    }

    .btnnew {
        padding: 10px 30px;
        border-radius: 26px;
        cursor: pointer;
        font-weight: bold;
    }

        .btnnew:hover {
            background: #b71c1c;
            color: #fff;
        }

    .btnnewcancel {
        padding: 10px 30px;
        border-radius: 26px;
        cursor: pointer;
        font-weight: bold;
    }

        .btnnewcancel:hover {
            background: #b71c1c;
            color: #fff;
        }

    .btn-confirm {
        background: #28a745;
        color: #fff;
        border: 0;
        color: #fff;
        padding: 8px 20px;
        border-radius: 20px;
        font-size: 14px;
        cursor: pointer;
    }

    .btn-cancel {
        background: transparent;
        color: #000;
        border: 1px solid #000;
        padding: 8px 20px;
        border-radius: 20px;
        font-size: 14px;
        cursor: pointer;
    }

    .btn-confirm:hover {
        color: #fff;
    }

    .data-table {
        width: 100%;
        border-collapse: collapse;
    }

        .data-table th, .data-table td {
            border: 1px solid #ddd;
            padding: 12px;
            text-align: center;
        }

        .data-table th {
            /*background: #002d16;*/
            background: #28a745;
            color: #fff;
            font-weight: bold;
            font-size: 13px;
        }

    .sidebar {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .sidebar-section {
        background: #fff;
        overflow: hidden;
    }

    .sidebar-header {
        background: #002d16;
        color: #fff;
        padding: 12px 15px;
        font-weight: bold;
        font-size: 14px;
    }

    .sidebar-content {
        padding: 15px;
    }

    .sidebar-link {
        width: 100%;
        display: block;
        color: #5e6461;
        text-decoration: none;
        padding: 8px 0;
        border-bottom: 1px solid #5e6461 !important;
        font-size: 14px;
        font-weight: bold;
        background-color: #f9f9f9;
        margin-bottom: 5px;
    }

        .sidebar-link:hover {
            /*color: #28a745;*/
            background-color: #ffd162;
            color: #000000;
        }

        .sidebar-link:last-child {
            border-bottom: 0;
        }

    .form-order {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .checkbox-group {
        display: flex;
        gap: 30px;
        flex-wrap: wrap;
    }

        .checkbox-group > div {
            display: flex;
            align-items: center;
            gap: 10px;
        }

    .checkbox-btn {
        appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #ddd;
        border-radius: 3px;
        position: relative;
        cursor: pointer;
        transition: all .3s ease;
    }

        .checkbox-btn:checked {
            background-color: #28a745;
            border-color: #28a745;
        }

            .checkbox-btn:checked::after {
                content: "✓";
                position: absolute;
                color: #fff;
                font-size: 14px;
                font-weight: bold;
                top: 50%;
                left: 50%;
                transform: translate(-50%,-50%);
            }

        .checkbox-btn:hover {
            border-color: #28a745;
        }

    .textarea-btn {
        height: 100px;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        resize: none;
    }

@media(max-width: 1200px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .button-container {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-top {
        width: 100%;
        justify-content: center;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .nav-btn {
        width: 100% !important;
        text-align: center;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group, .form-group-left {
        grid-template-columns: 1fr;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

        .data-table table {
            width: 100%;
            min-width: 600px;
        }

    .highlight-name {
        padding: 3px;
    }
}

    .green-button {
        border-radius: 22.5px;
        background: #00a651;
        text-decoration: none;
        color: #fff;
        padding: 9px 40px;
        border: 1px solid #00a651;
        transition: .3s ease-in;
    }

        .green-button:hover {
            background: transparent;
            border: 1px solid #00a651;
            color: #00a651;
            transition: .3s ease-in;
        }

        .green-button.margin-plus {
            padding: 9px 40px !important;
        }

        .green-button.footerbutton {
            color: #fff;
            border: 1px solid #fff;
            transition: .3s ease-in;
        }

@media(max-width: 1200px) {
    .green-button {
        padding: 9px;
    }
}

    .green-button-footer {
        border-radius: 22.5px;
        background: #00a651;
        text-decoration: none;
        color: #fff;
        padding: 9px 40px;
        border: 1px solid #00a651;
        transition: .3s ease-in;
    }

        .green-button-footer:hover {
            background: transparent;
            border: 1px solid #fff;
            color: #fff;
            transition: .3s ease-in;
        }

    .Green-color {
        color: #00a651;
    }

    .text-gray {
        color: #4b4b4b;
    }
    /*Body*/
    .profile-avatar-container {
        /*margin:20px;*/
    }

    .container-content {
        /*max-width: 1200px;*/
        width: 100%;
        margin: 0 auto;
    }

    .profile-section {
        background: white;
        border-radius: 0.5rem;
        margin-bottom: 2rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .profile-content {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 1rem;
        align-items: start;
    }

    .profile-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .info-column {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .info-item {
        display: grid;
        grid-template-columns: 200px 1fr;
        border-right: 3px solid #002D16;
        justify-content: space-between;
        align-items: center;
        padding: 1px 3px;
    }

    .info-label {
        font-weight: bold;
        color: #002d16;
        font-size: 16px;
        background-color: #fafafa;
    }

    .info-value {
        /*color: #6b7280;*/
        /*color: #007bff;*/
        color: #28a745;
        font-size: 1.0rem;
        margin-right: 5px;
        margin-left: 5px;
        font-weight: 700;
    }

    .profile-avatar {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid #059669;
    }

    .form-section-profile {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 2rem;
        padding: 0 13px;
    }

    .profile-form-group {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .profile-form-label {
        font-weight: 600;
        min-width: 220px;
        color: #002D16;
    }

    .profile-form-text {
        font-size: 14px;
        margin: 0px 0 -1px 0;
        color: #002D16;
    }

    .edit-number-btn {
        border: 1px solid #b71c1c;
        border-radius: 20px;
        padding: 6px 13px;
        color: #b71c1c;
        margin: 0;
        cursor: pointer;
        font-size: 1.0rem;
        text-decoration:none;
    }

        .edit-number-btn:hover {
            border: 1px solid #b71c1c;
            background-color: #b71c1c;
            color: #ffffff;
        }

    .btn-primary {
        background-color: #059669;
        color: white;
        border: none;
        padding: 0.5rem 1.5rem;
        border-radius: 0.375rem;
        cursor: pointer;
        font-family: inherit;
        font-weight: 600;
        transition: background-color 0.2s;
    }

        .btn-primary:hover {
            background-color: #047857;
        }

    .btn-outline {
        background-color: transparent;
        color: #059669;
        border: 1px solid #059669;
        padding: 0.5rem 1.5rem;
        border-radius: 0.375rem;
        cursor: pointer;
        font-family: inherit;
        font-weight: 600;
        transition: all 0.2s;
    }

        .btn-outline:hover {
            background-color: #059669;
            color: white;
        }

    .notifications-section {
        background: white;
        border-radius: 0.5rem;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .notifications-header {
        background-color: #002d16;
        color: white;
        padding: 1rem 2rem;
        font-weight: 700;
    }

    .notification-item {
        display: flex;
        align-items: center;
        padding: 9px 7px;
        border-bottom: 1px solid #e5e7eb;
        gap: 1rem;
        background-color: #fff8e5;
        margin-bottom: 5px;
    }

        .notification-item:last-child {
            border-bottom: none;
        }

    .notification-icon {
        width: 40px;
        height: 40px;
        background-color: #10b981;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.2rem;
    }

    .notification-content {
        flex: 1;
    }

    .notification-title {
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.25rem;
    }

    .notification-img {
        width: 85px;
        height: 63px;
        object-fit: cover;
    }

    .notification-text {
        color: #6b7280;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .notification-badge {
        background-color: #10b981;
        color: white;
        padding: 0.25rem 0.75rem;
        border-radius: 1rem;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .notification-date {
        color: #9ca3af;
        font-size: 0.8rem;
        margin-left: 1rem;
    }

@media (max-width: 1200px) {
    .profile-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-info {
        grid-template-columns: 1fr;
    }

    .form-section-profile {
        grid-template-columns: 1fr;
    }

    .profile-form-group {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-form-label {
        min-width: auto;
    }
}
    /*FLEX table:*/
    .bup_data-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .bup_data-row {
        display: flex;
        flex-wrap: wrap;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        padding: 10px;
        direction: rtl; /* For Arabic layout */
    }

    .bup_data-cell {
        flex: 1 1 25%; /* Adjust width on larger screens */
        padding: 8px;
        box-sizing: border-box;
        border-bottom: 1px solid #eee;
    }

    .bup_data-cell-header {
        background-color: #28a745;
    }
    /* Responsive: Stack vertically on small screens */
@media (max-width: 1200px) {
    .bup_data-row-header {
        display: none;
    }

    .bup_data-row {
        flex-direction: column;
    }

    .bup_data-cell {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        border-bottom: 1px solid #ccc;
    }

        .bup_data-cell::before {
            content: attr(data-label);
            font-weight: bold;
            padding-left: 10px;
        }
}


.GridPager a, .GridPager span {
    display: inline-block;
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid #ccc;
    margin: 2px;
    padding: 0 8px; /* مهم للنصوص مثل التالي والسابق */
    box-sizing: border-box;
}

/* الروابط العادية */
.GridPager a {
    background-color: #f5f5f5;
    color: #969696;
}

/* الصفحة الحالية */
.GridPager span {
    background-color: #02954a;
    color: #fff;
    border-color: #02954a;
}
