/* General body styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f5; /* Light gray background */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
    text-align: center;
}

/* Centered container for all pages */
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    max-width: 600px; /* Limit width for larger screens */
    padding: 20px;
    background-color: #fff;
    border-radius: 20px; /* Rounded corners */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
    min-height: 0; /* Let the height adjust to the content */
    margin: auto; /* Ensures it’s centered */
}

/* Top-right positioning for login and register buttons */
.auth-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
}

.auth-buttons button {
    padding: 10px 20px;
    font-size: 14px;
    margin-left: 10px;
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.auth-buttons button:hover {
    background-color: #357ae8;
}

/* Heading styling */
h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
    text-align: center; /* Center the heading */
    width: 100%; /* Ensure it takes up full width for proper centering */
}

/* Form styling */
form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

/* Section Styling */
.section {
    width: 100%;
    margin-bottom: 30px;
}

/* Row for organizing inputs */
.form-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

/* Grouping individual form inputs */
.form-group {
    width: 100%;
}

/* Styling for input fields, select dropdowns, and buttons */
form input, form button, form textarea, form select, form input[type="file"] {
    width: 80%; /* Set width to 80% of the container */
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* Styling for input fields on hover/focus */
form input:focus, form select:focus, form textarea:focus {
    border-color: #34a853;
    background-color: #fff;
    outline: none;
}

/* Styling for file inputs */
form input[type="file"] {
    padding: 5px;
    font-size: 16px;
    background-color: #fff;
}

/* Button styling */
form button {
    background-color: #34a853;
    color: white;
    cursor: pointer;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    margin-top: 20px;
    transition: background-color 0.3s;
    margin-top: 10px; /* Reduced margin-top to bring the button closer */
}

/* Button hover effect */
form button:hover {
    background-color: #2c8c44;
}

/* Labels styling */
form label {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

/* Styling for Laser Setup and Laser Type Dropdowns */
form select {
    background-color: #f9f9f9;
}

form select:focus {
    border-color: #34a853;
    background-color: #fff;
}

/* Styling for Lens Size Field (Hidden by default) */
#lens-size-field {
    display: none; /* Initially hidden */
}

/* Styling for comment section */
#comment-section {
    width: 70%; /* Reduced width of the comment section */
    margin-top: 30px;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
    margin-left: auto; /* Centers the section */
    margin-right: auto; /* Centers the section */
}

/* Styling for the comment text area */
form textarea {
    width: 80%;
    height: 100px;
    padding: 12px;
    margin-bottom: 10px; /* Reduced margin-bottom */
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    resize: vertical;
}

/* Styling for individual buttons */
.settings-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
}

/* Styling for individual buttons */
.settings-buttons button {
    background-color: #4285F4;
    padding: 16px 30px;
    font-size: 16px;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    width: 48%;
}

.settings-buttons button:hover {
    background-color: #357ae8;
}
