/* Ensure full-page background without scrolling */
html, body {
    font-family: 'Space Grotesk', sans-serif;
    background: url("/static/images/stock_image1.jpg") no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents scrolling */
    display: flex;
    flex-direction: column;
}

.logo-container {
    position: absolute;
    top: 10px;
    left: 20px;
}

.logo {
    height: 50px;  /* Adjust as needed */
}

/* Navbar Styling */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1); /* Slight transparency */
    backdrop-filter: blur(5px); /* Smooth blur effect */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Full-Page Spinner Overlay */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    display: none; /* Initially Hidden */
    align-items: center;
    justify-content: center;
    z-index: 1050;
    
}

/* Toggle Switch Wrapper */
.toggle-container {
    margin: 20px 0;
    margin-top : 30px;
    font-family: 'Space Grotesk', sans-serif;
}

.toggle-wrapper {
    width: 500px;
    height: 40px;
    background-color: rgba(165, 163, 156, 0.527);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.toggle-button {
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: #4caf50;
    border-radius: 20px;
    transition: transform 0.3s ease;
    pointer-events: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bolder;
}

.toggle-options {
    position: relative;
    display: flex;
    height: 100%;
    z-index: 1;
}

.toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    user-select: none;
    transition: color 0.3s ease;
    font-weight: bold;
}

#toggle-input {
    display: none;
}

#toggle-input:checked + .toggle-wrapper .toggle-button {
    transform: translateX(100%);
}

#toggle-input:checked + .toggle-wrapper .toggle-option:first-child {
    color: #616161;

}

#toggle-input:checked + .toggle-wrapper .toggle-option:last-child {
    color: white;
}

#toggle-input:not(:checked) + .toggle-wrapper .toggle-option:first-child {
    color:white
}

#toggle-input:not(:checked) + .toggle-wrapper .toggle-option:last-child {
    color: #616161;
}

/* Spinner Container */
.spinner-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white box */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding-top : 30px;
}

/* Full Page Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner-container {
    text-align: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

#loading-text {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #006838;
}
/* Logo Styling */
.navbar .logo img {
    height: 30px; /* Adjust size */
    width: auto;
}



/* Left-Side Header Styling */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #006838; /* Seplat Green */
}

.page-subtitle {
    font-size: 1.2rem;
    color: #4CAF50; /* Seplat Light Green */
    opacity: 0.8;
}

/* Upload Container */
.upload-container {
    background: #D8EFD3; /* Mint Cream */
    border-radius: 15px;
    text-align: center;
    width: 600px;
    transition: transform 0.3s ease-in-out, background 0.3s;
}

/* Styling for bot messages */


/* Hover Animation */
.upload-container:hover {
    transform: scale(1.05);
    background: #95D2B3; /* Sea Foam */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Upload Heading */
.upload-header {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #006838; /* Seplat Green */
    margin-bottom : 25px;
}

/* Choose File Label */
.choose-file-label {
    display: block;
    padding: 12px;
    background: #55AD9B; /* Ocean Green */
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.3s, transform 0.2s;
}

/* Hover Effect for File Label */
.choose-file-label:hover {
    background: #4CAF50; /* Seplat Light Green */
    transform: translateY(-2px);
}

/* File Name Display */
.file-name {
    font-size: 16px;
    color: #333; /* Dark text for contrast */
    margin-bottom: 20px;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.3s ease-in-out;
    display: none; /* Hidden initially */
}

/* Hide Default File Input */
.choose-file {
    display: none;
}

/* Upload Button */
.upload-button {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: #006838; /* Seplat Green */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
    opacity: 0.5;
    pointer-events: none;
}

/* Activated Upload Button */
.upload-button.active {
    opacity: 1;
    pointer-events: auto;
}

/* Button Hover Effect */
.upload-button:hover {
    background: #4CAF50; /* Seplat Light Green */
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        text-align: center;
    }

    .page-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .upload-container {
        width: 90%;
        padding: 30px;
    }
}
