﻿        :root {
            --metal-base: #d1d5db;
            --accent-blue: #0ea5e9;
            --gmp-red: #ef4444;
            --gmp-green: #10b981;
            --di-navy: #1e3a8a;
        }

        body {
            font-family: 'Noto Sans JP', sans-serif;
            background: #f1f5f9;
            min-height: 100vh;
            color: #1f2937;
            touch-action: manipulation;
        }

        /* Login Screen Styles */
        #login-view {
            background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
        }

        /* Modal Overlay Common */
        .modal-overlay {
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
        }

        /* Main App Styles (Existing Metallic Theme) */
        #main-view {
            display: none; /* Hidden by default */
            background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 25%, #f3f4f6 50%, #9ca3af 75%, #e5e7eb 100%);
            background-size: 400% 400%;
            animation: metallicFlow 15s ease infinite;
            min-height: 100vh;
        }

        @keyframes metallicFlow {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .brushed-metal {
            background: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(0,0,0,0.05) 50%, rgba(255,255,255,0.1) 100%);
            border: 1px solid rgba(255,255,255,0.4);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 10px 20px rgba(0,0,0,0.1);
            backdrop-filter: blur(10px);
            border-radius: 12px;
        }

        .lcd-display {
            background-color: #1a202c;
            color: #00ff41;
            font-family: 'Orbitron', sans-serif;
            border: 4px inset #4a5568;
            text-shadow: 0 0 10px rgba(0,255,65,0.5);
        }

        .btn-metal {
            background: linear-gradient(to bottom, #f9fafb, #d1d5db);
            border: 1px solid #9ca3af;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 0 #fff;
            transition: all 0.2s;
        }
        .btn-metal:active:not(:disabled) {
            transform: translateY(1px);
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
        }
        .btn-metal:disabled { opacity: 0.5; cursor: not-allowed; }

        .mode-switch {
            background: #cbd5e1;
            border-radius: 20px;
            padding: 2px;
            display: flex;
            position: relative;
            width: 140px;
        }
        .mode-btn {
            flex: 1; text-align: center; font-size: 0.75rem; font-weight: bold;
            padding: 4px 0; cursor: pointer; z-index: 1; transition: color 0.3s;
        }
        .mode-slider {
            position: absolute; top: 2px; left: 2px; width: calc(50% - 2px); height: calc(100% - 4px);
            background: #0ea5e9; border-radius: 18px; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .custom-scroll::-webkit-scrollbar { width: 6px; }
        .custom-scroll::-webkit-scrollbar-track { background: transparent; }
        .custom-scroll::-webkit-scrollbar-thumb { background: #9ca3af; border-radius: 10px; }
        .validation-error { color: #ef4444; font-size: 0.7rem; margin-top: 0.25rem; display: none; }

        /* Offline Alert */
        #offline-banner {
            display: none;
            background-color: #ef4444;
            color: white;
            text-align: center;
            font-size: 0.8rem;
            padding: 4px;
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 9999;
            font-weight: bold;
        }
        
        /* Utility for deleted items */
        .log-deleted { opacity: 0.5; background-color: #f3f4f6; text-decoration: line-through; pointer-events: none; }
    