/* --- General Styles & Variables --- */
:root {
    --dark-blue: #0f172a; /* The main background color */
    --light-text: #f8fafc; /* For headlines and body text */
    --glow-color: rgba(2, 132, 199, 0.6); /* The vibrant blue for the glow */
}

/* --- Update 1: The Upload Button (Now Blue) --- */
#uploadBtn { 
    background: var(--brand-cyan); 
    color: white; 
    border: none; 
    padding: 12px 25px; 
    border-radius: 10px; 
    font-weight: 700;
    font-size: 0.95rem; 
    cursor: pointer;
    text-align: center; 
    width: auto;
    display: inline-block; 
    min-width: 160px;      
    font-size: 1.05rem;
    transition: all 0.2s, background 0.2s;
    margin: 0;
    /* Optional: Adds a subtle glow to match your hero image */
    box-shadow: 0 0 15px rgba(0, 163, 238, 0.3);
    
 
}

#uploadBtn:hover { 
    background: var(--brand-cyan-hover); 
    transform: translateY(-2px);
    background-color: var(--brand-cyan-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 238, 0.3);    
}

#uploadBtn:disabled { 
    background: #1f3237; 
    color: #4b5563; 
    opacity: 0.8; 
    box-shadow: none; 
}

#clearBtn {
    /* Use the light blue brand color for the outline style */
    background-color: transparent;
    color: var(--brand-cyan); 
    border: 1px solid var(--brand-cyan);
    
    padding: 10px 25px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    
    /* FIX: Prevents the button from extending full-width */
    width: auto; 
    display: inline-block; 
    min-width: 160px; 
    
    transition: all 0.2s ease;
}

#clearBtn:hover {
    /* Subtle light blue glow effect on hover */
    background-color: rgba(66, 179, 231, 0.1); 
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(0, 163, 238, 0.2);
}

#clearBtn:active {
    transform: translateY(0);
}

/* --- Update 2: The Progress Bar (Now Blue) --- */
/* The Track (Dark Grey Background) */
.progress-bg {
    background: #0d1117;       /* Very dark grey */
    border: 1px solid #30363d; /* Subtle border */
    height: 10px;              /* Slightly thicker for visibility */
    border-radius: 5px;
    margin-top: 8px;
    overflow: hidden;
}

/* The Fill (Your Light Blue Brand Color) */
.progress-bar {
    background-color: #4bbdff !important; /* Forces Light Blue */
    height: 100%;
    width: 0%;                 /* Starts at 0 */
    transition: width 0.2s linear;
    box-shadow: 0 0 8px rgba(0, 163, 238, 0.5); /* Glowing tip */
}

/* The Percentage Text */
.status-txt {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #8b949e;
    margin-bottom: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-blue);
    color: var(--light-text);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
}

/* --- Header and Logo --- */
header {
    padding: 2rem 5%;
}

.logo {
    display: flex; /* Aligns items side-by-side */
    align-items: center; /* Vertically centers the text with the image */
    gap: 0.5rem; /* Adds a nice space between the image and the text */
}

.logo img {
    height: 120px; /* You can adjust this value to make the logo bigger or smaller */
    width: auto;  /* This makes sure the image doesn't get stretched */
}

.logo-title {
    font-size: 2rem;
    font-weight: 700;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    padding: 2rem 5%;
    gap: 2rem;
}

.hero-text {
    flex: 1; /* Takes up half the space */
}

.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-image-container {
    flex: 1; /* Takes up the other half */
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    /* This box-shadow creates the blue glow effect */
    box-shadow: 0 0 100px 30px var(--glow-color);
    border-radius: 24px; /* Matches the image's border-radius */
}

.image-wrapper img {
    display: block;
    max-width: 450px;
    width: 100%;
    border-radius: 24px;
}

/* --- 1. Center the Main Container and Text --- */
.vault-container {
    width: 90%;
    max-width: 650px;
    background: var(--card-bg); /* Dark background */
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin: 80px auto 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    
    /* Flexbox Centering Magic */
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

.vault-header {
    margin-bottom: 30px;
    width: 100%;
}


/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
	header {
        display: flex;
        justify-content: center;
    }

	.logo {
        flex-direction: column;
    }

    .hero {
        flex-direction: column; /* Stack vertically on small screens */
        text-align: center;
    }

    .hero-text {
        margin-bottom: 3rem;
    }

    .hero-text h1 {
        font-size: 3rem; /* Smaller text for mobile */
    }
}

/* --- 1. The Wrapper: Stacks buttons and adds that top padding --- */
.vault-controls {
    display: flex;
    flex-direction: column; /* Forces vertical stacking */
    align-items: center;    /* Centers them perfectly */
    gap: 15px;              /* Space between buttons */
    margin-top: 35px;       /* Adds the "bring it down" padding you wanted */
    width: 100%;
}

/* --- 2. The Shared Blue Button Style --- */
.custom-btn-blue, #uploadBtn, #clearBtn {
    background-color: var(--brand-cyan) !important;
    color: white !important;
    border: none;
    padding: 14px 0; /* Vertical padding only, width handles horizontal */
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    
    /* ENFORCE CONSISTENCY */
    width: 100%;
    max-width: 280px; /* All buttons will be exactly this wide */
    display: block;   /* Ensures they behave nicely with margins */
    
    box-shadow: 0 4px 15px rgba(0, 163, 238, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 0 auto; /* Safety centering */
}

/* Hover Effects */
.custom-btn-blue:hover, #uploadBtn:hover, #clearBtn:hover {
    background-color: var(--brand-cyan-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 238, 0.3);
}

/* --- 3. Center and Style the Queue --- */
#file-queue { 
    margin-top: 30px; 
    width: 100%; /* Take full width of container */
    max-width: 450px; /* But keep the cards nice and compact */
}

.file-row { 
    background: #0d1117; 
    padding: 15px; 
    border-radius: 10px; 
    margin-bottom: 12px; 
    border: 1px solid var(--border-color); 
    text-align: left; /* Keep file names left-aligned for readability */
}

/* Ensure the text inside the queue looks good */
.status-txt {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #e6edf3;
    margin-bottom: 8px;
}

#successMessage {
    /* Make it Solid Blue so it's always visible */
    background-color: rgba(0, 163, 238, 0.15); 
    color: var(--brand-cyan);
    border: 1px solid var(--brand-cyan);
    
    /* Box Styling */
    padding: 15px;
    width: 100%;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    margin-top: 15px;
    
    /* Glow Effect */
    box-shadow: 0 0 15px rgba(0, 163, 238, 0.2);
    
    /* Animation */
    animation: fadeIn 0.5s ease;
}