/* Mobisys SmartLabel SaaS Theme - Ultra-Modern High-Fidelity UI/UX */

:root {
    --theme-bg-app: #080d1a;
    --theme-bg-card: rgba(19, 28, 46, 0.75);
    --theme-bg-card-hover: rgba(26, 38, 62, 0.85);
    --theme-border: rgba(51, 65, 85, 0.65);
    --theme-border-highlight: rgba(255, 255, 255, 0.07);
    --theme-input-bg: rgba(11, 18, 33, 0.8);
    --theme-text-primary: #f8fafc;
    --theme-text-secondary: #cbd5e1;
    --theme-text-muted: #94a3b8;
    --theme-accent-emerald: #10b981;
    --theme-accent-blue: #3b82f6;
    --theme-accent-indigo: #6366f1;
    --theme-accent-cyan: #06b6d4;
    --theme-accent-amber: #f59e0b;
    --theme-accent-rose: #f43f5e;
}

body {
    background-color: var(--theme-bg-app);
    color: var(--theme-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(16, 185, 129, 0.06), transparent);
    background-attachment: fixed;
    letter-spacing: -0.01em;
}

/* Glassmorphism Card Frames */
.desktop-card {
    background: linear-gradient(180deg, rgba(22, 33, 54, 0.8) 0%, rgba(15, 23, 42, 0.85) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--theme-border);
    border-top: 1px solid var(--theme-border-highlight);
    border-radius: 14px;
    padding: 16px 18px;
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-card:hover {
    border-color: rgba(71, 85, 105, 0.85);
    box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.6), 0 0 15px -3px rgba(59, 130, 246, 0.08);
}

.desktop-card-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--theme-text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.015em;
}

/* Modern Drag-and-Drop Zone */
.dropzone-container {
    border: 2px dashed rgba(71, 85, 105, 0.7);
    border-radius: 12px;
    background: rgba(11, 18, 33, 0.5);
    transition: all 0.25s ease;
    cursor: pointer;
}

.dropzone-container:hover {
    border-color: rgba(99, 102, 241, 0.7);
    background: rgba(99, 102, 241, 0.05);
}

.dropzone-container.dragover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.005);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}

/* Interactive Selectable Mode Cards (Step 2) */
.mode-card {
    border: 1.5px solid rgba(51, 65, 85, 0.7);
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mode-card:hover {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(30, 41, 59, 0.6);
}

.mode-card.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 20px -5px rgba(16, 185, 129, 0.25);
}

/* Custom Styled Input Boxes */
.desktop-input {
    background-color: var(--theme-input-bg);
    border: 1px solid var(--theme-border);
    color: var(--theme-text-primary);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.desktop-input:focus {
    border-color: #3b82f6;
    background-color: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Universal Modern Dropdown Styling with Spaced Arrow (All Dropdown Boxes) */
select,
.desktop-select,
select.desktop-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
    padding-right: 38px !important;
    cursor: pointer;
}

select:hover,
select:focus,
select.desktop-input:hover,
select.desktop-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2338bdf8' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* Custom Desktop Checkbox */
.desktop-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #475569;
    border-radius: 5px;
    background-color: rgba(15, 23, 42, 0.9);
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    vertical-align: middle;
    margin: 0;
    flex-shrink: 0;
}

.desktop-checkbox:hover {
    border-color: #3b82f6;
    background-color: #1e293b;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.desktop-checkbox:checked {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.desktop-checkbox:checked::before {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg) translate(1px, -1px);
}

/* Custom Desktop Radio Button */
.desktop-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid #475569;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.9);
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    vertical-align: middle;
    margin: 0;
    flex-shrink: 0;
}

.desktop-radio:hover {
    border-color: #10b981;
    background-color: #1e293b;
}

.desktop-radio:checked {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.desktop-radio:checked::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* Animated Shimmer Progress Bar Track */
.desktop-progress-track {
    background-color: rgba(30, 41, 59, 0.9);
    height: 8px;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(51, 65, 85, 0.5);
}

.desktop-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981, #06b6d4);
    background-size: 200% 100%;
    border-radius: 9999px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.desktop-progress-bar.active {
    animation: shimmer 1.8s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Desktop Modal Backdrop & Dialog */
.desktop-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(8, 13, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.desktop-modal-card {
    background: linear-gradient(180deg, #162033 0%, #0d1527 100%);
    border: 1px solid rgba(71, 85, 105, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(59, 130, 246, 0.15);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Hero CTA Button Glow */
.btn-cta-emerald {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #0d9488 100%);
    box-shadow: 0 4px 15px -2px rgba(16, 185, 129, 0.4), 0 0 2px 1px rgba(255, 255, 255, 0.2) inset;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta-emerald:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #0f766e 100%);
    box-shadow: 0 6px 20px 0px rgba(16, 185, 129, 0.55), 0 0 2px 1px rgba(255, 255, 255, 0.3) inset;
    transform: translateY(-1px);
}

.btn-cta-emerald:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Modern Nav Active Link Pill */
.nav-pill-active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Direct 4x6 Thermal Print Stylesheet */
@media print {
    @page {
        size: 4in 6in;
        margin: 0;
    }
    body * {
        visibility: hidden;
    }
    #thermalPrintFrame, #thermalPrintFrame * {
        visibility: visible;
    }
    #thermalPrintFrame {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }
}
