/* =================================================================
   ACCOUNT MANAGEMENT SYSTEM - CSS
   ================================================================= */

/* =================================================================
   1. ACCOUNT CONTAINER & LAYOUT
   ================================================================= */
.account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =================================================================
   2. SIDEBAR
   ================================================================= */
.account-sidebar {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; 
    position: sticky;
    top: 20px;
    z-index: 10;
}

.account-sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #c01b15 0%, #8b0000 100%);
    color: #fff;
}

.account-sidebar-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.account-user-name {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.account-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-nav ul li {
    margin: 0;
    --tw-border-opacity: 1;
    border-bottom: 1px solid rgb(199 199 199 / var(--tw-border-opacity));
}

.account-nav ul li:last-child {
    border-bottom: none;
}

.account-nav ul li.divider {
    height: 0;
    --tw-border-opacity: 1;
    border-bottom: 2px solid rgb(199 199 199 / var(--tw-border-opacity));
    background: transparent;
    margin: 0;
    padding: 0;
}

.account-nav ul li a {
    display: block;
    padding: 14px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 400;
}

.account-nav ul li a:hover {
    background-color: #f8f9fa;
    color: #c01b15;
    padding-left: 24px;
}

.account-nav ul li.active a {
    background-color: #fff5f5;
    color: #c01b15;
    font-weight: 600;
    border-left: 3px solid #c01b15;
}

/* Hide icons in sidebar */
.account-nav ul li a i {
    display: none;
}

.account-nav ul li a.logout-link {
    color: #dc3545;
    font-weight: 500;
}

.account-nav ul li a.logout-link:hover {
    background-color: #fff5f5;
}

/* =================================================================
   3. MAIN CONTENT AREA
   ================================================================= */
.account-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.account-content-header {
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%);
}

.account-content-header h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.account-subtitle {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.account-content-body {
    padding: 30px;
}

/* =================================================================
   4. FORMS
   ================================================================= */
.account-form {
    max-width: 700px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.form-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #c01b15;
    box-shadow: 0 0 0 3px rgba(192, 27, 21, 0.1);
}

.form-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

.form-actions {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

/* =================================================================
   5. BUTTONS
   ================================================================= */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, #c01b15 0%, #8b0000 100%);
    color: #fff !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 27, 21, 0.4);
    color: #fff !important;
}

.btn-primary:visited,
.btn-primary:active,
.btn-primary:focus {
    color: #fff !important;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #d0d0d0;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #f44336;
    color: #fff;
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* =================================================================
   6. ADDRESSES PAGE
   ================================================================= */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.address-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    transition: all 0.2s ease;
}

.address-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #c01b15;
}

.address-card-content h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
}

.address-line {
    margin: 6px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.address-card-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

.address-card-add {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px dashed #d0d0d0;
    background: #fafafa;
}

.btn-add-address {
    background: none;
    border: none;
    color: #c01b15;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    transition: all 0.2s ease;
}

.btn-add-address:hover {
    color: #8b0000;
}

.add-icon {
    font-size: 40px;
    line-height: 1;
}

/* =================================================================
   7. ORDERS PAGE
   ================================================================= */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: all 0.2s ease;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.order-header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-header-right {
    display: flex;
    align-items: center;
}

.order-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.order-number {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin: 0;
}

.order-date {
    font-size: 13px;
    color: #666;
}

.order-status {
    text-align: right;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.status-procesare,
.status-badge.status-in-procesare {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-livrata,
.status-badge.status-confirmata {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-anulata,
.status-badge.status-comanda-anulata {
    background: #f8d7da;
    color: #721c24;
}

.order-card-body {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.order-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.order-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    flex: 1;
}

.order-summary-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-summary-col .label {
    color: #666;
    font-size: 13px;
}

.order-summary-col .value {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.order-summary-col .total-price {
    font-size: 18px;
    color: #c01b15;
    font-weight: 600;
}

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

.order-summary-item .label {
    color: #666;
    font-size: 14px;
}

.order-summary-item .value {
    font-weight: 500;
    color: #333;
}

.order-summary-item .total-price {
    font-size: 18px;
    color: #c01b15;
    font-weight: 600;
}

.order-actions {
    flex-shrink: 0;
}

.order-actions .btn {
    white-space: nowrap;
}

.order-card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.order-details {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.order-products h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.products-table thead {
    background: #f5f5f5;
}

.products-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
}

.products-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.products-table tbody tr:last-child td {
    border-bottom: none;
}

.products-table tfoot td {
    padding: 12px;
    font-weight: 500;
    border-top: 2px solid #e0e0e0;
}

.products-table tfoot .total-row {
    background: #f8f9fa;
}

.toggle-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 10px;
}

.toggle-details.active .toggle-icon {
    transform: rotate(180deg);
}

/* =================================================================
   8. WISHLIST PAGE
   ================================================================= */
.wishlist-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff5f5;
    border-radius: 4px;
    color: #c01b15;
    font-weight: 500;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.wishlist-product-card {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wishlist-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #c01b15;
}

.remove-from-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-from-wishlist:hover {
    background: #f44336;
    border-color: #f44336;
    color: #fff;
}

.remove-icon {
    font-size: 20px;
    line-height: 1;
}

.product-image {
    display: block;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f44336;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-brand {
    margin: 0 0 5px 0;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
}

.product-name {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.4;
    min-height: 40px;
}

.product-name a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a:hover {
    color: #c01b15;
}

.product-price {
    margin-bottom: 15px;
}

.price-old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.price-new,
.price {
    font-size: 18px;
    font-weight: 600;
    color: #f44336;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.out-of-stock {
    display: inline-block;
    padding: 10px;
    text-align: center;
    background: #f5f5f5;
    color: #999;
    border-radius: 4px;
    font-size: 14px;
}

/* =================================================================
   9. EMPTY STATE
   ================================================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #333;
}

.empty-state p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 15px;
}

/* =================================================================
   10. UTILITIES
   ================================================================= */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* =================================================================
   11. RESPONSIVE ADJUSTMENTS
   ================================================================= */
@media (max-width: 768px) {
    .account-content-header {
        padding: 20px;
    }
    
    .account-content-body {
        padding: 20px;
    }
    
    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .order-status {
        text-align: left;
    }
    
    .order-summary {
        grid-template-columns: 1fr;
    }
    
    .order-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .order-card-body {
        flex-direction: column;
        align-items: stretch;
    }
    
    .order-actions {
        width: 100%;
    }
    
    .order-actions .btn {
        width: 100%;
    }
    
    .order-card-footer {
        flex-direction: column;
    }
    
    .order-card-footer .btn {
        width: 100%;
    }
    
    .products-table {
        font-size: 12px;
    }
    
    .products-table th,
    .products-table td {
        padding: 8px;
    }
    
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .addresses-grid {
        grid-template-columns: 1fr;
    }
}

/* Order Detail Page Styles */
.order-detail-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #c01b15;
}

.order-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.order-detail-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.order-detail-section h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.order-detail-section h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.order-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-section-header h2 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.status-badge-small {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    border-radius: 4px;
    white-space: nowrap;
}

/* Status colors */
.status-badge-small.status-pending,
.status-badge-small.status-in-asteptare {
    background-color: #ff9800;
}

.status-badge-small.status-processing,
.status-badge-small.status-in-procesare {
    background-color: #2196f3;
}

.status-badge-small.status-confirmed,
.status-badge-small.status-comanda-confirmata,
.status-badge-small.status-confirmata {
    background-color: #4caf50;
}

.status-badge-small.status-shipped,
.status-badge-small.status-livrata,
.status-badge-small.status-expediat {
    background-color: #00bcd4;
}

.status-badge-small.status-delivered,
.status-badge-small.status-finalizata {
    background-color: #4caf50;
}

.status-badge-small.status-canceled,
.status-badge-small.status-anulata {
    background-color: #f44336;
}

.status-badge-small.status-refunded,
.status-badge-small.status-returnata {
    background-color: #9e9e9e;
}

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-danger {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c00;
}

.order-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.order-detail-table thead {
    background: #f8f9fa;
}

.order-detail-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #666;
    font-size: 13px;
    border-bottom: 2px solid #e0e0e0;
}

.order-detail-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.order-detail-table tbody tr:hover {
    background: #fafafa;
}

.order-detail-table .product-info { 
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-detail-table .product-thumb {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.product-name {
    font-weight: 500;
    color: #333;
}

.text-right {
    text-align: right !important;
}

.order-summary-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row-total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #c01b15;
    font-size: 18px;
}

.summary-label {
    color: #666;
}

.summary-value {
    color: #333;
    font-weight: 500;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    line-height: 1.6;
}

.info-box p {
    margin: 5px 0;
    color: #666;
}

.info-box strong {
    color: #333;
}

/* Address Form Styles */
.address-form-container {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.address-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.address-form-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.btn-close-form {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-close-form:hover {
    background: #e0e0e0;
    color: #333;
}

.address-form-body {
    padding: 25px;
}

.modern-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-label .required {
    color: #c01b15;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #c01b15;
    box-shadow: 0 0 0 3px rgba(192, 27, 21, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Select2 styling in address form */
.address-form-body .select2-container {
    width: 100% !important;
}

.address-form-body .select2-container .select2-selection--single {
    height: 44px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
}

.address-form-body .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 42px;
    padding-left: 15px;
    color: #333;
}

.address-form-body .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 10px;
}

.address-form-body .select2-container--default .select2-selection--single:focus,
.address-form-body .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #c01b15;
    outline: none;
}

.select2-dropdown {
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.select2-results__option {
    padding: 10px 15px;
}

.select2-results__option--highlighted {
    background-color: #c01b15 !important;
    color: white !important;
}

.form-control::placeholder {
    color: #999;
}

.form-control.error,
.form-control[aria-invalid="true"] {
    border-color: #c01b15;
}

.error-message,
.form-error {
    color: #c01b15;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.form-actions .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
}

/* Edit box styling */
.edit-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.edit-box::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: -1;
    backdrop-filter: blur(2px);
}

/* Success/Error messages in edit-box */
.edit-box > .success,
.edit-box > .warning,
.edit-box > .error {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.edit-box > .success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.edit-box > .warning,
.edit-box > .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive for order detail page */
@media (max-width: 768px) {
    .order-detail-header h1 {
        font-size: 20px;
    }
    
    .order-detail-actions {
        flex-direction: column;
    }
    
    .order-detail-actions .btn {
        width: 100%;
    }
    
    .order-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .status-badge-small {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .order-detail-table {
        font-size: 13px;
    }
    
    .order-detail-table th,
    .order-detail-table td {
        padding: 8px;
    }
    
    .product-thumb {
        width: 40px;
        height: 40px;
    }
    
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-row-total {
        font-size: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .edit-box {
        width: 95%;
        max-height: 95vh;
    }
    
    .address-form-body {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}
