/* Index Interface Styles (Splash Screen) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gradient-body);
    overflow: hidden;
    height: 100vh;
    position: relative;
    color: var(--text-primary);
}

/* --- Brand Watermark --- */
.brand-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vh; /* Responsive based on viewport height */
    height: 60vh;
    z-index: 0; 
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* UPDATE: Increased opacity to make it darker/more visible */
    opacity: 0.15; 
    filter: grayscale(100%); 
    transition: transform 0.1s ease-out;
}
/* ------------------------------------ */

/* Subtle animated background */
.background-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(22, 163, 74, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(234, 179, 8, 0.05) 0%, transparent 50%);
    animation: subtle-shift 20s ease-in-out infinite;
    z-index: 1; 
}

@keyframes subtle-shift {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Professional grid pattern */
.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 2; 
}

/* Main container */
.loader-container {
    position: relative;
    z-index: 10; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
}

/* Company logo placeholder - The 'A' Icon */
.logo-container {
    width: 100px; /* Slightly larger since it's the main focus now */
    height: 100px;
    margin-bottom: 30px;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(22, 163, 74, 0.3);
    animation: gentle-pulse 3s ease-in-out infinite;
}

.logo-container::before {
    content: 'A';
    font-family: 'Inter', sans-serif;
    font-size: 48px; /* Larger font */
    font-weight: 700;
    color: var(--text-inverse);
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 15px 40px rgba(22, 163, 74, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 20px 50px rgba(22, 163, 74, 0.4); }
}

/* Professional typography */
.company-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Larger title */
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.system-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0; /* Removed bottom margin as loader is gone */
    letter-spacing: 0.5px;
}

/* Decorative elements */
.decoration-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float-dot 6s ease-in-out infinite;
}

.dot:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.dot:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.dot:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 2s; }
.dot:nth-child(4) { bottom: 15%; right: 10%; animation-delay: 3s; }
.dot:nth-child(5) { top: 50%; left: 5%; animation-delay: 4s; }
.dot:nth-child(6) { top: 70%; right: 8%; animation-delay: 5s; }

@keyframes float-dot {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.4; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.8; }
}

/* Footer text */
.footer-text {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    z-index: 10;
}

/* Responsive design */
@media (max-width: 768px) {
    .brand-watermark {
        width: 50vh;
        height: 50vh;
    }
    
    .logo-container {
        width: 80px;
        height: 80px;
    }
    
    .logo-container::before {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .brand-watermark {
        width: 80vw;
        height: auto;
    }

    .loader-container {
        padding: 15px;
    }
    
    .logo-container {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .logo-container::before {
        font-size: 32px;
    }
}

/* Professional hover effects */
.loader-container:hover .logo-container {
    transform: scale(1.05);
}