/* AutoLink - Ultra-Premium Automotive Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-dark: #0a0c10;
    --bg-card: rgba(18, 22, 31, 0.85);
    --bg-card-hover: rgba(26, 32, 46, 0.95);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 229, 255, 0.3);
    --accent-cyan: #00e5ff;
    --accent-blue: #2979ff;
    --accent-red: #ff3b30;
    --accent-green: #00e676;
    --accent-gold: #ffb300;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Glassmorphism effects */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
}

.glass-card {
    background: rgba(18, 22, 31, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    transition: all 0.25s ease;
}

.glass-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 229, 255, 0.15);
}

/* Glowing text and buttons */
.text-glow-cyan {
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

.glow-btn {
    position: relative;
    background: linear-gradient(135deg, #00e5ff, #0070f3);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.5);
}

.glow-btn:active {
    transform: translateY(0);
}

.glow-btn-red {
    background: linear-gradient(135deg, #ff3b30, #b71c1c);
    box-shadow: 0 4px 20px rgba(255, 59, 48, 0.4);
}

.glow-btn-red:hover {
    box-shadow: 0 8px 30px rgba(255, 59, 48, 0.6);
}

.glow-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.glow-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Authentic Azerbaijan License Plate */
.az-license-plate {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #111111;
    border: 3px solid #111111;
    border-radius: 8px;
    padding: 2px 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    user-select: none;
}

.az-license-plate .az-flag {
    display: flex;
    flex-direction: column;
    width: 14px;
    height: 22px;
    margin-right: 8px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #ccc;
}

.az-license-plate .az-flag .blue { background: #00b5e2; height: 33.3%; }
.az-license-plate .az-flag .red { background: #ed1c24; height: 33.3%; }
.az-license-plate .az-flag .green { background: #39b54a; height: 33.3%; }

.az-license-plate .az-text {
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    margin-right: 8px;
    color: #111;
}

.az-license-plate .plate-number {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #050505;
}

/* Mobile Screen Container (for responsive public car view) */
.mobile-profile-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #0d1117;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
    .mobile-profile-container {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #151a23;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Form controls */
.input-dark {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
}

.input-dark:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

/* Switch / Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s;
    border-radius: 34px;
}

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

input:checked + .slider {
    background-color: var(--accent-cyan);
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: #0a0c10;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #18202c;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-cyan);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    pointer-events: auto;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 350px;
}

.toast.toast-error {
    border-left-color: var(--accent-red);
}

.toast.toast-success {
    border-left-color: var(--accent-green);
}

@keyframes toastIn {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0c10;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.4);
}
