:root {
    --primary-color: #3498db;
    --hover-color: #2a9b77;
    --hover-color-logout: #d22c34;
    --background-color: #34495e;
    --background-colored: linear-gradient(to right, #2c3e50, #34495e);
    --text-color: #fdfbfb;
    --footer-height: 30px;
    --input-bg-color: #fdfbfb;
    --input-border-color: #adbcc9;
    --input-border-hover-color: #2a9b77;
    --input-border-focus-color: #2a9b77;
    --button-bg-color: linear-gradient(to right, var(--primary-color), var(--hover-color));
    --button-text-color: #fdfbfb;
    --button-hover-bg-color: var(--hover-color);
    --button-hover-bg-color-logout: var(--hover-color-logout);
    --button-hover-text-color: #fdfbfb;
    --form-width: 90%;
    --form-padding: 25px;
    --form-bg-color: #20262c;
    --form-border-radius: 10px;
    --form-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.4s;
    --form-max-width: 500px;
    --secondary-font: 'Roboto', sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    background: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    overflow-y: auto;
    text-align: center;
}

.cursor-glow {
    pointer-events: none;
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1abc9c;
    box-shadow: 0 0 10px 5px #1abc9c, 0 0 20px 10px #16a085;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s, transform 0.2s;
    opacity: 0;
    z-index: 1000;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Align items vertically */
    padding: 10px 20px;
    background-color: var(--background-colored);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logout-button {
    padding: 5px 10px;
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin-left: auto; /* Pushes the button to the right */
    border: 2px dotted #2881a2; /* Add a white dotted border */
}

.logout-button:hover {
    background-color: var(--button-hover-bg-color-logout);
    color: var(--button-hover-text-color);
}


/* Styling for the upload container */
.upload-container {
    width: 80%; /* Full width to a max */
    height: 70%;
    margin: 40px auto 20px; /* Added space on the top */
    padding: 20px;
    background: #20262c;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    margin-bottom: 90px;
}

/* Hover effect for upload container */
.upload-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Input file and buttons styles */
input[type="file"],
.button {
    width: calc(50% - 10px); /* Full width minus padding */
    padding: 12px 20px;
    margin-top: 15px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    background-color: var(--input-bg-color);
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.5;
    transition: 0.2s;
    cursor: pointer;
}

input[type="file"]:hover,
.button:hover {
    background-color: var(--button-hover-bg-color);
    color: var(--button-hover-text-color);
}

#job-suggestions {
    list-style-type: none; /* Removes the default list style */
    counter-reset: section; /* Creates a new instance of the counter */
    padding-left: 0; /* Removes padding */
    padding-bottom: 20px;
}

#job-suggestions li {
    counter-increment: section; /* Increments the counter */
    margin-bottom: 10px; /* Adds space between the items */
}

#job-suggestions li::before {
    content: counter(section) ". "; /* Adds the counter and a period before the item */
    font-weight: bold; /* Makes the number bold */
    margin-right: 5px; /* Adds space between the number and the text */
}

.header h2 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-family: var(--secondary-font);
}

h1 {
    font-family: 'Pacifico', cursive; /* Choose a decorative font */
    font-size: 2.5rem; /* Increase the font size */
    color: var(--primary-color); /* Use the primary color */
    text-transform: uppercase; /* Convert text to uppercase */
    letter-spacing: 3px; /* Add letter spacing for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Add a subtle text shadow */
    padding-top: 20px;
}

.main-content {
    padding-top: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 200px;
    max-height: none; /* Remove max height if it's set */
    overflow-y: auto;
}

form {
    background: var(--form-bg-color);
    padding: var(--form-padding);
    border-radius: var(--form-border-radius);
    box-shadow: var(--form-box-shadow);
    width: var(--form-width);
    max-width: var(--form-max-width);
    margin: 1.5rem auto;
    transition: box-shadow var(--transition-speed);
    padding-bottom: 55px; /* Add bottom padding */
    margin-bottom: 90px; 
}

form:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}


input[type="text"], input[type="password"], input[type="email"], button {
    width: 90%;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 5px;
    border: 2px solid var(--input-border-color);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
    font-size: 16px;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus {
    border-color: var(--input-border-focus-color);
    box-shadow: 0 0 5px var(--input-border-focus-color);
    padding: 12px 15px;
    margin: 10px 0;
    margin-bottom: 20px;
}


.button, button[type="submit"], button[type="button"] {
    width: 88%; /* Match the width of the input fields */
    margin: 10px auto; /* Center the button the same as input fields */
    background-color: transparent;
    display: block;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 5px;
    transition: background-color var(--transition-speed), transform var(--transition-speed), color var(--transition-speed);
    font-weight: bold;
    text-decoration: none;
}

.button:hover, button[type="submit"]:hover, button[type="button"]:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.flash-message {
    color: #fff;
    padding: 10px;
    margin: 10px auto; /* Center horizontally */
    border: 1px solid #fff;
    width: 32%;
    display: flex; /* Enable flexbox layout */
    justify-content: center; /* Center horizontally within the container */
    align-items: center; /* Center vertically within the container */
}

.success { background-color: #28a745; }
.error { background-color: #dc3545; }

footer {
    text-align: center;
    padding: 1px 0;
    background-color: #20262c;
    color: #fdfbfb;
    font-size: 14px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.bubble {
    position: absolute;
    bottom: -5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.9;
    animation: float 25s ease-in infinite, fadeIn 1s ease-out;
}

@keyframes float {
    0% { transform: translateY(0) scale(0.5); opacity: 0.6; }
    100% { transform: translateY(-100vh) scale(1.2); opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.6; }
}

@media (max-width: 768px) {
    .header h1 { font-size: 2rem; }
    .header h2 { font-size: 1.2rem; }
    .main-content {
        padding-top: 140px;
    }
    form {
        padding: var(--form-padding) 15px;
    }
}
