/* Vehicle Info Page Styles - Blue Theme with Green Terminal */

:root {
    --blue-primary: #1a73e8;
    --blue-secondary: #0d47a1;
    --blue-light: #42a5f5;
    --blue-dark: #0a1628;
    --blue-bg: #0f1a2e;
    --blue-card: #152238;
    --blue-border: #1a3a5c;
    --blue-glow: rgba(26, 115, 232, 0.3);
    --blue-text: #64b5f6;
    --accent-color: #1a73e8;
    --kali-green: #00ff41;
}

/* Section */
.vehicle-section {
    padding: 80px 0 60px;
    min-height: 100vh;
    background: var(--blue-dark, #0a1628);
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.vehicle-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(26, 115, 232, 0.05) 0%, transparent 70%);
    animation: rotateBg 30s linear infinite;
    pointer-events: none;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(26, 115, 232, 0.1); }
    50% { box-shadow: 0 0 40px rgba(26, 115, 232, 0.2); }
}

@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes terminalFadeIn {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 0.9; transform: translateX(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Animation Classes */
.animate-slide-down {
    animation: slideDown 0.8s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-card {
    animation: cardSlideIn 0.5s ease forwards;
    opacity: 0;
}

/* ========== NAVBAR STYLES ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: var(--blue-dark, #0a1628);
    border-bottom: 1px solid var(--blue-border, #1a3a5c);
    padding: 8px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(26, 115, 232, 0.2));
}

.logo-img:hover {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 0 20px rgba(26, 115, 232, 0.4));
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(26, 115, 232, 0.1);
}

.logo-text:hover {
    color: #64b5f6;
    text-shadow: 0 0 30px rgba(26, 115, 232, 0.2);
}

.text-accent {
    color: var(--blue-primary, #1a73e8);
    font-weight: 800;
    text-shadow: 0 0 20px rgba(26, 115, 232, 0.2);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    color: #8899bb;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--blue-primary, #1a73e8);
    transition: all 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 60%;
}

.main-nav ul li a:hover {
    color: #ffffff;
    background: rgba(26, 115, 232, 0.08);
}

.main-nav ul li a.active {
    color: var(--blue-primary, #1a73e8);
    background: rgba(26, 115, 232, 0.12);
}

.main-nav ul li a.active::after {
    width: 60%;
}

.nav-search {
    display: flex;
    align-items: center;
    background: var(--blue-bg, #0f1a2e);
    border: 1px solid var(--blue-border, #1a3a5c);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-search:focus-within {
    border-color: var(--blue-primary, #1a73e8);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

.nav-search input {
    background: transparent;
    border: none;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    width: 180px;
    outline: none;
}

.nav-search input::placeholder {
    color: #556688;
    font-size: 0.9rem;
}

.nav-search button {
    background: transparent;
    border: none;
    color: #556688;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-search button:hover {
    color: var(--blue-primary, #1a73e8);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 10000;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== TERMINAL COMMAND BAR ========== */
.terminal-command-bar {
    background: #0a0a0a;
    border: 1px solid #1a3a5c;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.terminal-command-bar:hover {
    border-color: #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.05);
}

.terminal-prompt {
    color: #00ff41;
    font-weight: 600;
    font-size: 0.95rem;
}

.terminal-prompt i {
    margin-right: 6px;
}

.terminal-prompt .path {
    color: #64b5f6;
}

.terminal-command-text {
    color: #ffffff;
    font-size: 0.95rem;
}

.terminal-command-text .cmd {
    color: #00ff41;
}

.terminal-cursor {
    color: #00ff41;
    font-size: 0.95rem;
    animation: blink 1s step-end infinite;
}

/* ========== VEHICLE HEADER ========== */
.vehicle-header {
    text-align: center;
    margin-bottom: 20px;
}

.vehicle-header h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.vehicle-header h1 i {
    color: var(--blue-primary, #1a73e8);
    margin-right: 12px;
    animation: pulse 2s ease-in-out infinite;
}

.vehicle-header .subtitle {
    color: #667799;
    font-size: 1.1rem;
}

/* ========== SEARCH CARD ========== */
.search-card {
    background: var(--blue-card, #152238);
    border: 1px solid var(--blue-border, #1a3a5c);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(26, 115, 232, 0.03) 100%);
    pointer-events: none;
}

.search-card:hover {
    border-color: var(--blue-primary, #1a73e8);
    box-shadow: 0 0 30px rgba(26, 115, 232, 0.05);
}

.search-card label {
    display: block;
    color: #8899bb;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.search-card label i {
    color: var(--blue-primary, #1a73e8);
    margin-right: 8px;
}

.search-card .search-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-card .search-row input {
    flex: 1;
    min-width: 200px;
    padding: 16px 20px;
    background: var(--blue-bg, #0f1a2e);
    border: 2px solid var(--blue-border, #1a3a5c);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    font-weight: 400;
    text-transform: uppercase;
}

.search-card .search-row input:focus {
    outline: none;
    border-color: var(--blue-primary, #1a73e8);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.search-card .search-row input::placeholder {
    color: #445566;
    text-transform: none;
}

.search-card .search-row input:valid {
    border-color: var(--blue-primary, #1a73e8);
}

.search-card .search-row .btn-scan {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--blue-primary, #1a73e8) 0%, var(--blue-secondary, #0d47a1) 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.search-card .search-row .btn-scan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.5s ease;
}

.search-card .search-row .btn-scan:hover::before {
    left: 200%;
}

.search-card .search-row .btn-scan:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 40px rgba(26, 115, 232, 0.3);
}

.search-card .search-row .btn-scan:active {
    transform: scale(0.98);
}

.search-card .search-row .btn-scan:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========== TERMINAL OUTPUT ========== */
.terminal {
    background: #0a0a0a;
    border: 1px solid var(--blue-border, #1a3a5c);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.terminal:hover {
    border-color: #00ff41;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.03);
}

.terminal-header {
    background: #0a0a0a;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--blue-border, #1a3a5c);
}

.terminal-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.terminal-dot:nth-child(1) { background: #ff5f56; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #27c93f; }

.terminal-dot:hover {
    transform: scale(1.3);
}

.terminal-command {
    color: #556688;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    margin-left: 12px;
}

.terminal-command i {
    color: #00ff41;
    margin-right: 8px;
}

.terminal-body {
    padding: 20px 24px;
    min-height: 140px;
    font-family: 'Courier New', monospace;
    color: #00ff41;
    font-size: 0.95rem;
    line-height: 2;
    max-height: 280px;
    overflow-y: auto;
    background: #0a0a0a;
}

.terminal-body .line {
    opacity: 0.9;
    animation: terminalFadeIn 0.4s ease forwards;
}

.terminal-body .line.error {
    color: #ff4757;
}

.terminal-body .line.success {
    color: #00ff41;
}

.terminal-body .line.info {
    color: #64b5f6;
}

.terminal-body .line.warning {
    color: #ffbd2e;
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--blue-border, #1a3a5c);
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #00ff41;
}

/* ========== RESULTS ========== */
.results-container {
    display: none;
    background: var(--blue-card, #152238);
    border: 1px solid var(--blue-border, #1a3a5c);
    border-radius: 16px;
    padding: 30px;
    margin-top: 20px;
    transition: all 0.5s ease;
}

.results-container.show {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
}

.results-container:hover {
    border-color: var(--blue-primary, #1a73e8);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--blue-border, #1a3a5c);
    flex-wrap: wrap;
    gap: 10px;
}

.results-header h3 {
    color: #ffffff;
    font-size: 1.3rem;
}

.results-header h3 i {
    color: var(--blue-primary, #1a73e8);
    margin-right: 10px;
}

.results-header .count {
    background: var(--blue-bg, #0f1a2e);
    padding: 6px 18px;
    border-radius: 20px;
    color: #8899bb;
    font-size: 0.9rem;
    border: 1px solid var(--blue-border, #1a3a5c);
}

.results-header .count i {
    color: var(--blue-primary, #1a73e8);
    margin-right: 6px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* ========== VEHICLE CARD ========== */
.vehicle-card {
    background: var(--blue-bg, #0f1a2e);
    border: 1px solid var(--blue-border, #1a3a5c);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.5s ease forwards;
}

.vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--blue-primary, #1a73e8), transparent);
    opacity: 0;
    transition: all 0.4s ease;
}

.vehicle-card:hover::before {
    opacity: 1;
}

.vehicle-card:hover {
    border-color: var(--blue-primary, #1a73e8);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(26, 115, 232, 0.08);
}

.vehicle-card .card-title {
    color: var(--blue-primary, #1a73e8);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.vehicle-card .card-title i {
    margin-right: 8px;
}

.vehicle-card .badge {
    font-size: 0.7rem;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(0, 255, 65, 0.15);
    color: #00ff41;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.badge-expired {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.badge-active {
    background: rgba(26, 115, 232, 0.2);
    color: var(--blue-primary, #1a73e8);
    border: 1px solid rgba(26, 115, 232, 0.3);
}

.badge-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.vehicle-card .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.vehicle-card .detail-row:hover {
    padding-left: 5px;
}

.vehicle-card .detail-row:last-child {
    border-bottom: none;
}

.vehicle-card .detail-label {
    color: #556688;
    font-size: 0.85rem;
}

.vehicle-card .detail-label i {
    margin-right: 6px;
    color: var(--blue-primary, #1a73e8);
    font-size: 0.7rem;
}

.vehicle-card .detail-value {
    color: #c8d6e5;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Error */
.error-msg {
    display: none;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid #ff4757;
    border-radius: 12px;
    padding: 16px 24px;
    color: #ff4757;
    margin-top: 15px;
    align-items: center;
    gap: 14px;
    animation: fadeIn 0.5s ease forwards;
}

.error-msg.show {
    display: flex;
}

.error-msg i {
    font-size: 1.4rem;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--blue-dark, #0a1628);
    border-top: 1px solid var(--blue-border, #1a3a5c);
    padding: 40px 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-col a {
    display: block;
    color: #667799;
    text-decoration: none;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: var(--blue-primary, #1a73e8);
    padding-left: 5px;
}

.footer-col p {
    color: #667799;
    line-height: 1.6;
}

.footer-contact li {
    list-style: none;
    color: #667799;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact li i {
    color: var(--blue-primary, #1a73e8);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--blue-border, #1a3a5c);
    padding-top: 20px;
    text-align: center;
    color: #445566;
}

.footer-bottom strong {
    color: #ffffff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .nav-search input {
        width: 140px;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .vehicle-section {
        padding: 60px 0 40px;
        margin-top: 60px;
    }
    
    .vehicle-header h1 {
        font-size: 2rem;
    }
    
    .search-card {
        padding: 25px;
    }
    
    .search-card .search-row {
        flex-direction: column;
    }
    
    .search-card .search-row input {
        width: 100%;
        font-size: 1rem;
        padding: 14px 16px;
    }
    
    .search-card .search-row .btn-scan {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .terminal-body {
        font-size: 0.85rem;
        padding: 16px;
        max-height: 200px;
    }
    
    .vehicle-card .detail-row {
        flex-direction: column;
        gap: 2px;
    }

    .hamburger {
        display: flex;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--blue-dark, #0a1628);
        z-index: 9999;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 20px;
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex !important;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
    }

    .main-nav ul li a {
        display: block;
        padding: 16px 20px;
        font-size: 1.2rem;
        color: #ffffff;
        transition: all 0.3s ease;
        border-radius: 10px;
    }

    .main-nav ul li a::after {
        display: none;
    }

    .main-nav ul li a:hover {
        background: var(--blue-primary, #1a73e8);
        color: #ffffff;
    }

    .main-nav ul li a.active {
        background: rgba(26, 115, 232, 0.2);
        color: var(--blue-primary, #1a73e8);
    }

    .nav-search {
        width: 85%;
        max-width: 320px;
        margin: 10px 0;
    }

    .nav-search input {
        width: 100%;
        font-size: 1rem;
        padding: 12px 16px;
    }

    .hamburger.active {
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 10000;
    }

    body.nav-open {
        overflow: hidden;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .terminal-command-bar {
        font-size: 0.8rem;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .vehicle-header h1 {
        font-size: 1.6rem;
    }
    
    .search-card {
        padding: 18px;
    }
    
    .terminal-body {
        font-size: 0.75rem;
        padding: 12px;
        max-height: 160px;
    }
    
    .vehicle-card {
        padding: 15px;
    }

    .logo-img {
        height: 38px !important;
    }

    .logo-text {
        font-size: 1.3rem !important;
    }
}