/* ===================================
   ACCOUNT SYSTEM STYLES
   =================================== */

:root {
    --primary: #7FB069;
    --primary-dark: #6a9757;
    --secondary: #E6AA68;
    --accent: #CA6680;
    --dark: #2D3142;
    --text: #4F5D75;
    --text-light: #8B95A5;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===================================
   AUTH SECTION
   =================================== */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(127, 176, 105, 0.05) 0%, rgba(202, 102, 128, 0.05) 100%);
    z-index: 0;
    pointer-events: none;
}

.flower-float {
    position: absolute;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
}

/* ===================================
   AUTH CARD
   =================================== */
.auth-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    display: none;
    animation: slideIn 0.4s ease-out;
}

.auth-card.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.auth-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===================================
   AUTH FORM
   =================================== */
.auth-form {
    margin-bottom: 2rem;
}

/* Override floating label system from style.css */
.auth-form .form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.auth-form .form-group label {
    /* Reset floating label - make it a normal label above the field */
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text) !important;
    font-size: 0.9rem !important;
    pointer-events: auto !important;
    background: transparent !important;
    padding: 0 !important;
}

.auth-form .form-group label i {
    color: var(--primary);
}

.auth-form .form-group input:focus + label,
.auth-form .form-group input:not(:placeholder-shown) + label {
    /* Disable the floating animation */
    position: static !important;
    top: auto !important;
    left: auto !important;
    font-size: 0.9rem !important;
    color: var(--text) !important;
}

.auth-form .form-group input,
.auth-form .form-group select,
.auth-form .form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.auth-form .form-group input:focus,
.auth-form .form-group select:focus,
.auth-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Label and input styles are now in .auth-form section above */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.1);
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary);
}

.password-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    position: relative;
    margin-bottom: 0.75rem;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin: 0;
    accent-color: var(--primary);
}

.checkbox-label span {
    cursor: pointer;
}

.forgot-link {
    color: var(--primary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    padding: 1rem;
    justify-content: center;
}

/* ===================================
   AUTH DIVIDER
   =================================== */
.auth-divider {
    text-align: center;
    position: relative;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    position: relative;
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===================================
   AUTH FOOTER
   =================================== */
.auth-footer {
    text-align: center;
}

.auth-footer p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.auth-footer .btn {
    width: 100%;
    justify-content: center;
}

/* ===================================
   DASHBOARD SECTION
   =================================== */
.dashboard-section {
    min-height: 100vh;
    padding: 6rem 0 3rem;
    background: var(--light-bg);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.welcome-message h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.welcome-message p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===================================
   DASHBOARD GRID
   =================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* ===================================
   DASHBOARD SIDEBAR
   =================================== */
.dashboard-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.dashboard-nav {
    background: var(--white);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.dashboard-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 0.5rem;
    position: relative;
}

.dashboard-nav-item:last-child {
    margin-bottom: 0;
}

.dashboard-nav-item i {
    width: 24px;
    font-size: 1.25rem;
    color: var(--text-light);
    transition: var(--transition);
}

.dashboard-nav-item:hover {
    background: var(--light-bg);
    color: var(--primary);
}

.dashboard-nav-item:hover i {
    color: var(--primary);
}

.dashboard-nav-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.dashboard-nav-item.active i {
    color: var(--white);
}

.nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dashboard-nav-item.active .nav-badge {
    background: var(--white);
    color: var(--primary);
}

.sidebar-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    color: var(--white);
    text-align: center;
}

.sidebar-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.sidebar-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.sidebar-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.loyalty-progress {
    margin-top: 1rem;
}

.loyalty-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.loyalty-fill {
    height: 100%;
    background: var(--white);
    border-radius: 50px;
    transition: width 0.6s ease;
}

.loyalty-points {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ===================================
   DASHBOARD CONTENT
   =================================== */
.dashboard-content {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    min-height: 600px;
}

.dashboard-section-content {
    display: none;
}

.dashboard-section-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.section-header h2 {
    font-size: 1.75rem;
    color: var(--dark);
}

.section-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border: 2px solid transparent;
    border-radius: 50px;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-chip:hover {
    background: var(--border);
}

.filter-chip.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===================================
   STATS GRID
   =================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===================================
   SECTION TITLE
   =================================== */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title h3 {
    font-size: 1.5rem;
    color: var(--dark);
}

.view-all-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--primary-dark);
}

/* ===================================
   ORDERS LIST
   =================================== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: var(--light-bg);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem;
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.order-number {
    font-weight: 700;
    color: var(--dark);
}

.order-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.order-status {
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-status.pending {
    background: rgba(230, 170, 104, 0.2);
    color: #d68a3a;
}

.order-status.processing {
    background: rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

.order-status.completed {
    background: rgba(127, 176, 105, 0.2);
    color: var(--primary-dark);
}

.order-status.cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.order-item:last-child {
    margin-bottom: 0;
}

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.order-item-info h5 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.order-item-details {
    font-size: 0.85rem;
    color: var(--text-light);
}

.order-item-price {
    font-weight: 700;
    color: var(--primary);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.order-actions {
    display: flex;
    gap: 0.5rem;
}

.order-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ===================================
   ADDRESSES GRID
   =================================== */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.address-card {
    background: var(--light-bg);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
}

.address-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.address-card.default {
    border-color: var(--primary);
}

.address-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.address-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.address-info {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.address-info i {
    color: var(--primary);
    width: 20px;
    margin-right: 0.5rem;
}

.address-actions {
    display: flex;
    gap: 0.5rem;
}

.address-actions .btn {
    flex: 1;
    padding: 0.625rem;
    font-size: 0.9rem;
    justify-content: center;
}

/* ===================================
   PROFILE FORM
   =================================== */
.profile-form {
    max-width: 600px;
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

/* ===================================
   SETTINGS
   =================================== */
.settings-groups {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-group {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 1.5rem;
}

.settings-group h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.settings-item:last-child {
    margin-bottom: 0;
}

.settings-item:hover {
    border-color: var(--primary);
}

.settings-item.danger:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.settings-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.settings-item-info i {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
}

.settings-item.danger .settings-item-info i {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.settings-item-info strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.settings-item-info span {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 50px;
    transition: var(--transition);
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* ===================================
   MODAL
   =================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal .modal-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

/* Large modal for order details */
.modal .modal-content.large {
    max-width: 1000px;
    max-height: 95vh;
}

@media (max-width: 768px) {
    .modal .modal-content {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .modal .modal-content.large {
        width: 95%;
        max-height: 95vh;
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .modal .modal-content {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .modal .modal-content.large {
        width: 98%;
        max-height: 95vh;
        padding: 1rem;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: var(--light-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1001;
}

.modal .modal-close:hover {
    background: var(--primary);
    color: var(--white);
}

@media (max-width: 480px) {
    .modal .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Action buttons responsive - full width stacked */
    #orderDetailsContent button {
        width: 100% !important;
        font-size: 0.9rem !important;
        padding: 0.6rem 0.8rem !important;
    }
    
    #orderDetailsContent > div[style*="display:grid"][style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
}

.modal h3 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

/* ===================================
   EMPTY STATE
   =================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: relative;
        top: 0;
    }

    .dashboard-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .sidebar-card {
        display: none;
    }
}

@media (max-width: 600px) {
    .dashboard-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

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

    .dashboard-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .welcome-message h1 {
        font-size: 1.75rem;
    }

    .dashboard-content {
        padding: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .addresses-grid {
        grid-template-columns: 1fr;
    }

    .order-item {
        grid-template-columns: 50px 1fr;
    }

    .order-item-price {
        grid-column: 1 / -1;
        text-align: right;
        margin-top: 0.5rem;
    }

    .order-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .order-actions {
        width: 100%;
        flex-direction: column;
    }

    .order-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-nav {
        grid-template-columns: 1fr;
    }
    
    .dashboard-nav-item {
        justify-content: flex-start;
    }
    
    .filter-chip {
        font-size: 0.85rem;
        padding: 0.375rem 0.75rem;
    }
}

/* ===================================
   ORDER ACTIONS BUTTONS
   =================================== */

#orderDetailsContent button {
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#orderDetailsContent button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

#orderDetailsContent button:active {
    transform: translateY(0);
}

/* Delivery date info */
#orderDetailsContent > div[style*="background:#e8f5e9"] {
    animation: slideDown 0.3s ease;
}

.order-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .order-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Stack action buttons vertically on tablet */
    #orderDetailsContent > div[style*="display:grid"][style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    #orderDetailsContent h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    #orderDetailsContent h4 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    #orderDetailsContent {
        font-size: 0.9rem;
    }
    
    /* Force single column for customer and shipping */
    #orderDetailsContent > div:nth-child(3),
    #orderDetailsContent > div:nth-child(4) {
        display: block !important;
    }
    
    #orderDetailsContent .data-table {
        font-size: 0.85rem;
    }
    
    #orderDetailsContent .data-table td {
        padding: 0.6rem;
    }
    
    #orderDetailsContent .data-table th {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    #orderDetailsContent {
        font-size: 0.85rem;
    }
    
    #orderDetailsContent h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    #orderDetailsContent h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Force single column for all sections */
    #orderDetailsContent > div:nth-child(n+3) {
        display: block !important;
        width: 100% !important;
    }
    
    /* Customer and shipping info responsive */
    #orderDetailsContent > div > div {
        width: 100% !important;
    }
    
    #orderDetailsContent .data-table {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    #orderDetailsContent .data-table thead {
        display: none;
    }
    
    #orderDetailsContent .data-table tbody tr {
        display: block;
        background: var(--light-bg);
        border-radius: 8px;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        border: none;
    }
    
    #orderDetailsContent .data-table td {
        display: block;
        border: none;
        padding: 0.4rem 0;
        text-align: left;
        border-bottom: 1px solid var(--border);
    }
    
    #orderDetailsContent .data-table td:last-child {
        border-bottom: none;
    }
    
    #orderDetailsContent .data-table td::before {
        font-weight: 600;
        color: var(--text-light);
        font-size: 0.75rem;
        display: block;
        margin-bottom: 0.25rem;
    }
    
    #orderDetailsContent .data-table td:nth-child(1)::before {
        content: "📌 Produit";
    }
    
    #orderDetailsContent .data-table td:nth-child(2)::before {
        content: "🔢 Qté";
    }
    
    #orderDetailsContent .data-table td:nth-child(3)::before {
        content: "💶 Prix unit.";
    }
    
    #orderDetailsContent .data-table td:nth-child(4)::before {
        content: "💰 Total";
    }
}
