/* assets/css/style.css - Corrected Professional Look with Proper Label Alignment */

/* General Body Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5; /* Light gray background */
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensure body takes full viewport height */
}

/* Custom Container for Centering and Styling of Forms */
.custom-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* More prominent shadow */
    max-width: 800px; /* Max width for content */
    width: 100%;
    margin: 30px auto; /* Center horizontally with top/bottom margin */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* text-align: center; -- This was the culprit for overall content centering */
    overflow: hidden; /* Clear floats/prevent content overflow */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #0056b3; /* Darker blue for headings */
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center; /* Ensure all main headings are centered */
}

/* Subheadings within forms */
.custom-container h4 {
    text-align: left; /* Subheadings for sections */
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    color: #4a4a4a;
    font-weight: 600;
}

/* Paragraphs */
p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 10px; /* More rounded buttons */
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2); /* Subtle button shadow */
    width: 100%; /* Full width by default in forms */
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
    transform: translateY(-2px); /* Lift effect on hover */
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3); /* Enhanced shadow on hover */
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
    border-radius: 10px;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.btn-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}
.btn-link:hover {
    text-decoration: underline;
    color: #0056b3;
}


/* Form controls */
/* Ensure labels are always left-aligned */
.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
    display: block; /* Ensures label takes its own line */
    text-align: left; /* Explicitly align label text to the left */
}
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    width: 100%; /* Ensure they take full width of their column */
    text-align: left; /* Keep input text left-aligned */
}
.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
    outline: none; /* Remove default outline */
}
.form-control[readonly], .form-select[readonly] {
    background-color: #e9ecef; /* Lighter background for readonly fields */
    opacity: 1; /* Ensure not faded */
    cursor: not-allowed;
}

/* Alerts */
.alert {
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 15px 20px;
    text-align: left;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Specific styles for the home page template */
.hero-section {
    padding: 60px 0;
    background: linear-gradient(to right, #e0f7fa, #bbdefb); /* Light blue gradient */
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    color: #0056b3;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.25rem;
    color: #333;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.features-section {
    padding: 40px 0;
}

.feature-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: left; /* Align text left within feature boxes */
}

.feature-item h3 {
    color: #007bff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1rem;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }
    .custom-container {
        padding: 20px;
        margin: 20px auto;
    }
    .d-grid.gap-2.col-md-6.mx-auto {
        grid-template-columns: 1fr; /* Stack buttons on small screens */
    }
    /* Ensure columns take full width on small screens for forms */
    .custom-container .row > div {
        width: 100% !important; /* Override Bootstrap's col-md-6 etc. for small screens */
        margin-bottom: 1rem; /* Add some spacing between stacked fields */
    }
    .custom-container .row > div:last-child {
        margin-bottom: 0;
    }
}

/* Specific styles for radio buttons/checkboxes if needed */
.form-check-inline {
    margin-right: 1rem;
}
.form-check-input {
    margin-top: 0.3rem; /* Align checkbox/radio with label text */
}

/* Adjust button group for forms */
.d-grid.gap-2.col-6.mx-auto {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr; /* Default to single column for buttons */
}
/* assets/css/style.css - Enhanced Professional Look with A4-like Display */

/* General Body Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5; /* Light gray background */
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensure body takes full viewport height */
}

/* Custom Container for Centering and Styling of Forms */
.custom-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* More prominent shadow */
    /* Adjusted max-width to approximate A4 width (21cm - 2cm margins = 19cm, approx 750px at 96dpi) */
    max-width: 794px; /* A4 width at 96dpi is 794px. Adjust if needed for your specific view */
    width: 95%; /* Make it responsive, but limit max width */
    margin: 30px auto; /* Center horizontally with top/bottom margin */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Clear floats/prevent content overflow */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #0056b3; /* Darker blue for headings */
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center; /* Ensure all main headings are centered */
}

/* Subheadings within forms */
.custom-container h4 {
    text-align: left; /* Subheadings for sections */
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    color: #4a4a4a;
    font-weight: 600;
}

/* Paragraphs */
p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 10px; /* More rounded buttons */
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2); /* Subtle button shadow */
    width: 100%; /* Full width by default in forms */
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
    transform: translateY(-2px); /* Lift effect on hover */
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3); /* Enhanced shadow on hover */
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
    border-radius: 10px;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.btn-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}
.btn-link:hover {
    text-decoration: underline;
    color: #0056b3;
}


/* Form controls */
/* Ensure labels are always left-aligned */
.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
    display: block; /* Ensures label takes its own line */
    text-align: left; /* Explicitly align label text to the left */
}
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    width: 100%; /* Ensure they take full width of their column */
    text-align: left; /* Keep input text left-aligned */
}
.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
    outline: none; /* Remove default outline */
}
.form-control[readonly], .form-select[readonly] {
    background-color: #e9ecef; /* Lighter background for readonly fields */
    opacity: 1; /* Ensure not faded */
    cursor: not-allowed;
}

/* Alerts */
.alert {
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 15px 20px;
    text-align: left;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Specific styles for the home page template */
.hero-section {
    padding: 60px 0;
    background: linear-gradient(to right, #e0f7fa, #bbdefb); /* Light blue gradient */
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    color: #0056b3;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.25rem;
    color: #333;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.features-section {
    padding: 40px 0;
}

.feature-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: left; /* Align text left within feature boxes */
}

.feature-item h3 {
    color: #007bff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1rem;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }
    .custom-container {
        padding: 20px;
        margin: 20px auto;
        max-width: 95%; /* Allow it to be wider on smaller screens if needed */
    }
    .d-grid.gap-2.col-md-6.mx-auto {
        grid-template-columns: 1fr; /* Stack buttons on small screens */
    }
    /* Ensure columns take full width on small screens for forms */
    .custom-container .row > div {
        width: 100% !important; /* Override Bootstrap's col-md-6 etc. for small screens */
        margin-bottom: 1rem; /* Add some spacing between stacked fields */
    }
    .custom-container .row > div:last-child {
        margin-bottom: 0;
    }
}

/* Specific styles for radio buttons/checkboxes if needed */
.form-check-inline {
    margin-right: 1rem;
}
.form-check-input {
    margin-top: 0.3rem; /* Align checkbox/radio with label text */
}

/* Adjust button group for forms */
.d-grid.gap-2.col-6.mx-auto {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr; /* Default to single column for buttons */
}
