/* Global font and body styling */
body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Navigation Bar Styling */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #4CAF50; /* Green background */
    padding: 15px;
    color: white;
}

.navbar-logo img {
    height: 50px; /* Adjust logo size */
}

.navbar-center {
    font-family: 'Black Ops One', sans-serif;
    font-size: 36px;
    color: rgb(255, 255, 255);
    text-align: center;
}

.navbar-items {
    display: flex;
    gap: 15px;
}

.navbar-items a {
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
}

.navbar-items a:hover {
    text-decoration: underline;
}

/* Style for the logged-in username display */
.navbar-user {
    color: #eeeeee;
    font-size: 12px;
    margin-top: 5px; /* Space between navigation and username */
    text-align: right;
}

/* Content Area */
.content {
    background-color: #f0f9f0; /* Light green background */
    color: #333;
    padding: 2em;
    text-align: center;
    min-height: 80vh;
}

/* Centered login container */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 70vh; /* Reduced height to lift it up a bit */
    padding-top: 40px; /* Adds spacing from the top */
    padding: 20px;
    background-color: #F0F9F0;
}

/* Main login header */
.login-header {
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

/* Login box styling */
.login-box {
    background-color: #FFFFFF;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

/* Subheader for login box */
.login-subheader {
    font-size: 18px;
    color: #B76E22; /* Darker brown color */
    margin-bottom: 20px;
}

/* Style for labels */
.login-box label {
    font-size: 14px;
    color: #333;
    display: block;
    text-align: left;
    margin: 10px 0 5px;
}

/* Style for input fields */
.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Login Button Styling */
.login-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 40%;
}

.login-button:hover {
    background-color: #45a049;
}

/* Footer text below login box */
.login-footer {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
    text-align: center;
}



/* Container styling for the generator */
.generator-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 70%;
    margin: 10px auto;
    text-align: center;
}

/* Title styling */
.generator-title {
    font-size: 24px;
    color: #2d6a4f; /* Dark green color */
    font-weight: 600;
    margin-bottom: 25px;
}

.generator-working-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 95%;
    padding: 10px;
    box-sizing: border-box;
    background-color: #f3f3f3;
    border-radius: 10px;
}

/* Wrapper for left and right sections */
.generator-upper-section {
    display: flex;
    gap: 10px;
    width: 100%; /* Ensures upper section takes full width */
}

/* Left Section */
.generator-left {
    flex: 0 1 70%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
    gap: 10px;
}

/* Right Section */
.generator-right {
    flex: 0 1 30%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align items horizontally */
    justify-content: center; /* Center items vertically */
    padding: 20px;
    box-sizing: border-box;
}


/* Button styling */
.generate-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 10px;
}

.generate-button:hover {
    background-color: #2d6a4f; /* Darker green on hover */
    transform: translateY(-2px);
}

/* Message Area Styling */
.generator-down {
    width: 100%; /* Takes full width of the parent */
    border-radius: 8px;
    padding: 10px;
    color: #2d6a4f;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box; /* Include padding within width */
}

/* Button wrapper styling to stack buttons vertically */
.button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Space between the buttons */
    margin-top: 20px; /* Adds some space between counters and buttons */
}

/* Combobox wrapper styling */
.combobox-wrapper {
    display: flex;
    gap: 20px;
    width: 90%;
    margin: 10px auto;
    align-items: center;
}

/* Combobox container with side-by-side label and select */
.combobox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.combobox-container label {
    font-weight: bold;
    color: #333;
    white-space: nowrap; /* Prevents text wrap on smaller screens */
}

.combobox-container select {
    width: 60%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
}

/* Position wrapper styling with side-by-side layout */
.position-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 90%;
    margin: 10px auto;
}

.position-wrapper label {
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.position-wrapper input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}


/* JSON Textarea styling */
.json-wrapper {
    width: 100%; /* Makes the textarea fill the width of the left container */
    margin-top: 10px;
}

.json-wrapper textarea {
    width: 100%; /* Keeps the textarea within the wrapper's width */
    min-height: 200px;
    padding: 15px;
    border: 1px solid #52b788;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Courier New', Courier, monospace;
    color: #333;
    resize: vertical;
    background-image: url('/static/img/Corus_Isotipo_gris.svg');
    background-size: 100px 100px;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.9;
    box-sizing: border-box;
}

/* Style the background and border of the message area */
#message-area {
    background-color: #fafafa; /* Light red background for error */
    border: 1px solid #d0d0d0;
    padding: 10px;
    border-radius: 5px;
}

/* Style the text within the message area */
.message-text {
    color: #a8a4a0; /* Dark red text for error messages */
    font-weight: bold;
    font-size: 16px;
}


/* Styling for the counters above the buttons */
.resume-counters {
    text-align: center; /* Center text alignment */
    margin-bottom: 20px;
    font-size: 16px;
    color: #2d6a4f;
}

.resume-counters p {
    margin: 5px 0;
    font-weight: bold;
}
