@font-face {
    font-family: 'Rakesly';
    src: url('rakesly rg it.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    position: relative;
}

/* Logo Section */
.logo-section {
    position: absolute;
    top: 25px;
    left: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

.logo-img {
    width: 90px;
    height: auto;
}

.logo-text {
    font-family: 'Rakesly', sans-serif;
    font-style: italic;
    font-size: 18px;
    color: #333;
    margin-top: 5px;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 100px;
    min-height: 100vh;
}

/* Split Layout for Admin */
.split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.left-panel {
    width: 450px;
    min-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px; /* Increased top/bottom padding */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center content */
    border-right: 1px solid rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky; /* Sticks to the viewport */
    top: 0;
    height: 100vh; /* Takes full viewport height */
    background-color: #f0f0f0;
    overflow: hidden; /* Contains the watermark */
}

/* Watermark Pattern */
.right-panel::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Reverting to direct image to fix visibility */
    background-image: url('assets/pixelframe_logo.webp');
    background-size: 250px; /* Slightly adjusted size */
    background-repeat: space; /* Allows spacing distribution if browser supports it */
    transform: rotate(-45deg);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* Dark Mode fixes for Split Layout */
body.dark-mode .left-panel {
    background: rgba(17, 17, 17, 0.95);
    border-right-color: rgba(255,255,255,0.1);
}

body.dark-mode .right-panel {
    background-color: #050505;
}

body.dark-mode .split-layout .screen {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

body.dark-mode .brand-display {
    background: rgba(30, 30, 30, 0.85);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

body.dark-mode .brand-title {
    color: #eee;
}

/* Make logo visible in dark mode */
body.dark-mode .big-logo,
body.dark-mode .logo-img {
    filter: brightness(0) invert(1); /* Turns black logo to white */
    opacity: 0.9;
}

.brand-display {
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 60px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1; /* Sits above watermark */
}

.big-logo {
    width: 250px;
    height: auto;
    margin-bottom: 0; /* Removed margin since text is gone */
    /* Removed drop-shadow to avoid dirty look in some modes */
}

.brand-title {
    font-family: 'Rakesly', sans-serif;
    font-style: italic;
    font-size: 48px;
    color: #333;
    margin: 0;
}

/* Admin panel inside split layout fixes */
.split-layout .screen {
    box-shadow: none;
    background: transparent;
    padding: 0;
}

/* Screens */
.screen {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.screen.hidden {
    display: none;
}

.icon {
    font-size: 48px;
    margin-bottom: 20px;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

/* Plate badge style - Turkish license plate */
.plate-badge {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 2px solid #000;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    overflow: hidden;
    font-family: 'Arial Black', Arial, sans-serif;
    line-height: 1;
}

.plate-badge::before {
    content: 'TR';
    background: #003399;
    color: #fff;
    padding: 4px 5px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    border-right: 2px solid #000;
}

.plate-badge span {
    padding: 4px 10px;
    color: #000;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    text-align: left;
}

p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Forms */
input[type="text"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: #333;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
}

.btn.primary {
    background-color: #222;
    color: #fff;
}

.btn.primary:hover {
    background-color: #444;
}

.btn.secondary {
    background-color: #f0f0f0;
    color: #333;
}

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

.btn.whatsapp {
    background-color: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.whatsapp:hover {
    background-color: #1da851;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.button-group .btn {
    flex: 1;
    max-width: 150px;
}

.btn.small {
    padding: 8px 16px;
    font-size: 13px;
    width: auto;
}

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

.btn.danger:hover {
    background-color: #c82333;
}

/* Messages */
.error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 10px;
}

.success {
    color: #28a745;
    font-size: 13px;
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Divider */
hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

.small-text {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

/* Admin Specific */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Ensures vertical centering */
    margin-bottom: 30px;
    padding: 5px 0;
}

.header button {
    position: relative;
    top: -1px; /* Optical adjustment to match text baseline */
}

.header h2 {
    font-size: 20px; /* Slightly larger */
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px; /* Space between icon and text */
}

.header-icon {
    font-size: 24px;
    line-height: 1;
}

.header-text {
    position: relative;
    top: 1px; /* Optical adjustment */
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: left;
}

/* QR Info */
.qr-info {
    margin-top: 20px;
}

.success-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
}

.success-box p {
    margin-bottom: 15px;
    color: #28a745;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.info-row span {
    font-size: 13px;
    color: #666;
    min-width: 100px;
}

.info-row code {
    background: #fff;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    flex: 1;
    word-break: break-all;
}

.copy-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #f0f0f0;
}

.qr-image {
    margin-top: 15px;
    text-align: center;
}

.qr-image canvas {
    border: 1px solid #eee;
    border-radius: 8px;
}

/* QR List */
.qr-list {
    max-height: 400px;
    overflow-y: auto;
}

.qr-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.qr-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.qr-item-name {
    font-weight: 600;
    font-size: 14px;
}

.qr-item-status {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
}

.qr-item-status.active {
    background: #d4edda;
    color: #155724;
}

.qr-item-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.qr-item-status.pending {
    background: #fff3cd;
    color: #856404;
}

.qr-item-details {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.qr-item-details p {
    margin-bottom: 5px;
}

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

.qr-item-actions button {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.qr-item-actions button:hover {
    background: #f0f0f0;
}

.qr-item-actions button.delete {
    color: #dc3545;
    border-color: #dc3545;
}

.qr-item-actions button.delete:hover {
    background: #dc3545;
    color: #fff;
}

.loading {
    text-align: center;
    color: #999;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Watermark Background for Main App (Matches Admin) */
body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('assets/pixelframe_logo.webp');
    background-size: 250px;
    background-repeat: space;
    transform: rotate(-45deg);
    opacity: 0.05; 
    z-index: -1;
    pointer-events: none;
    /* gpu acceleration hint */
    will-change: transform; 
}

body.dark-mode::before {
    opacity: 0.1;
    filter: invert(1) brightness(0.7);
}

/* Container Glass Effect - OPTIMIZED */
/* Removed backdrop-filter: blur() as it causes significant lag on mobile/low-end devices */
.screen, .modal-content {
    background: rgba(255, 255, 255, 0.98); /* Increased opacity to maintain readability without blur */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Dark Mode Input Fixes */
body.dark-mode input, 
body.dark-mode textarea {
    background: #1c1c1e; 
    border-color: #2c2c2e; 
    color: #ffffff !important; /* Force white text */
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #888;
}

body.dark-mode .screen, 
body.dark-mode .modal-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Chip Colors in Dark Mode */
body.dark-mode .chip {
    background: #2c2c2e;
    color: #fff;
    border-color: #3a3a3c;
}

body.dark-mode .chip:hover {
    background: #3a3a3c;
}

/* Timer Panel Dark Mode */
body.dark-mode .timer-control-panel {
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
    border-color: #3a3a3c;
}

body.dark-mode .timer-display {
    color: #fff;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

.toggle-icon {
    font-size: 20px;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #000;
    color: #eee;
}

body.dark-mode .screen {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

body.dark-mode .logo-text {
    color: #eee;
}

body.dark-mode h2 {
    color: #fff;
}

body.dark-mode p {
    color: #aaa;
}

body.dark-mode input[type="text"],
body.dark-mode input[type="tel"],
body.dark-mode input[type="password"] {
    background: #111;
    border-color: #333;
    color: #eee;
}

body.dark-mode input::placeholder {
    color: #666;
}

body.dark-mode .btn.secondary {
    background-color: #2a2a2a;
    color: #eee;
}

body.dark-mode .btn.secondary:hover {
    background-color: #3a3a3a;
}

body.dark-mode .dark-mode-toggle {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

body.dark-mode .card {
    background: #1a1a1a;
}

body.dark-mode .qr-item {
    border-color: #333;
    background: #111;
}

body.dark-mode .qr-item-actions button {
    background: #1a1a1a;
    border-color: #333;
    color: #eee;
}

body.dark-mode .qr-item-actions button:hover {
    background: #2a2a2a;
}

body.dark-mode .info-row code {
    background: #111;
    border-color: #333;
    color: #eee;
}

body.dark-mode .success-box {
    background: #1a2a1a;
    border-color: #2a3a2a;
}

body.dark-mode hr {
    border-top-color: #333;
}

body.dark-mode .form-group label {
    color: #aaa;
}

body.dark-mode .plate-badge {
    background: #fff;
}

body.dark-mode .header h2 {
    color: #fff;
}

body.dark-mode .copy-btn {
    border-color: #444;
    color: #eee;
}

body.dark-mode .copy-btn:hover {
    background: #2a2a2a;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 16px; /* Dofter corners */
    position: relative;
    z-index: 2001;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.close-modal {
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

/* --- Premium iOS Toggles --- */
.label-with-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* The Switch Container */
.ios-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

/* Hide default checkbox */
.ios-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The Slider */
.ios-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e9e9ea; /* Apple inactive gray */
    transition: .3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 24px;
}

.ios-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ios-toggle input:checked + .ios-slider {
    background-color: #34c759; /* Apple green */
}

.ios-toggle input:checked + .ios-slider:before {
    transform: translateX(18px);
}

/* Privacy Icon next to toggle */
.privacy-icon {
    font-size: 14px;
    margin-right: 8px;
    color: #666;
    vertical-align: middle;
}

/* --- Premium Inputs --- */
input[type="text"],
input[type="tel"],
input[type="password"],
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px; /* Modern rounded corners */
    font-size: 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    background: #f9f9f9;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #007aff; /* Apple Blue */
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

textarea#ownerNoteInput {
    min-height: 80px;
    resize: none;
}

/* --- Quick Reply Chips --- */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: -8px;
    margin-bottom: 20px;
}

.chip {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.chip:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chip:active {
    transform: translateY(0);
}

/* --- Password Validation Requirements --- */
.password-requirements {
    list-style: none;
    padding: 0;
    margin: 10px 0 20px 0;
    text-align: left;
}

.req-item {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.req-item::before {
    content: "⚪"; /* Default circle */
    font-size: 10px;
}

.req-item.valid {
    color: #34c759; /* Green */
}

.req-item.valid::before {
    content: "🟢";
}

.req-item.invalid {
    color: #ff3b30; /* Red */
}

.req-item.invalid::before {
    content: "🔴";
}

/* --- Parking Timer Update --- */
.timer-control-panel {
    background: linear-gradient(135deg, #f6f8f9 0%, #e5ebee 100%);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.timer-display {
    font-family: 'Courier New', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    letter-spacing: -1px;
}

/* Dark Mode Overrides */
body.dark-mode .ios-slider { background-color: #3a3a3a; }
body.dark-mode .ios-slider:before { background-color: #888; }
body.dark-mode .ios-toggle input:checked + .ios-slider:before { background-color: #fff; }
body.dark-mode input, body.dark-mode textarea { background: #1c1c1e; border-color: #2c2c2e; }
body.dark-mode input:focus, body.dark-mode textarea:focus { background: #2c2c2e; border-color: #0a84ff; }
body.dark-mode .chip { background: #1c1c1e; border-color: #2c2c2e; color: #eee; }
body.dark-mode .chip:hover { background: #2c2c2e; }

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.modal-body {
    padding: 20px 25px;
    overflow-y: auto;
    flex: 1;
}

/* Warning Box */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ff9800;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.warning-box p {
    color: #856404;
    margin: 0;
    font-size: 14px;
}

body.dark-mode .warning-box {
    background: #3d2e00;
    border-color: #ffc107;
}

body.dark-mode .warning-box p {
    color: #ffc107;
}

.agreement-text {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
}

.agreement-text h3 {
    font-size: 14px;
    color: #222;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: left;
}

.agreement-text h3:first-child {
    margin-top: 0;
}

.agreement-text p {
    margin-bottom: 10px;
    text-align: left;
}

.agreement-text ul {
    margin: 10px 0;
    padding-left: 20px;
}

.agreement-text ul li {
    margin-bottom: 6px;
    text-align: left;
}

.agreement-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.agreement-footer p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    text-align: center;
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

.agreement-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.modal-footer .btn {
    max-width: 280px;
    margin: 0 auto;
}

.modal-footer .btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Dark Mode Modal */
body.dark-mode .modal-content {
    background: #1a1a1a;
}

body.dark-mode .modal-header {
    border-bottom-color: #333;
}

body.dark-mode .modal-header h2 {
    color: #fff;
}

body.dark-mode .agreement-text {
    color: #ccc;
}

body.dark-mode .agreement-text h3 {
    color: #fff;
}

body.dark-mode .agreement-footer {
    border-top-color: #333;
}

body.dark-mode .modal-footer {
    border-top-color: #333;
}

body.dark-mode .agreement-checkbox {
    color: #eee;
}

/* Responsive */
/* Responsive */
@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
    }

    .left-panel {
        width: 100%;
        min-width: auto;
        padding: 30px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .right-panel {
        display: none; /* Hide decorative panel on mobile to focus on function */
    }

    /* Keep Dark Mode consistent in mobile */
    body.dark-mode .left-panel {
        border-bottom-color: rgba(255,255,255,0.1);
    }
}

@media (max-width: 480px) {
    .logo-section {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 15px;
        padding: 10px;
        align-items: center;
        width: 100%;
    }
    
    .container {
        padding: 10px;
        padding-top: 10px;
    }
    
    .screen {
        padding: 20px;
    }
    
    .dark-mode-toggle {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 15px;
    }
}
