/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary-color: #dc2626;
    --secondary-color: #1e40af;
    --accent-color: #f8fafc;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333333;
    --glow-color: rgba(220, 38, 38, 0.5);
    --glow-blue: rgba(30, 64, 175, 0.5);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome, Safari, Opera */
}

.hidden {
    display: none !important;
}

/* Door Animation */
#door-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    pointer-events: none;
}

.door {
    position: absolute;
    top: 0;
    width: 50vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.door-left {
    left: 0;
    border-right: 2px solid var(--primary-color);
}

.door-right {
    right: 0;
    border-left: 2px solid var(--primary-color);
}

.door-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-primary);
    opacity: 1;
    transition: opacity 0.8s ease;
}

.door-content .header-car-logo {
    width: 80px;
    height: 50px;
    margin: 0 auto 20px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.door-content h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.door-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* Door opening animation */
.doors-opening .door-left {
    transform: translateX(-100%);
}

.doors-opening .door-right {
    transform: translateX(100%);
}

.doors-opening .door-content {
    opacity: 0;
}

/* Main Container */
#main-container {
    height: 100vh;
    overflow-y: hidden;
    background: 
        radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s ease-out 0.5s;
    display: flex;
    flex-direction: column;
}

#main-container.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Background Grid */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(220, 38, 38, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 38, 38, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    overflow: hidden;
}

/* Floating Particles */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
    background: var(--secondary-color);
}

/* Header */
.header {
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-car-logo {
    width: 40px;
    height: 24px;
    color: var(--primary-color);
}

.header-car-logo svg {
    width: 100%;
    height: 100%;
}

.company-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.subtitle {
    text-align: right;
}

.reporting-text {
    display: block;
    font-size: 1.1rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.date-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Orbitron', monospace;
}

.header-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin-top: 15px;
    animation: pulse 2s ease-in-out infinite;
}

/* Welcome Section */
.welcome-section {
    padding: 20px 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite;
}

.description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    line-height: 1.6;
}

/* Stores Section */
.stores-section {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(4, 320px);
    gap: 50px;
    justify-content: center;
    padding: 20px;
}

/* Store Container - Grid Layout */
.store-container {
    position: relative;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    margin-bottom: 20px;
    z-index: 1;
    transition: z-index 0.3s ease;
}

.store-container.active {
    z-index: 999;
}



.store-image-wrapper {
    position: relative;
    width: 320px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.store-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.store-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
    color: #ffffff;
}

.store-location {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Status Badge - Always Visible */
.store-status-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    z-index: 10;
}

.store-status-badge[data-status="ONLINE"] {
    background: rgba(30, 64, 175, 0.9);
}

.store-status-badge[data-status="OFFLINE"] {
    background: rgba(220, 38, 38, 0.9);
}

/* Hover Effects */
.store-container:hover .store-image-wrapper,
.store-container.active .store-image-wrapper {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.1);
}

.store-container:hover .store-image,
.store-container.active .store-image {
    transform: scale(1.1);
}

.store-container:hover .store-overlay,
.store-container.active .store-overlay {
    transform: translateY(0);
}

/* Dropdown Reports */
.dropdown-reports {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin-top: 15px;
    padding: 0;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-height: 0;
    z-index: 1000;
}

.store-container.active .dropdown-reports {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    max-height: 400px;
}

/* Add invisible buffer zone around dropdown for easier mouse movement */
.store-container.active .dropdown-reports::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: transparent;
    z-index: -1;
}

.dropdown-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    background: rgba(42, 42, 42, 0.3);
}

.dropdown-header[data-status="ONLINE"] {
    color: rgba(30, 64, 175, 1);
}

.dropdown-header[data-status="OFFLINE"] {
    color: rgba(220, 38, 38, 1);
}

.dropdown-header i {
    font-size: 1.2rem;
}

.dropdown-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.dropdown-list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome, Safari, Opera */
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(42, 42, 42, 0.4);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.5s ease;
}

.dropdown-item:hover::before {
    left: 100%;
}

.dropdown-item:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--primary-color);
    transform: translateX(8px);
}

.dropdown-item i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    color: var(--secondary-color);
}

.report-name {
    flex: 1;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.report-link-icon {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--primary-color);
    font-size: 0.9rem !important;
}

.dropdown-item:hover .report-link-icon {
    opacity: 1;
}

/* File System Modal */
.file-system-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.store-name-modal {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
}

.close-modal:hover {
    color: var(--accent-color);
}

.file-browser {
    padding: 20px 30px 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: 'Orbitron', monospace;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb i {
    color: var(--secondary-color);
}

.files-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}



/* File Item */
.file-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.file-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    transition: left 0.6s ease;
}

.file-item:hover::before {
    left: 100%;
}

.file-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.file-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    transition: all 0.3s ease;
}

.file-item:hover .file-icon {
    transform: scale(1.2) rotateY(360deg);
}

.file-name {
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.file-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* File Type Colors */
.file-item[data-type="sales"] .file-icon { color: var(--primary-color); }
.file-item[data-type="inventory"] .file-icon { color: var(--secondary-color); }
.file-item[data-type="service"] .file-icon { color: var(--accent-color); }
.file-item[data-type="financial"] .file-icon { color: #ffd700; }
.file-item[data-type="customer"] .file-icon { color: #ff69b4; }

/* Animations */

@keyframes carMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px var(--glow-color); }
    50% { text-shadow: 0 0 20px var(--glow-color), 0 0 30px var(--glow-blue); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 20px;
    }
}

@media (max-width: 600px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    
    #main-container {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .stores-section {
        flex: none;
        display: block;
        padding: 20px;
        overflow: visible;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .stores-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .welcome-section {
        padding: 20px;
    }
} 