/**
 * DeMV Platform - Main CSS
 * Core styling for the entire platform
 */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0f;
    color: #e0e0e0;
    line-height: 1.6;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

a {
    color: #00ccff;
    text-decoration: none;
}

a:hover {
    color: #6c63ff;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main content */
.main-content {
    padding: 80px 0 40px;
    min-height: calc(100vh - 150px);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Dashboard */
.dashboard {
    background-color: rgba(20, 20, 30, 0.7);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    background: linear-gradient(90deg, #6c63ff, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
}

/* Vehicle grid */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Vehicle card */
.vehicle-card {
    background-color: rgba(30, 30, 40, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.vehicle-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.vehicle-card .vehicle-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.vehicle-info {
    padding: 20px;
}

.vehicle-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.vehicle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.vehicle-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vehicle-meta i {
    color: #00ccff;
}

.vehicle-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(90deg, #6c63ff, #00ccff);
    color: white;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #00ccff, #6c63ff);
    
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.5);
}

.btn-secondary {
    background: rgba(108, 99, 255, 0.1);
    color: #00ccff;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(108, 99, 255, 0.2);
    
}

.vehicle-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Status badges */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
    background-color: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(5px);
}

.status-active {
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.status-pending {
    color: #ffcc00;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.status-inactive {
    color: #ff3366;
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.blockchain-verified {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
    background-color: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(5px);
    color: #00ccff;
    border: 1px solid rgba(0, 204, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blockchain-verified::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Vehicle count */
.vehicle-count-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vehicle-count {
    font-size: 1.1rem;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vehicle-count i {
    color: #00ccff;
}

/* Login prompt */
.login-prompt {
    background-color: rgba(20, 20, 30, 0.7);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(108, 99, 255, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.login-prompt h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #6c63ff, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-prompt p {
    margin-bottom: 30px;
    color: #b0b0b0;
}

.login-prompt .btn {
    margin-bottom: 20px;
}

.register-prompt {
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 1;

}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background-color: rgba(30, 30, 40, 0.95);
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(108, 99, 255, 0.2);
    position: relative;
}

.cyberpunk-modal {
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95), rgba(20, 20, 30, 0.95));
    border: 1px solid rgba(108, 99, 255, 0.3);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.2);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
}

.gradient-text {
    background: linear-gradient(90deg, #6c63ff, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.gradient-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    color: transparent;
    text-shadow: none;
}

.close-modal {
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 1.5rem;
    cursor: pointer;
    
}

.close-modal:hover {
    color: #ff3366;
}

.modal-body {
    padding: 20px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

}

.preloader.fade-out {
    opacity: 0;
}

.preloader-content {
    text-align: center;
}

.logo {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(90deg, #6c63ff, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

.logo-platform {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 5px;
    color: #b0b0b0;
    margin-top: -10px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(108, 99, 255, 0.3);
    border-top: 3px solid #00ccff;
    border-radius: 50%;

    margin: 0 auto 20px;
}



.preloader p {
    color: #b0b0b0;
    font-size: 1rem;
}

/* Footer */
.main-footer {
    background-color: rgba(20, 20, 30, 0.8);
    padding: 40px 0;
    border-top: 1px solid rgba(108, 99, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #00ccff;
}

.footer-section p {
    color: #b0b0b0;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    color: #00ccff;
    
}

.social-link:hover {
    background: linear-gradient(90deg, #6c63ff, #00ccff);
    color: white;
    
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .vehicle-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-section {
        flex: 100%;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* Hidden class */
.hidden {
    display: none !important;
}
