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

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f7fa; /* Light gray background */
    color: #333; /* Dark text */
    line-height: 1.6;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styling */
.header {
    background-color: #00B189; /* Primary color */
    color: white;
    padding: 20px;
    border-bottom: 4px solid #025a4b; /* Darker shade for effect */
}

/* Flex container for header */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.branding .logo {
    height: 50px;
}

.branding h2 {
    font-size: 1.8rem;
    margin: 0;
}

/* Navbar Styling */
.navbar {
    display: flex;
    align-items: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #e0e0e0;
}

/* Logout Button */
.logout-btn {
    background-color: #00B189;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.logout-btn:hover {
    background-color: #025a4b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logout-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(2, 124, 102, 0.5);
}

/* Main Container */
.container {
    margin: 50px auto;
    max-width: 800px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.container h1 {
    font-size: 2rem;
    color: #00B189;
    text-align: center;
    margin-bottom: 20px;
}

.container p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: center;
    color: #555;
}

/* Secure Text */
.secure-text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    color: #28a745; /* Green color */
    font-size: 1rem;
}

.secure-text img {
    height: 24px;
    margin-right: 10px;
}

/* Upload Section */
.upload-section {
    text-align: center;
    margin-top: 20px;
}

.upload-section input[type="file"] {
    display: none;
}

.upload-section label {
    display: inline-block;
    background-color: #007bff; /* Blue color */
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.upload-section label:hover {
    background-color: #0056b3;
}

.upload-section button {
    background-color: #00B189;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.upload-section button:hover {
    background-color: #025a4b;
}

.file-list {
    margin-top: 20px;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    border-bottom: 1px solid #eaeaea;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item span {
    word-break: break-all;
    font-size: 0.9rem;
    color: #555;
}

.file-item button {
    background-color: #dc3545; /* Red */
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.file-item button:hover {
    background-color: #b21f2d;
}

/* Spinner */
.spinner {
    border: 6px solid #f3f3f3; /* Light gray */
    border-top: 6px solid #00B189; /* Green */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Progress Message */
#progressMessage {
    text-align: center;
    font-size: 1rem;
    margin-top: 15px;
    color: #555;
}

.success {
    color: #28a745;
}

.error {
    color: #dc3545;
}

/* Footer Styling */
.footer {
    background-color: #f1f1f1;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    color: #777;
    margin-top: auto;
    border-top: 4px solid #ddd;
}

/* Responsive Design */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .navbar ul {
        gap: 10px;
    }

    .navbar ul li a {
        font-size: 0.9rem;
    }

    .container {
        margin: 20px;
        padding: 20px;
    }

    .branding .logo {
        height: 40px;
    }

    .file-list {
        max-height: 150px;
    }
}

/* Login Page Specific Styles */
.login-box {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-box h2 {
    font-size: 1.8rem;
    color: #00B189;
    margin-bottom: 20px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form .form-group {
    text-align: left;
}

.login-form label {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #00B189;
    outline: none;
}

.login-btn {
    background-color: #00B189;
    color: white;
    font-size: 1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #025a4b;
}

.or-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    color: #888;
}

.or-divider span {
    background: #f5f7fa;
    padding: 0 10px;
    font-size: 0.9rem;
}

.or-divider:before,
.or-divider:after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.google-login-btn img {
    height: 20px;
    margin-right: 10px;
}

.google-login-btn:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Form Container */
.form-container {
    width: 90%;  /* Use 90% of the container width */
    max-width: 1200px;  /* But don't exceed 1200px */
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    color: #00B189;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

/* Fieldset Styling */
fieldset {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 5px;
    background-color: #fafafa;
}

legend {
    color: #00B189;
    font-weight: bold;
    padding: 0 10px;
    margin-bottom: 10px;
}

/* Form Elements */
form p {
    margin-bottom: 15px;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form select,
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form select:focus,
form textarea:focus {
    border-color: #00B189;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 177, 137, 0.1);
}

/* Help Text */
.helptext {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Error Messages */
.errorlist {
    list-style: none;
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    padding-left: 0;
}

/* Submit Button */
.btn-primary {
    background-color: #00B189;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #025a4b;
}

/* Make selectors more specific */
.form-container form fieldset {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 5px;
    background-color: #fafafa;
}

.form-container form .radio-group {
    margin-bottom: 15px;
}

.form-container form input[type="text"],
.form-container form input[type="email"],
.form-container form input[type="password"],
.form-container form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        margin: 20px;
        padding: 20px;
    }

    fieldset {
        padding: 15px;
    }
}

