/* ==================== Admin Login Styles ==================== */

.admin-login-body {
    background: linear-gradient(135deg, #800020, #c5a059);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 20px;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.admin-login-container {
    width: 100%;
    max-width: 450px;
}

.admin-login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    /* Removed blur effect to prevent Actions preview from appearing blurry */
    border: 1px solid rgba(197, 160, 89, 0.3);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.admin-login-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

.admin-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #800020, #c5a059);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-header h1 {
    color: #800020;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin: 20px 0 10px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.admin-login-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #800020, #c5a059);
    border-radius: 3px;
}

.admin-login-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.admin-logo {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 1rem;
    position: relative;
    padding-left: 10px;
}

.form-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #800020;
    border-radius: 50%;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #800020;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.input-with-icon input:focus {
    outline: none;
    border-color: #800020;
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
    background: #fff;
    transform: translateY(-2px);
}

.input-with-icon input:focus+i {
    color: #c5a059;
    transform: translateY(-50%) scale(1.1);
}

.admin-login-btn {
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    background: linear-gradient(135deg, #800020, #c5a059);
    box-shadow: 0 5px 15px rgba(128, 0, 32, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    margin-top: 10px;
    width: 100%;
    cursor: pointer;
}

/* Sidebar Styles */

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1a1a1a 0%, #2c2c2c 100%);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(197, 160, 89, 0.2);
}

/* Custom scrollbar for sidebar */

.admin-sidebar::-webkit-scrollbar {
    width: 8px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: #c5a059;
    border-radius: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: #800020;
}

.admin-sidebar.collapsed {
    width: 70px;
}

.admin-sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
}

.admin-sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: #c5a059;
    white-space: nowrap;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.admin-sidebar.collapsed .admin-sidebar-header h2 {
    display: none;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(197, 160, 89, 0.3);
    transform: rotate(90deg);
}

.admin-sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    padding: 0 15px;
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #c5a059;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(128, 0, 32, 0.3);
    color: white;
    transform: translateX(5px);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleY(1);
}

.nav-link i {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2);
}

.admin-sidebar.collapsed .nav-link span {
    display: none;
}

.admin-sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 15px 0;
}

.admin-sidebar.collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.4rem;
}

/* ==================== Order Details ==================== */

.order-details {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    font-family: 'Poppins', sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.order-details h4 {
    color: #800020;
    font-family: 'Playfair Display', serif;
    margin: 20px 0 15px;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.4rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.order-details h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #800020, #c5a059);
    border-radius: 2px;
}

.order-details h4 i {
    margin-right: 10px;
    color: #c5a059;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 15px;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
}

.order-item-total {
    font-weight: 600;
    color: #800020;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.text-muted {
    color: #6c757d;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.order-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.d-flex {
    display: flex;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.justify-content-between {
    justify-content: space-between;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.mt-2 {
    margin-top: 10px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Customer Info and Order Summary */

.customer-info p,
.order-summary p {
    margin: 12px 0;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(197, 160, 89, 0.2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.customer-info p:last-child,
.order-summary p:last-child {
    border-bottom: none;
}

.customer-info strong,
.order-summary strong {
    color: #800020;
}

.text-primary {
    color: #800020 !important;
}

/* ==================== Main Content Styles ==================== */

.admin-main {
    flex: 1;
    margin-left: 260px;
    transition: all 0.3s ease;
    background: #f8f5f0;
    min-height: 100vh;
    padding: 20px;
}

.admin-sidebar.collapsed~.admin-main {
    margin-left: 70px;
}

.admin-navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    border-radius: 12px;
    margin-bottom: 30px;
}

.admin-navbar h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #800020;
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 10px;
}

.admin-navbar h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #800020, #c5a059);
    border-radius: 3px;
}

.admin-user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #800020, #c5a059);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(128, 0, 32, 0.2);
    transition: all 0.3s ease;
}

.admin-user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(128, 0, 32, 0.3);
}

/* ==================== Content Styles ==================== */

.admin-content {
    padding: 30px;
}

.admin-section-header {
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.admin-section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #800020, #c5a059);
    border-radius: 3px;
}

.admin-section-header h2 {
    font-size: 2rem;
    color: #800020;
    margin: 0 0 10px;
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
}

.admin-section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #800020, #c5a059);
    border-radius: 3px;
}

.admin-section-header p {
    color: #666;
    margin: 0;
    font-size: 1.1rem;
    max-width: 600px;
}

/* ==================== Dashboard Stats ==================== */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8f5f0);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #800020, #c5a059);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.stat-card-header>div {
    flex: 1;
}

.stat-card-header h3 {
    margin: 0;
    font-size: 2rem;
    color: #800020;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card-header p {
    margin: 5px 0 0;
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.stat-card-header i {
    font-size: 2.5rem;
    opacity: 0.2;
    color: #800020;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(128, 0, 32, 0.05);
}

.stat-card:hover .stat-card-header i {
    opacity: 0.3;
    transform: scale(1.1);
}

.bg-primary-light {
    color: #800020;
    background: rgba(128, 0, 32, 0.1);
}

.bg-success-light {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.bg-warning-light {
    color: #c5a059;
    background: rgba(197, 160, 89, 0.1);
}

.bg-info-light {
    color: #17a2b8;
    background: rgba(23, 162, 184, 0.1);
}

/* ==================== Tables ==================== */

.admin-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.admin-table-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    background: linear-gradient(145deg, #ffffff, #f8f5f0);
}

.admin-table-header h3 {
    margin: 0;
    color: #800020;
    font-size: 1.5rem;
}

.admin-table-actions {
    display: flex;
    gap: 10px;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #f8f5f0;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #800020;
    border-bottom: 2px solid rgba(197, 160, 89, 0.2);
    font-family: 'Poppins', sans-serif;
}

.admin-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.admin-table tr:hover {
    background: rgba(197, 160, 89, 0.05);
}

/* Enhanced Actions Buttons */

.table-actions {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 15px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: #800020;
    color: white;
}

.btn-primary:hover {
    background: #600018;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #c5a059;
    color: white;
}

.btn-warning:hover {
    background: #b08d45;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-icon {
    padding: 8px;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badges */

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.badge-warning {
    background: #c5a059;
    color: white;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

/* ==================== Forms ==================== */

.admin-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #800020;
    font-family: 'Poppins', sans-serif;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #800020;
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
    background: #fff;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #800020;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.input-with-icon input {
    padding-left: 45px;
}

.admin-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ==================== Modals ==================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(197, 160, 89, 0.2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 40px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.modal-body h2 {
    margin-top: 0;
    color: #800020;
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Playfair Display', serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.modal-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #800020, #c5a059);
    border-radius: 3px;
}

/* ==================== Responsive ==================== */

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.active {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-sidebar~.admin-main {
        margin-left: 0;
    }
    .admin-table-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .admin-form-actions {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.mobile-menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #800020;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 101;
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

/* ==================== Notifications ==================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #800020;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.notification.show {
    transform: translateX(0);
}

/* ==================== Order Details Enhanced ==================== */

.order-details-enhanced {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Removed any backdrop-filter or blur effects that could cause blurriness */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: auto;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.order-title-section h2 {
    color: #800020;
    font-family: 'Playfair Display', serif;
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.order-id {
    color: #666;
    font-size: 1rem;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.order-status-badge {
    margin-top: 5px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.order-customer-info h3,
.order-summary-info h3 {
    color: #800020;
    font-family: 'Playfair Display', serif;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.order-customer-info h3::after,
.order-summary-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #800020, #c5a059);
    border-radius: 2px;
}

.order-customer-info h3 i,
.order-summary-info h3 i {
    margin-right: 10px;
    color: #c5a059;
}

.info-group {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(197, 160, 89, 0.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.info-group:last-child {
    border-bottom: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.info-group label {
    font-weight: 600;
    color: #333;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.info-group span {
    color: #666;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.order-items-section {
    margin-bottom: 30px;
}

.order-items-section h3 {
    color: #800020;
    font-family: 'Playfair Display', serif;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.order-items-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #800020, #c5a059);
    border-radius: 2px;
}

.order-items-section h3 i {
    margin-right: 10px;
    color: #c5a059;
}

.order-items-list {
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.order-item-detail {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.order-item-detail:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-info {
    flex: 1;
    min-width: 0;
}

.order-item-name {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.order-item-meta {
    display: flex;
    gap: 20px;
}

.order-item-price {
    font-weight: 600;
    color: #800020;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.order-item-quantity {
    color: #666;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.order-item-total {
    font-weight: 700;
    color: #800020;
    font-size: 1.1rem;
    min-width: 100px;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.order-totals-section {
    margin-bottom: 30px;
}

.totals-breakdown {
    background: #f8f5f0;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    margin-left: auto;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.total-row:not(:last-child) {
    border-bottom: 1px dashed rgba(197, 160, 89, 0.2);
}

.grand-total {
    margin-top: 10px;
    font-size: 1.1rem;
}

.total-amount {
    font-size: 1.3rem;
    color: #800020;
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.order-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
}

@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        gap: 15px;
    }
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    .order-item-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .order-item-meta {
        width: 100%;
        justify-content: space-between;
    }
    .order-item-total {
        width: 100%;
        text-align: left;
        border-top: 1px dashed rgba(197, 160, 89, 0.2);
        padding-top: 10px;
    }
    .totals-breakdown {
        max-width: 100%;
    }
    .order-actions {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}