/* Critical CSS for Safari SVG compatibility and custom functionality */
/* Keep this file for Safari-specific fixes and complex styling not easily replicated in Tailwind */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(to bottom, #0d1b2a 0%, #1b263b 50%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 120px 20px 0;
    margin: 0;
}

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(30, 60, 114, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 20px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-branding-link {
    text-decoration: none;
    color: inherit;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
    transition: transform 0.2s ease;
}

.hamburger-menu:hover {
    transform: scale(1.05);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-menu.active {
    visibility: visible;
    opacity: 1;
}

.nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.nav-menu.active .nav-content {
    transform: translateX(0);
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    background: #f8f9ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
}

.nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-close:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    background: #ffffff;
}

.nav-links li {
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: #2d3748;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    background: #ffffff;
}

.nav-links a:hover {
    background: #f1f5f9;
    color: #667eea;
    transform: translateX(5px);
}

.nav-links a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-links a.active:hover {
    transform: none;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .nav-content {
        width: 280px;
    }
    
    .nav-header {
        padding: 1rem;
    }
    
    .nav-links a {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

/* Very small screens (e.g., iPhone SE) */
@media (max-width: 380px) {
    .header-content {
        padding: 0 8px;
        gap: 6px;
    }
    
    .header-branding {
        gap: 6px;
    }
    
    .header-logo {
        height: 24px;
    }
    
    .header-text h1 {
        font-size: 16px;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .cart-btn {
        padding: 6px;
    }
    
    .cart-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .hamburger-menu {
        width: 32px;
        height: 32px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
}

.header-logo {
    flex-shrink: 0;
    height: 35px;
    width: auto;
}

.header-text h1 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 600;
}

.header-text .tagline {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
    font-style: italic;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 1200px;
    width: 90%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

/* Marker Selection */
.marker-selection {
    margin-bottom: 24px;
}

.marker-type-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.marker-type-btn {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.marker-type-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-1px);
}

.marker-type-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.marker-form {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    background: #f8f9ff;
}

.input-section {
    margin-bottom: 16px;
}

.input-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

/* Removed dark background label styling */

.form-section {
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.form-section h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Wider screens specific form styling */
@media (min-width: 1200px) {
    .form-section {
        padding: 20px;
    }
    
    .input-group label {
        font-size: 15px;
    }
    
    #cookie-text, #arrow-text {
        font-size: 18px;
        padding: 14px 16px;
    }
}


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

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

.form-group label {
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#cookie-text, #arrow-text, #cookie-identifier-indents, #arrow-identifier-indents, 
#cookie-text-size, #cookie-text-style, #cookie-text-orientation, #arrow-text-size, #arrow-text-style, #arrow-text-position,
#cookie-protrude-mode, #arrow-protrude-mode, #material-type, #material-color {
    padding: 8px 10px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    /* Safari-specific fixes */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    width: 100%;
    box-sizing: border-box;
}

/* Specific styling for select elements to ensure consistency */
select#cookie-identifier-indents, select#arrow-identifier-indents,
select#cookie-text-size, select#cookie-text-style, select#cookie-text-orientation, 
select#arrow-text-size, select#arrow-text-style, select#arrow-text-position,
select#cookie-protrude-mode, select#arrow-protrude-mode, select#material-type, select#material-color,
select#cookie-corner-radius, select#arrow-corner-radius, select#cookie-indent-shape, select#arrow-indent-shape {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* Ensure corner radius selects have consistent styling */
#cookie-corner-radius, #arrow-corner-radius, #cookie-indent-shape, #arrow-indent-shape {
    width: 100%;
    padding: 8px 40px 8px 10px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #333;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

#cookie-text, #arrow-text {
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
}

#cookie-text:focus, #arrow-text:focus, #cookie-identifier-indents:focus, #arrow-identifier-indents:focus,
#cookie-text-size:focus, #cookie-text-style:focus, #cookie-text-orientation:focus, #arrow-text-size:focus, #arrow-text-style:focus, #arrow-text-position:focus,
#cookie-protrude-mode:focus, #arrow-protrude-mode:focus, #material-type:focus, #material-color:focus,
#cookie-corner-radius:focus, #arrow-corner-radius:focus, #cookie-indent-shape:focus, #arrow-indent-shape:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Checkbox styling */
.checkbox-group {
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.checkbox-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: #667eea;
    cursor: pointer;
}

.checkbox-text {
    user-select: none;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-text {
    color: #667eea;
    font-weight: 600;
}

/* Widescreen optimizations */
@media (min-width: 1200px) {
    .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }
    
    .marker-selection {
        grid-column: 1 / -1;
    }
    
    .marker-config-section {
        grid-column: 1;
    }
    
    .output-section {
        grid-column: 2;
        border-top: none;
        padding-top: 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .preview {
        position: sticky;
        top: 100px;
    }
    
    .preview-container {
        min-height: 400px;
    }
    
    .svg-preview {
        min-height: 400px;
        max-height: 500px;
    }
    
    .svg-preview svg {
        max-height: 480px;
        display: block;
        margin: 0 auto;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        max-width: 900px;
    }
    
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .marker-type-buttons {
        gap: 20px;
    }
    
    .marker-type-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 140px 8px 10px; /* Increased top padding for smaller screens */
    }
    
    /* Gallery page specific mobile padding */
    body.gallery-page {
        padding: 140px 8px 0 !important;
    }
    
    .site-header {
        padding: 10px 0;
        min-height: 60px;
    }
    
    .header-content {
        padding: 0 10px;
        flex-wrap: nowrap; /* Prevent wrapping */
        gap: 8px;
    }
    
    .header-branding {
        gap: 8px; /* Reduce gap between logo and text */
    }
    
    .header-logo {
        height: 28px; /* Smaller logo on mobile */
    }
    
    .header-text h1 {
        font-size: 18px; /* Smaller text on mobile */
        margin: 0;
    }
    
    .header-actions {
        gap: 8px; /* Reduce gap between cart and hamburger */
    }
    
    .cart-btn {
        padding: 8px; /* Smaller cart button */
    }
    
    .hamburger-menu {
        width: 36px; /* Smaller hamburger button */
        height: 36px;
    }
    
    .header-logo {
        height: 30px;
    }
    
    /* Hamburger menu is used on mobile, no additional styles needed */
    
    .header-text h1 {
        font-size: 20px;
        margin-bottom: 3px;
    }
    
    .header-text .tagline {
        font-size: 12px;
    }
    
    .container {
        width: 100%;
        padding: 16px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    h3 {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .marker-form {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .form-section {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .checkbox-label {
        padding: 12px;
        font-size: 14px;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-right: 10px;
    }
    
    /* Ensure form inputs and selects are properly styled on mobile */
    #cookie-text, #arrow-text, #cookie-identifier-indents, #arrow-identifier-indents, 
    #cookie-text-size, #cookie-text-style, #cookie-text-orientation, #arrow-text-size, #arrow-text-style, #arrow-text-position,
    #cookie-corner-radius, #arrow-corner-radius, #cookie-indent-shape, #arrow-indent-shape {
        padding: 12px;
        font-size: 16px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-color: white;
        border: 1px solid #e1e5e9;
        border-radius: 6px;
        width: 100%;
        box-sizing: border-box;
        /* Additional Safari iOS fixes */
        -webkit-border-radius: 6px;
        -webkit-box-sizing: border-box;
    }
    
    /* Safari iOS specific select styling */
    select#cookie-identifier-indents, select#arrow-identifier-indents,
    select#cookie-text-size, select#cookie-text-style, select#cookie-text-orientation, 
    select#arrow-text-size, select#arrow-text-style, select#arrow-text-position,
    select#cookie-protrude-mode, select#arrow-protrude-mode, select#material-type, select#material-color,
    select#cookie-corner-radius, select#arrow-corner-radius, select#cookie-indent-shape, select#arrow-indent-shape {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
        cursor: pointer;
        /* Force Safari to respect our styling */
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    /* Add dropdown arrow for select elements on mobile */
    select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
    }
    
    .output-section {
        padding-top: 20px;
    }
    
    .preview {
        margin-bottom: 20px;
    }
    
    .preview-placeholder {
        min-height: 150px;
    }
    
    .background-controls {
        margin: 16px 0;
        padding: 12px;
    }
    
    .background-controls h4 {
        margin-bottom: 12px;
        font-size: 14px;
    }
    
    .color-buttons {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .color-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 50px;
        flex: 1;
        max-width: calc(20% - 5px);
    }
    
    .marker-type-buttons {
        gap: 10px;
        flex-direction: column;
    }
    
    .marker-type-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* Very small screens - additional header height compensation */
@media (max-width: 480px) {
    body {
        padding: 180px 8px 10px; /* Even more top padding for very small screens */
    }
    
    /* Gallery page specific padding for very small screens */
    body.gallery-page {
        padding: 180px 8px 0 !important;
    }
    
    .site-header {
        min-height: 120px; /* Larger minimum height for very small screens */
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-branding {
        width: 100%;
        justify-content: center;
    }
    
    .header-nav {
        width: 100%;
        justify-content: center;
    }
    
    .cart-header {
        width: 100%;
        justify-content: center;
    }
}

#generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
}

@media (min-width: 1200px) {
    #generate-btn {
        max-width: 400px;
        padding: 18px 40px;
        font-size: 17px;
        margin-top: 20px;
    }
}

#generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

#generate-btn:active {
    transform: translateY(0);
}

.output-section {
    border-top: 1px solid #e1e5e9;
    padding-top: 30px;
}

.preview {
    text-align: center;
    margin-bottom: 30px;
}

.preview-placeholder {
    min-height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9ff;
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

.preview h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

#marker-preview {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.preview-section {
    width: 100%;
}

.preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
    width: 100%;
}

.svg-preview {
    width: 100%;
    max-width: 100%;
    min-height: 300px;
    max-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 10px;
}

/* Safari-compatible SVG preview styling */
#svg-preview svg {
    max-width: 100% !important;
    max-height: 280px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

.svg-preview svg {
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Background color controls */
.background-controls {
    margin: 20px 0;
    text-align: center;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.background-controls h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.color-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.color-btn {
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.color-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.color-btn.active {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Material selection styling */
.material-selection {
    background: #f8f9ff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.material-selection h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.material-selection .form-group {
    margin-bottom: 15px;
}

.material-selection .form-group:last-child {
    margin-bottom: 0;
}

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

.material-select, .color-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #333;
    font-family: inherit;
}

.material-select:focus, .color-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Ensure select options have proper styling */
.material-select option, .color-select option {
    background: white !important;
    color: #333 !important;
}

select#material-type option, select#material-color option {
    background: white !important;
    color: #333 !important;
}

/* Fix for all select options - override any inherited dark styles */
select option {
    background: white !important;
    color: #333 !important;
}

/* Fix dropdown appearance when open */
#material-type, #material-color {
    background: white !important;
    color: #333 !important;
    border: 1px solid #e1e5e9 !important;
    /* Override with dark arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
}

/* Safari-specific fixes for select options */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    select option {
        background-color: white !important;
        color: #333 !important;
    }
}


.download {
    text-align: center;
}

.download h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.download-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.download-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cart Styling */

.cart-header {
    position: relative;
}

.site-header .cart-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

.site-header .cart-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.cart-btn {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #667eea;
}

.cart-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-1px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.cart-count.hidden {
    display: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (min-width: 1200px) {
    .action-buttons {
        gap: 16px;
        justify-content: center;
        margin-top: 30px;
    }
    
    .add-to-cart-btn, .download-btn {
        min-width: 200px;
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .material-selection {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 24px;
    }
    
    .material-selection h4 {
        grid-column: 1 / -1;
    }
    
    .background-controls {
        padding: 24px;
    }
    
    .color-buttons {
        gap: 12px;
    }
    
    .color-btn {
        padding: 10px 18px;
        font-size: 15px;
        min-width: 80px;
    }
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 160px;
    justify-content: center;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.download-btn {
    flex: 1;
    min-width: 200px;
}

/* Generic Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e1e5e9;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 20px 20px 12px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 12px 20px 20px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cart-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cart-modal .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9ff;
}

.cart-modal .cart-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-cart:hover {
    background: #e1e5e9;
    color: #333;
}

.cart-body {
    max-height: 60vh;
    overflow-y: auto;
}

.cart-items {
    padding: 20px 24px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-cart p {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.empty-cart-subtitle {
    font-size: 14px !important;
    color: #999 !important;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-preview {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    background: #f8f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-preview svg {
    width: 70px;
    height: 50px;
    max-width: 70px;
    max-height: 50px;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-title {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.cart-item-config {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    background: #f8f9ff;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    color: #667eea;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.quantity-display {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    transition: all 0.2s ease;
}

.remove-item:hover {
    color: #c82333;
}

.cart-summary {
    border-top: 1px solid #e1e5e9;
    padding: 20px 24px;
    background: #f8f9ff;
}

.cart-total {
    margin-bottom: 16px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 15px;
}

.total-price-line {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 16px;
    padding-top: 8px;
    border-top: 1px solid #e1e5e9;
}

.discount-info {
    margin: 8px 0;
    padding: 8px 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
}

.discount-text {
    font-size: 13px;
    color: #155724;
    font-weight: 600;
}

.price-note {
    font-size: 12px;
    color: #666;
    margin: 8px 0 0 0;
    font-style: italic;
}

.cart-actions {
    display: flex;
    gap: 12px;
}

.clear-cart-btn {
    background: white;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-cart-btn:hover {
    background: #dc3545;
    color: white;
}

.checkout-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.checkout-btn:hover {
    background: #218838;
}

@media (max-width: 600px) {
    .app-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .add-to-cart-btn, .download-btn {
        width: 100%;
    }
    
    .cart-modal {
        padding: 10px;
    }
    
    .cart-modal-content {
        max-height: 90vh;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-item-preview {
        width: 70px;
        height: 50px;
    }
    
    .cart-item-preview svg {
        width: 60px;
        height: 40px;
        max-width: 60px;
        max-height: 40px;
    }
}

/* Gallery Page Specific Fixes - Header and Cart Styling */
body.gallery-page {
    background: linear-gradient(to bottom, #0d1b2a 0%, #1b263b 50%, #0f172a 100%) !important;
    min-height: 100vh !important;
    padding: 120px 20px 0 !important;
}

/* Force header text to be white on gallery page - MAXIMUM SPECIFICITY */
body.gallery-page .site-header .header-text h1,
html body .site-header .header-text h1,
html body .site-header .header-branding .header-text h1,
html .site-header .header-text h1,
.site-header .header-text h1,
header .header-text h1 {
    color: white !important;
    margin: 0 0 5px 0 !important;
    font-size: 24px !important;
    font-weight: 600 !important;
}

body.gallery-page .site-header .header-text .tagline,
html body .site-header .header-text .tagline,
html body .site-header .header-branding .header-text .tagline,
html .site-header .header-text .tagline,
.site-header .header-text .tagline,
header .header-text .tagline {
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Fix cart button styling - prevent nav active underline */
body.gallery-page .cart-header .cart-btn::after,
body.gallery-page .cart-header .cart-btn:after,
body.gallery-page .cart-btn::after,
body.gallery-page .cart-btn:after,
body.gallery-page #cart-btn::after,
body.gallery-page #cart-btn:after,
.cart-header .cart-btn::after,
.cart-header .cart-btn:after,
.cart-btn::after,
.cart-btn:after,
#cart-btn::after,
#cart-btn:after,
button.cart-btn::after,
button.cart-btn:after {
    display: none !important;
    content: none !important;
}

/* Clean styling for gallery page */
body.gallery-page .site-header {
    background: rgba(30, 60, 114, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}


footer {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.95);
    width: 100%;
    padding: 50px 20px 30px;
}

/* Ensure footer styling is consistent across all pages */
body.gallery-page footer,
footer {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Footer link styling */
footer a,
.footer-section a {
    color: #87ceeb !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover,
.footer-section a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

footer a:visited,
.footer-section a:visited {
    color: #87ceeb !important;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-section p {
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    padding: 4px 0;
    font-size: 14px;
    opacity: 0.9;
}

.footer-section li:before {
    content: "•";
    color: #667eea;
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

@media (max-width: 600px) {
    footer {
        padding: 40px 15px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

/* Admin Interface Styles */
/* Override main body styles for admin pages */
html body.admin-body,
body.admin-body,
.admin-body {
    display: block !important;
    flex-direction: unset !important;
    align-items: unset !important;
    justify-content: unset !important;
    padding: 120px 0 0 0 !important;
    min-height: 100vh !important;
    background: linear-gradient(to bottom, #0d1b2a 0%, #1b263b 50%, #0f172a 100%) !important;
    color: white !important;
}

/* Extra aggressive admin body override */
body[class*="admin-body"] {
    background: #0d1b2a !important;
    color: white !important;
}

html body.admin-body .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px 100px 20px !important;
    width: 100% !important;
    display: block !important;
}

.admin-body .admin-header {
    text-align: center;
    margin-bottom: 40px;
    color: white !important;
}

.admin-body .admin-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #667eea !important;
}

.admin-body .admin-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    color: white !important;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.admin-body .stat-card h3 {
    color: white !important;
    font-size: 1rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.stat-number {
    color: #667eea;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.admin-section {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.admin-body .admin-section h2 {
    color: white !important;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.orders-table-container {
    overflow-x: auto;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.orders-table th,
.orders-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-body .orders-table th {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-body .orders-table td {
    color: rgba(255, 255, 255, 0.9) !important;
    background: transparent !important;
}

.order-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.order-id {
    font-family: monospace;
    font-weight: bold;
    color: #667eea;
}

.admin-body .customer-name {
    font-weight: 500;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.admin-body .customer-email {
    font-size: 0.85rem;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.7) !important;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-paid {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-failed {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-processing {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.status-shipped {
    background: rgba(111, 66, 193, 0.2);
    color: #6f42c1;
    border: 1px solid rgba(111, 66, 193, 0.3);
}

.status-cancelled {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.order-total {
    font-weight: bold;
    color: #28a745;
}

.order-date {
    font-family: monospace;
    font-size: 0.9rem;
}

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

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

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

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.no-orders {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
}

.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Admin Modal Styles - Specific to order modal only */
#orderModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

#orderModal .modal-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#orderModal .modal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#orderModal .modal-header h3 {
    color: white;
    margin: 0;
    font-size: 1.4rem;
}

#orderModal .close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#orderModal .close:hover {
    opacity: 1;
}

#orderModal .modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.order-detail-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-detail-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.order-detail-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    line-height: 1.5;
}

.order-detail-section strong {
    color: white;
    margin-right: 8px;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 15px;
    border-left: 3px solid #667eea;
}

.order-item p {
    margin-bottom: 6px;
}

/* Responsive Admin Styles */
@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .admin-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .quick-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .orders-table-container {
        font-size: 0.8rem;
    }
    
    .customer-info,
    .order-actions {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
}