* {
            font-family: 'Inter', sans-serif;
        }

        html,
        body {
            margin: 0;
            padding: 0;
            overflow-x: hidden;
        }

        body {
            background-color: #f0f4ff;
            background-image: radial-gradient(ellipse at top, #e0e7ff 0%, #f0f4ff 60%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        #appContent {
            flex: 1;
        }

        .preview-container {
            background-color: #f8fafc;
            background-image:
                linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px),
                linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
                linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
            background-size: 10px 10px, 10px 10px, 50px 50px, 50px 50px;
            transition: background-size 0.2s;
        }

        /* ===== CONSISTENT SECTION STYLING ===== */
        section {
            background: white;
            padding: 1.5rem;
            border-radius: 1rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            border: 1px solid #f1f5f9;
            transition: all 0.2s ease;
        }

        @media (min-width: 768px) {
            section {
                padding: 1.5rem;
            }
        }

        /* ===== CLS PREVENTION & RESPONSIVE OPTIMIZATION ===== */
        header {
            min-height: auto;
        }

        .app-title,
        .app-badge {
            margin: 0;
        }

        /* Ensure consistent grid gaps on mobile */
        @media (max-width: 1023px) {
            .main-content {
                gap: 1rem;
            }

            section {
                padding: 1.25rem;
            }
        }

        @media (max-width: 767px) {
            .main-content {
                gap: 0.75rem;
            }

            section {
                padding: 1rem;
            }

            .grid>* {
                flex: 1 1 100%;
            }
        }

        /* Flexible resolution support */
        /* ===== FORM ELEMENTS CONSISTENCY ===== */
        input[type="number"],
        input[type="text"],
        input[type="password"] {
            height: 2.5rem;
            line-height: 1.5;
            font-size: 1rem;
        }

        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        input[type=number] {
            -moz-appearance: textfield;
        }

        /* Button consistency */
        button {
            min-height: 2.5rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        /* Checkbox consistency */
        input[type="checkbox"] {
            cursor: pointer;
            accent-color: #6366f1;
        }

        /* Select consistency */
        select {
            height: 2.5rem;
            padding: 0.5rem;
        }

        /* ===== USER PANEL STYLES ===== */
        .user-panel {
            display: flex;
            align-items: center;
            gap: 16px;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
            border-radius: 20px;
            padding: 14px 20px;
            box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
            position: relative;
            overflow: hidden;
            animation: panelSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
        }

        .user-panel::before {
            content: '';
            position: absolute;
            top: -40px;
            right: -40px;
            width: 120px;
            height: 120px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 50%;
            pointer-events: none;
        }

        .user-panel::after {
            content: '';
            position: absolute;
            bottom: -30px;
            left: 20px;
            width: 80px;
            height: 80px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 50%;
            pointer-events: none;
        }

        @keyframes panelSlideIn {
            from {
                opacity: 0;
                transform: translateX(40px) scale(0.9);
            }

            to {
                opacity: 1;
                transform: translateX(0) scale(1);
            }
        }

        .user-avatar {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.35);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 800;
            color: white;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            animation: avatarPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
        }

        @keyframes avatarPop {
            from {
                transform: scale(0);
            }

            to {
                transform: scale(1);
            }
        }

        .user-info {
            flex: 1;
            min-width: 0;
        }

        .user-greeting {
            font-size: 10px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.65);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 2px;
        }

        .user-name {
            font-size: 15px;
            font-weight: 700;
            color: white;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .project-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: rgba(255, 255, 255, 0.18);
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 20px;
            padding: 3px 10px;
            font-size: 11px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            margin-top: 5px;
            backdrop-filter: blur(4px);
            max-width: 180px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #4ade80;
            flex-shrink: 0;
            box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
            animation: pulse-green 2s infinite;
        }

        @keyframes pulse-green {

            0%,
            100% {
                box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3);
            }

            50% {
                box-shadow: 0 0 0 5px rgba(74, 222, 128, 0);
            }
        }

        .logout-btn {
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 10px;
            padding: 8px;
            color: white;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .logout-btn:hover {
            background: rgba(255, 255, 255, 0.28);
            transform: scale(1.08);
        }

        /* ===== APP HEADER TITLE ===== */
        .app-title-section {
            animation: titleFadeIn 0.7s ease both;
            flex: 1;
            min-width: 0;
        }

        @keyframes titleFadeIn {
            from {
                opacity: 0;
                transform: translateY(-16px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .app-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: linear-gradient(135deg, #ede9fe, #ddd6fe);
            border: 1px solid #c4b5fd;
            border-radius: 20px;
            padding: 3px 12px;
            font-size: 11px;
            font-weight: 600;
            color: #7c3aed;
            margin-bottom: 8px;
            white-space: nowrap;
        }

        .app-title {
            font-size: clamp(22px, 4vw, 30px);
            font-weight: 800;
            background: linear-gradient(135deg, #1e1b4b, #4338ca, #7c3aed);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.5px;
            margin: 0;
            line-height: 1.2;
        }

        .app-title p {
            margin: 0;
            font-size: 0.875rem;
            color: #64748b;
        }

        /* Responsive header layout */
        header {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        @media (min-width: 768px) {
            header {
                flex-direction: row;
                align-items: flex-start;
                justify-content: space-between;
                gap: 1.5rem;
            }

            .app-title-section {
                flex: 1;
            }
        }

        /* ===== SWAL CUSTOM ===== */
        .swal-setup-popup {
            border-radius: 28px !important;
            padding: 0 !important;
            overflow: hidden !important;
            border: 1px solid rgba(99, 102, 241, 0.15) !important;
            box-shadow: 0 32px 80px rgba(99, 102, 241, 0.25) !important;
        }

        .swal-setup-header {
            background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
            padding: 32px 32px 24px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .swal-setup-logo {
            width: 64px;
            height: 64px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            font-size: 28px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
            animation: logoBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
        }

        @keyframes logoBounce {
            from {
                transform: scale(0) rotate(-10deg);
            }

            to {
                transform: scale(1) rotate(0deg);
            }
        }

        .swal-setup-title {
            color: white;
            font-size: 22px;
            font-weight: 800;
            margin-bottom: 6px;
        }

        .swal-setup-subtitle {
            color: rgba(255, 255, 255, 0.75);
            font-size: 13px;
        }

        .swal-setup-body {
            padding: 28px 32px 24px;
        }

        .swal-field-group {
            margin-bottom: 18px;
        }

        .swal-field-label {
            display: flex;
            align-items: center;
            gap: 7px;
            font-size: 12px;
            font-weight: 600;
            color: #6366f1;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .swal-custom-input {
            width: 100%;
            box-sizing: border-box;
            background: #f8faff;
            border: 2px solid #e0e7ff;
            border-radius: 14px;
            padding: 14px 16px;
            font-size: 15px;
            font-weight: 500;
            color: #1e1b4b;
            outline: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Inter', sans-serif;
        }

        .swal-custom-input:focus {
            border-color: #6366f1;
            background: white;
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
            transform: translateY(-1px);
        }

        .swal-custom-input::placeholder {
            color: #a5b4fc;
        }

        .swal-divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, #e0e7ff, transparent);
            margin: 4px 0 18px;
        }

        .swal-confirm-btn {
            background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
            border-radius: 14px !important;
            padding: 14px 36px !important;
            font-size: 15px !important;
            font-weight: 700 !important;
            letter-spacing: 0.3px !important;
            border: none !important;
            box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35) !important;
            transition: all 0.3s !important;
        }

        .swal-confirm-btn:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45) !important;
        }

        .swal-cancel-btn {
            background: #f1f5f9 !important;
            color: #64748b !important;
            border-radius: 14px !important;
            padding: 14px 28px !important;
            font-size: 15px !important;
            font-weight: 600 !important;
            border: none !important;
            box-shadow: none !important;
        }

        /* ===== BLING CONFETTI ANIMATION ===== */
        @keyframes confettiFall {
            0% {
                transform: translateY(-20px) rotate(0deg);
                opacity: 1;
            }

            100% {
                transform: translateY(60px) rotate(360deg);
                opacity: 0;
            }
        }

        .confetti-piece {
            position: absolute;
            width: 8px;
            height: 8px;
            border-radius: 2px;
            animation: confettiFall 1.2s ease-in forwards;
        }

        /* iOS-style Login Screen */
        .login-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        .login-container {
            background: white;
            border-radius: 24px;
            padding: clamp(30px, 5vw, 50px);
            width: 90%;
            max-width: 400px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            text-align: center;
        }

        .login-logo {
            width: clamp(60px, 12vw, 80px);
            height: clamp(60px, 12vw, 80px);
            margin: 0 auto clamp(20px, 4vw, 30px);
            color: #667eea;
        }

        .login-title {
            font-size: clamp(24px, 5vw, 32px);
            font-weight: 700;
            color: #1e293b;
            margin-bottom: clamp(8px, 2vw, 12px);
        }

        .login-subtitle {
            font-size: clamp(13px, 3vw, 15px);
            color: #64748b;
            margin-bottom: clamp(10px, 2vw, 16px);
        }

        .login-instruction {
            font-size: clamp(12px, 2.5vw, 14px);
            color: #78909c;
            margin-bottom: clamp(20px, 4vw, 30px);
            line-height: 1.5;
        }

        .pin-display {
            display: flex;
            gap: clamp(8px, 2vw, 12px);
            justify-content: center;
            margin: clamp(25px, 5vw, 35px) 0;
            flex-wrap: wrap;
        }

        .pin-dot {
            width: clamp(40px, 8vw, 50px);
            height: clamp(40px, 8vw, 50px);
            border: 2px solid #e2e8f0;
            border-radius: clamp(8px, 2vw, 12px);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: clamp(20px, 4vw, 24px);
            font-weight: bold;
            color: #667eea;
            background: #f1f5f9;
            transition: all 0.2s;
            min-width: clamp(40px, 8vw, 50px);
        }

        .pin-dot.filled {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .pin-input {
            display: block;
            width: 100%;
            box-sizing: border-box;
            background: #f8fafc;
            border: 2px solid #e2e8f0;
            border-radius: clamp(16px, 4vw, 24px);
            padding: clamp(16px, 3vw, 20px);
            font-size: clamp(18px, 4vw, 24px);
            font-weight: 600;
            text-align: center;
            letter-spacing: clamp(4px, 1vw, 8px);
            color: #667eea;
            font-family: 'Courier New', monospace;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            margin: clamp(25px, 5vw, 35px) auto;
        }

        .pin-input:focus {
            outline: none;
            border-color: #667eea;
            background: white;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .pin-input::placeholder {
            color: #cbd5e1;
        }

        .login-btn {
            width: 100%;
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
            border: none;
            border-radius: clamp(16px, 4vw, 24px);
            padding: clamp(16px, 3vw, 20px);
            font-size: clamp(16px, 3vw, 18px);
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: clamp(10px, 2vw, 16px);
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
        }

        .login-btn:active {
            transform: translateY(0);
            opacity: 0.95;
        }

        .login-btn:disabled {
            background: #cbd5e1;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
        }

        .pin-error {
            font-size: clamp(12px, 2vw, 14px);
            color: #dc2626;
            margin-top: clamp(12px, 2vw, 16px);
            min-height: 20px;
        }

        .login-footer {
            margin-top: clamp(20px, 4vw, 30px);
            padding-top: clamp(15px, 3vw, 20px);
            border-top: 1px solid #e2e8f0;
            font-size: clamp(10px, 2vw, 12px);
            color: #94a3b8;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .login-container:hover .login-footer {
            opacity: 1;
        }

        .app-content {
            display: none;
        }

        .app-content.show {
            display: block;
        }

        @media (max-width: 640px) {
            .login-container {
                max-width: 95%;
                padding: clamp(25px, 4vw, 35px);
            }
        }

        @media (max-width: 480px) {
            .login-container {
                border-radius: clamp(16px, 3vw, 20px);
            }

            .pin-input {
                border-radius: clamp(12px, 3vw, 16px);
            }
        }

        @media print {
            .no-print {
                display: none !important;
            }

            .print-only {
                display: block !important;
            }

            * {
                -webkit-print-color-adjust: exact !important;
                print-color-adjust: exact !important;
            }

            body {
                background: white;
                padding: 0;
                margin: 0;
            }

            .main-content {
                grid-template-columns: 1fr;
                gap: 0 !important;
            }

            #printInfo {
                display: block !important;
                page-break-after: always;
            }

            .print-info {
                display: block !important;
                page-break-after: always;
                min-height: auto !important;
            }

            svg {
                page-break-inside: avoid;
            }

            /* Optimize for browser printing */
            #appContent {
                max-width: 100%;
            }

            .max-w-6xl {
                max-width: 100%;
                margin: 0;
                padding: 0;
            }

            header {
                display: none !important;
            }

            footer {
                display: none !important;
            }

            section,
            .bg-white {
                box-shadow: none !important;
                border: none !important;
                page-break-inside: avoid;
            }

            /* === OPTIMIZE PRINT LAYOUT FOR 2 PAGES === */
            #printInfo>div:first-child {
                padding: 20px 24px !important;
                margin-bottom: 0 !important;
            }

            #printInfo>div:first-child h1 {
                font-size: 24px !important;
                margin: 0 !important;
            }

            #printInfo>div:first-child p {
                font-size: 11px !important;
                margin-top: 2px !important;
            }

            #printInfo>div:last-child {
                padding: 20px 24px !important;
            }

            /* Metadata section - reduce gap & padding */
            #printInfo [style*="display: grid; grid-template-columns: 1fr 1fr 1fr"] {
                gap: 12px !important;
                margin: -12px 0 16px !important;
                padding: 12px !important;
            }

            #printInfo [style*="display: grid; grid-template-columns: repeat(4, 1fr)"] {
                gap: 8px !important;
                margin-bottom: 16px !important;
            }

            #printInfo [style*="font-size: 32px"] {
                font-size: 24px !important;
            }

            #printInfo [style*="font-size: 10px; color: #3b82f6"] {
                font-size: 8px !important;
            }

            #printInfo [style*="font-size: 14px; font-weight: 800"] {
                font-size: 12px !important;
                margin-bottom: 10px !important;
            }

            #printInfo [style*="display: grid; grid-template-columns: 1fr 1fr; gap: 40px"] {
                gap: 24px !important;
                margin-bottom: 16px !important;
            }

            #printInfo table {
                font-size: 11px !important;
            }

            #printInfo table tr {
                padding: 6px 0 !important;
            }

            /* Compact header section */
            #printInfo [style*="background: linear-gradient"] {
                padding: 20px 24px !important;
            }

            #printInfo [style*="background: linear-gradient"] h1 {
                font-size: 22px !important;
            }

            /* Visual layout section */
            #printInfo [style*="background: #f8fafc; border-radius: 24px"] {
                padding: 16px !important;
                margin-bottom: 16px !important;
                page-break-inside: avoid;
            }

            #printInfo [style*="background: #f8fafc; border-radius: 24px"] h3 {
                font-size: 12px !important;
                margin: 0 0 12px !important;
            }

            #printInfo [style*="background: #f8fafc; border-radius: 24px"]>div:last-child {
                padding: 12px !important;
            }

            /* Footer section compact */
            #printInfo [style*="border-top: 1px solid #e2e8f0"] {
                border-top: 1px solid #e2e8f0 !important;
                padding-top: 12px !important;
                font-size: 9px !important;
            }

            #printInfo [style*="border-top: 1px solid #e2e8f0"] p {
                margin: 0 !important;
                font-size: 9px !important;
            }

            /* Reduce all margins & padding */
            #printInfo [style*="margin-bottom: 32px"] {
                margin-bottom: 12px !important;
            }

            #printInfo [style*="margin-bottom: 40px"] {
                margin-bottom: 16px !important;
            }

            #printInfo [style*="margin-bottom: 24px"] {
                margin-bottom: 8px !important;
            }

            #printInfo [style*="padding: 20px"] {
                padding: 12px !important;
            }

            #printInfo [style*="padding: 40px"] {
                padding: 16px !important;
            }

            #printInfo [style*="padding: 32px"] {
                padding: 12px !important;
            }

            /* Compact spec cards */
            #printInfo [style*="background: #eff6ff"] {
                padding: 12px !important;
            }

            #printInfo [style*="background: #ecfdf5"] {
                padding: 12px !important;
            }

            #printInfo [style*="background: #fdf2f8"] {
                padding: 12px !important;
            }

            #printInfo [style*="background: #f8fafc; padding: 20px"] {
                padding: 12px !important;
            }

            /* Reduce line heights and margins */
            #printInfo div {
                margin-top: 0 !important;
            }

            #printInfo p {
                margin: 0 0 2px 0 !important;
                line-height: 1.2 !important;
            }

            /* Page break optimization */
            @page {
                margin: 8mm !important;
                size: A4 portrait;
            }

            /* Force page 1 & 2 only */
            #printInfo {
                orphans: 1;
                widows: 1;
                page-break-inside: avoid;
            }
        }

        /* iOS-style Login Screen */
        .login-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        .login-container {
            background: white;
            border-radius: 24px;
            padding: clamp(30px, 5vw, 50px);
            width: 90%;
            max-width: 400px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            text-align: center;
        }

        .login-logo {
            width: clamp(60px, 12vw, 80px);
            height: clamp(60px, 12vw, 80px);
            margin: 0 auto clamp(20px, 4vw, 30px);
            color: #667eea;
        }

        .login-title {
            font-size: clamp(24px, 5vw, 32px);
            font-weight: 700;
            color: #1e293b;
            margin-bottom: clamp(8px, 2vw, 12px);
        }

        .login-subtitle {
            font-size: clamp(13px, 3vw, 15px);
            color: #64748b;
            margin-bottom: clamp(10px, 2vw, 16px);
        }

        .login-instruction {
            font-size: clamp(12px, 2.5vw, 14px);
            color: #78909c;
            margin-bottom: clamp(20px, 4vw, 30px);
            line-height: 1.5;
        }

        .pin-display {
            display: flex;
            gap: clamp(8px, 2vw, 12px);
            justify-content: center;
            margin: clamp(25px, 5vw, 35px) 0;
            flex-wrap: wrap;
        }

        .pin-dot {
            width: clamp(40px, 8vw, 50px);
            height: clamp(40px, 8vw, 50px);
            border: 2px solid #e2e8f0;
            border-radius: clamp(8px, 2vw, 12px);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: clamp(20px, 4vw, 24px);
            font-weight: bold;
            color: #667eea;
            background: #f1f5f9;
            transition: all 0.2s;
            min-width: clamp(40px, 8vw, 50px);
        }

        .pin-dot.filled {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .pin-input {
            display: block;
            width: 100%;
            box-sizing: border-box;
            background: #f8fafc;
            border: 2px solid #e2e8f0;
            border-radius: clamp(16px, 4vw, 24px);
            padding: clamp(16px, 3vw, 20px);
            font-size: clamp(18px, 4vw, 24px);
            font-weight: 600;
            text-align: center;
            letter-spacing: clamp(4px, 1vw, 8px);
            color: #667eea;
            font-family: 'Courier New', monospace;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            margin: clamp(25px, 5vw, 35px) auto;
        }

        .pin-input:focus {
            outline: none;
            border-color: #667eea;
            background: white;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .pin-input::placeholder {
            color: #cbd5e1;
        }

        .login-btn {
            width: 100%;
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
            border: none;
            border-radius: clamp(16px, 4vw, 24px);
            padding: clamp(16px, 3vw, 20px);
            font-size: clamp(16px, 3vw, 18px);
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: clamp(10px, 2vw, 16px);
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
        }

        .login-btn:active {
            transform: translateY(0);
            opacity: 0.95;
        }

        .login-btn:disabled {
            background: #cbd5e1;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
        }

        .pin-error {
            font-size: clamp(12px, 2vw, 14px);
            color: #dc2626;
            margin-top: clamp(12px, 2vw, 16px);
            min-height: 20px;
        }

        .login-footer {
            margin-top: clamp(20px, 4vw, 30px);
            padding-top: clamp(15px, 3vw, 20px);
            border-top: 1px solid #e2e8f0;
            font-size: clamp(10px, 2vw, 12px);
            color: #94a3b8;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .login-container:hover .login-footer {
            opacity: 1;
        }

        .app-content {
            display: none;
        }

        .app-content.show {
            display: block;
        }

        @media (max-width: 640px) {
            .login-container {
                max-width: 95%;
                padding: clamp(25px, 4vw, 35px);
            }
        }

        @media (max-width: 480px) {
            .login-container {
                border-radius: clamp(16px, 3vw, 20px);
            }

            .pin-input {
                border-radius: clamp(12px, 3vw, 16px);
            }
        }

        @media print {
            .no-print {
                display: none !important;
            }

            .print-only {
                display: block !important;
            }

            body {
                background: white;
                padding: 0;
            }

            .main-content {
                grid-template-columns: 1fr;
            }

            .print-info {
                display: block !important;
                page-break-after: always;
            }

            svg {
                page-break-inside: avoid;
            }
        }