* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Inter', sans-serif;
    background-image: url("/assets/img/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.4);
        z-index: 0;
    }

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 100px;
    background: transparent;
    position: relative;
    z-index: 10;
}

.logo {
    width: 35px;
    transition: transform 0.3s;
}

    .logo:hover {
        transform: scale(1.05);
    }

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

    .nav-links a {
        color: #666;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s;
        position: relative;
        padding: 5px 0;
    }

        .nav-links a::after {
            content: "";
            position: absolute;
            bottom: -5px;
            right: 0;
            width: 0;
            height: 2px;
            background: #8b2332;
            transition: width 0.3s;
        }

        .nav-links a:hover {
            color: #8b2332;
        }

            .nav-links a:hover::after {
                width: 100%;
            }

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 18px;
    border-radius: 30px;
    transition: all 0.3s;
    position: relative;
}

    .user-profile:hover {
        background: rgb(155 28 31);
        
    }
    .user-profile:hover>span {
        color: white;
    }

.profile-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #8b2332;
    object-fit: cover;
}

.user-profile span {
    color: #333;
    font-size: 15px;
    font-weight: 500;
}


.dropdown-menu-website {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
    margin-top: 10px;
    overflow: hidden;
}

.user-profile:hover .dropdown-menu-website {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-website a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

    .dropdown-menu-website a:last-child {
        border-bottom: none;
    }

    .dropdown-menu-website a:hover {
        background: #f9f9f9;
        padding-right: 25px;
        color: #8b2332;
    }

    .dropdown-menu-website a svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

.dropdown-menu-website .welcome-text {
    padding: 14px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
}

/* Main Content */
.main-container {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 92px);
    padding: 60px 100px;
}

.form-section {
    position: absolute;
    left: 100px;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 500px;
}

.form-section-register {
    position: absolute;
    left: 100px;
    top: 40%;
    transform: translateY(-45%);
    width: 100%;
    max-width: 500px;
}

.form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 45px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

    .form-wrapper h1 {
        font-size: 28px;
        color: #333;
        margin-bottom: 35px;
        text-align: center;
        font-weight: 600;
    }

.form-group {
    margin-bottom: 22px;
}

    .form-group label {
        display: block;
        font-size: 15px;
        color: #666;
        margin-bottom: 8px;
        text-align: right;
        font-weight: 500;
    }

    .form-group input {
        width: 100%;
        padding: 13px 18px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.3s;
        text-align: right;
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        background: white;
    }

        .form-group input:focus {
            outline: none;
            border-color: #8b2332;
            box-shadow: 0 0 0 3px rgba(139, 35, 50, 0.1);
        }

        .form-group input::placeholder {
            color: #aaa;
            font-size: 13px;
        }

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #5b7fa6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.submit-btn-for-new-user {
    width: 100%;
    padding: 14px;
    background: #eee; /* Gray background */
    color: #5b7fa6; /* White text for contrast */
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

    .submit-btn-for-new-user a {
        text-decoration: none;
        color: #5b7fa6;
    }



    .submit-btn:hover {
        background: #4a6a8c;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(91, 127, 166, 0.3);
    }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
    z-index: 1001;
}

    .menu-toggle span {
        width: 28px;
        height: 3px;
        background: #333;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

/* Tablet Design */
@media (max-width: 1024px) {
    .header {
        padding: 20px 50px;
    }

    .nav-links {
        gap: 30px;
    }

        .nav-links a {
            font-size: 15px;
        }

    .main-container {
        padding: 50px 50px;
    }

    .form-section {
        left: 20px;
        max-width: 400px;
    }

    .form-section-register {
        bottom: 0;
        left: 5px;
        max-width: 400px;
    }

    .form-wrapper {
        padding: 40px 35px;
    }
}

/* Mobile Design */
@media (max-width: 768px) {
    body::before {
        background: rgba(255, 255, 255, 0.6);
    }

    .header {
        padding: 18px 25px;
        flex-wrap: nowrap;
    }

    .menu-toggle {
        display: flex;
        order: 1;
    }

    .logo {
        order: 2;
        height: 50px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .user-profile {
        order: 3;
        margin-right: auto;
    }

        .user-profile .welcome-text-desktop {
            display: none;
        }

    .profile-img {
        width: 38px;
        height: 38px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        flex-direction: column;
        gap: 0;
        background: white;
        padding: 80px 0 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1000;
    }

        .nav-links.active {
            right: 0;
        }

        .nav-links a {
            width: 100%;
            padding: 18px 30px;
            text-align: right;
            font-size: 16px;
            border-right: 3px solid transparent;
            transition: all 0.3s;
        }

            .nav-links a:hover {
                background: #f9f9f9;
                border-right-color: #8b2332;
                padding-right: 35px;
            }

            .nav-links a::after {
                display: none;
            }

    .main-container {
        padding: 40px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .form-section {
        position: relative;
        left: 0px;
        top: auto;
        transform: none;
        max-width: 450px;
    }

    form-section-register {
        position: relative;
        left: 0px;
        top: auto;
        transform: none;
        max-width: 450px;
    }

    .form-wrapper {
        padding: 35px 30px;
    }

        .form-wrapper h1 {
            font-size: 24px;
            margin-bottom: 30px;
        }

    .form-group {
        margin-bottom: 20px;
    }

        .form-group input {
            padding: 12px 16px;
        }

    .submit-btn {
        padding: 13px;
        font-size: 15px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header {
        padding: 15px 20px;
    }

    .logo {
        width: 35px;
    }

    .profile-img {
        width: 36px;
        height: 36px;
    }

    .nav-links {
        width: 260px;
        padding: 70px 0 30px;
    }

    .form-wrapper {
        padding: 30px 25px;
    }

        .form-wrapper h1 {
            font-size: 22px;
            margin-bottom: 25px;
        }

    .form-group {
        margin-bottom: 18px;
    }

        .form-group label {
            font-size: 14px;
        }

        .form-group input {
            padding: 11px 15px;
            font-size: 13px;
        }

    .submit-btn {
        padding: 12px;
        font-size: 15px;
    }
}


/* data section */
.data-section {
    position: absolute;
    left: 100px;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 380px;
}

.data-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 45px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

    .data-wrapper h1 {
        font-size: 28px;
        color: #333;
        margin-bottom: 35px;
        text-align: center;
        font-weight: 600;
    }

.data-group {
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

    .data-group:last-of-type {
        margin-bottom: 0;
        border-bottom: none;
    }

.data-label {
    font-size: 15px;
    color: #666;
    text-align: right;
    font-weight: 500;
}

.data-value {
    font-size: 15px;
    color: #333;
    text-align: left;
    font-weight: 600;
}

.edit-btn {
    width: 100%;
    padding: 14px;
    background: #5b7fa6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

    .edit-btn:hover {
        background: #4a6a8c;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(91, 127, 166, 0.3);
    }

/* Tablet Design for Data Section */
@media (max-width: 1024px) {
    .data-section {
        left: 20px;
        max-width: 400px;
    }

    .data-wrapper {
        padding: 40px 35px;
    }
}

/* Mobile Design for Data Section */
@media (max-width: 768px) {
    .data-section {
        position: relative;
        left: 0;
        top: auto;
        transform: none;
        max-width: 450px;
    }

    .data-wrapper {
        padding: 35px 30px;
    }

        .data-wrapper h1 {
            font-size: 24px;
            margin-bottom: 30px;
        }

    .data-group {
        margin-bottom: 20px;
    }

    .edit-btn {
        padding: 13px;
        font-size: 15px;
    }
}

/* Small Mobile for Data Section */
@media (max-width: 480px) {
    .data-wrapper {
        padding: 30px 25px;
    }

        .data-wrapper h1 {
            font-size: 22px;
            margin-bottom: 25px;
        }

    .data-group {
        margin-bottom: 18px;
    }

    .data-label {
        font-size: 14px;
    }

    .data-value {
        font-size: 13px;
    }

    .edit-btn {
        padding: 12px;
        font-size: 15px;
    }
}



/* orders-section */
.orders-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 45px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow-x: scroll;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

    .orders-header h1 {
        font-size: 28px;
        color: #333;
        font-weight: 600;
    }

.add-order-btn {
    padding: 12px 28px;
    background: #5b7fa6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.add-order-btn:hover{
    text-decoration: none !important;
    color: white !important;
}

    

.table-wrapper {
    overflow-x: scroll;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

    table thead {
        background: #f9f9f9;
        border-bottom: 2px solid #eee;
    }

    table th {
        padding: 18px 16px;
        text-align: center;
        color: #666;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
    }

    table td {
        padding: 16px;
        color: #333;
        font-size: 14px;
        border-bottom: 1px solid #eee;
        white-space: nowrap;
        text-align: center;
    }

    table tbody tr:hover {
        background: #fafafa;
    }

    table tbody tr:last-child td {
        border-bottom: none;
    }

.action-btn {
    padding: 8px 16px;
    margin-left: 8px;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

    .action-btn:hover {
        background: #f0f0f0;
        border-color: #999;
    }

/* Tablet Design for Orders Section */
@media (max-width: 1024px) {
    .orders-section {
        padding: 40px 35px;
    }
}

/* Mobile Design for Orders Section */
@media (max-width: 768px) {
    .orders-section {
        padding: 30px 20px;
    }

    .orders-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

        .orders-header h1 {
            font-size: 24px;
        }

    .add-order-btn {
        width: 100%;
        padding: 12px;
    }

    table th,
    table td {
        padding: 14px 12px;
        font-size: 13px;
    }

    .action-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin-left: 4px;
    }
}

/* Small Mobile for Orders Section */
@media (max-width: 480px) {
    .orders-section {
        padding: 25px 15px;
    }

    .orders-header h1 {
        font-size: 20px;
    }

    .add-order-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    table th,
    table td {
        padding: 12px 10px;
        font-size: 12px;
    }

    .action-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}


table.dataTable thead th, table.dataTable thead td, table.dataTable tfoot th, table.dataTable tfoot td {
    text-align: center !important;
}

/* DataTables Wrapper */
.dataTables_wrapper {
    position: static !important;
    clear: both;
}

/* Search Box */
.dataTables_filter {
    display: block !important;
    text-align: right;
    margin-bottom: 20px;
}

    .dataTables_filter label {
        color: #666;
        font-size: 14px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .dataTables_filter input {
        padding: 12px 18px 12px 40px !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-family: 'Tajawal', sans-serif !important;
        transition: all 0.3s !important;
        background: white !important;
        min-width: 250px;
        color: #333;
        box-shadow: none !important;
    }

        .dataTables_filter input:focus {
            outline: none !important;
            border-color: #5b7fa6 !important;
            box-shadow: 0 0 0 4px rgba(91, 127, 166, 0.1) !important;
        }

        .dataTables_filter input::placeholder {
            color: #aaa;
        }

/* Length Selector */
.dataTables_length {
    display: block !important;
    margin-bottom: 20px;
    text-align: right;
}

    .dataTables_length label {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #666;
        font-size: 14px;
        font-weight: 500;
    }

    .dataTables_length select {
        padding: 10px 16px !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-family: 'Tajawal', sans-serif !important;
        background: white !important;
        cursor: pointer !important;
        transition: all 0.3s !important;
        color: #333;
        font-weight: 500;
        box-shadow: none !important;
        min-width: 70px;
    }

        .dataTables_length select:hover {
            border-color: #5b7fa6 !important;
            background: #f9fafb !important;
        }

        .dataTables_length select:focus {
            outline: none !important;
            border-color: #5b7fa6 !important;
            box-shadow: 0 0 0 4px rgba(91, 127, 166, 0.1) !important;
        }

/* Table Container */
.dataTables_scroll {
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    overflow: auto !important;
    margin-bottom: 20px !important;
}

.dataTables_scrollBody {
    border-radius: 8px !important;
}

/* Table */
table.dataTable {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

    table.dataTable thead th {
        padding: 16px !important;
        text-align: center !important;
        color: #555 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%) !important;
        border-bottom: 2px solid #e0e0e0 !important;
        border: none !important;
        cursor: pointer !important;
        user-select: none !important;
    }

        table.dataTable thead th:hover {
            background: linear-gradient(135deg, #f0f2f5 0%, #e8eaed 100%) !important;
        }

    table.dataTable thead .sorting,
    table.dataTable thead .sorting_asc,
    table.dataTable thead .sorting_desc {
        background-position: right 12px center !important;
        background-repeat: no-repeat !important;
        padding-right: 25px !important;
        opacity: 0.6 !important;
    }

        table.dataTable thead .sorting::after,
        table.dataTable thead .sorting_asc::after,
        table.dataTable thead .sorting_desc::after {
            content: "" !important;
            display: inline-block !important;
            width: 0 !important;
            height: 0 !important;
        }

    table.dataTable tbody td {
        padding: 14px 16px !important;
        color: #333 !important;
        font-size: 14px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        text-align: center !important;
        vertical-align: middle !important;
    }

    table.dataTable tbody tr {
        transition: all 0.3s !important;
        background: white !important;
    }

        table.dataTable tbody tr:hover {
            background: #f9fafb !important;
        }

        table.dataTable tbody tr:last-child td {
            border-bottom: none !important;
        }

        table.dataTable tbody tr:nth-child(even) {
            background: white !important;
        }

    table.dataTable.hover tbody tr:hover {
        background-color: #f9fafb !important;
    }

/* Action Buttons */
.action-btn {
    padding: 8px 14px !important;
    margin: 0 4px !important;
    background: white !important;
    color: #5b7fa6 !important;
    border: 1.5px solid #5b7fa6 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    white-space: nowrap !important;
    font-family: 'Tajawal', sans-serif !important;
}

    .action-btn:hover {
        background: #5b7fa6 !important;
        color: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(91, 127, 166, 0.3) !important;
    }

    .action-btn:active {
        transform: translateY(0) !important;
    }

/* Pagination */
.dataTables_paginate {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 0 !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    text-align: right !important;
}

.dataTables_info {
    display: block !important;
    color: #666 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    order: 1 !important;
}

.paginate_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    margin: 0 4px !important;
    border: 1.5px solid #e0e0e0 !important;
    background: white !important;
    color: #555 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
    min-width: 40px !important;
    font-family: 'Tajawal', sans-serif !important;
}

    .paginate_button:hover:not(.disabled):not(.current) {
        border-color: #5b7fa6 !important;
        color: #5b7fa6 !important;
        background: #f9fafb !important;
        transform: translateY(-2px) !important;
    }

    .paginate_button.current {
        background: #5b7fa6 !important;
        color: white !important;
        border-color: #5b7fa6 !important;
        cursor: default !important;
    }

    .paginate_button.disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
        background: #f5f5f5 !important;
    }

        .paginate_button.disabled:hover {
            transform: none !important;
        }

    .paginate_button.previous::before {
       
        font-size: 18px !important;
        font-weight: bold !important;
    }

    .paginate_button.next::after {
  
        font-size: 18px !important;
        font-weight: bold !important;
    }

/* No Data Message */
.dataTables_empty {
    text-align: center !important;
    padding: 30px !important;
    color: #999 !important;
    font-size: 14px !important;
}

/* Processing Indicator */
.dataTables_processing {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 20px 40px !important;
    border-radius: 8px !important;
    z-index: 1000 !important;
    font-weight: 600 !important;
}
