/* General Body and Typography */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa; /* Light gray background */
    color: #343a40; /* Dark gray text */
    line-height: 1.6;
    padding-top: 20px; /* Add some top padding for overall layout */
}

/* Header Styling */
.navbar {
    background-color: #ffffff; /* White background for a clean look */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* More pronounced shadow for depth */
    border-bottom: 1px solid #e9ecef; /* Light border at the bottom */
    padding: 15px 0; /* More vertical padding */
    transition: box-shadow 0.3s ease; /* Smooth transition for shadow */
}

.navbar-brand {
    color: #343a40; /* Dark text for brand */
    font-weight: 500; /* Medium font weight */
    font-size: 1.25rem; /* Slightly larger font size */
    transition: color 0.3s ease, transform 0.2s ease; /* Smooth transition for color and scale */
}

.navbar-brand:hover {
    color: #007bff; /* A subtle blue accent on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

.nav-link {
    color: #6c757d; /* Muted gray for links */
    font-size: 1rem;
    margin-right: 15px; /* More spacing between links */
    position: relative; /* For underline animation */
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff; /* Blue accent on hover */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #007bff;
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
    background: #007bff;
}

.badge-success {
    background-color: #28a745; /* Keep Bootstrap's success color for consistency */
    color: white;
    font-size: 0.875rem;
    padding: 0.3em 0.6em;
    border-radius: 0.25rem;
    transition: transform 0.2s ease;
}

.badge-success:hover {
    transform: translateY(-2px); /* Subtle lift on hover */
}

.badge-secondary {
    background-color: #6c757d; /* Keep Bootstrap's secondary color */
    color: white;
    font-size: 0.875rem;
    padding: 0.3em 0.6em;
    border-radius: 0.25rem;
    transition: transform 0.2s ease;
}

.badge-secondary:hover {
    transform: translateY(-2px); /* Subtle lift on hover */
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.75rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.container-fluid {
    max-width: 1200px; /* Limit width for better readability on large screens */
    margin: 0 auto; /* Center the container */
    padding: 0 15px; /* Horizontal padding */
}

/* General Content Area Styling */
.content-area {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* More pronounced shadow for content areas */
    margin-top: 20px;
    transition: box-shadow 0.3s ease;
}

.content-area:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); /* Even more pronounced shadow on hover */
}

/* Planning Table Specific Styles */
.table-responsive-sm {
    max-width: 95%; /* Limit width to 95% of the screen */
    margin: 20px auto; /* Center the table and add vertical margin */
    overflow-x: auto; /* Enable horizontal scrolling for the table */
    overflow-y: visible; /* Allow vertical content to be visible */
    border-radius: 8px; /* Rounded corners for the table container */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Subtle shadow for the table */
}

.table thead {
    position: sticky; /* Make the header sticky */
    top: 0; /* Stick to the top of the scrollable container */
    z-index: 10; /* Ensure it stays above other content */
    background-color: #4CAF50; /* Keep the header background color */
}

.table th {
    background-color: #4CAF50; /* Ensure header cells have the background */
    color: white;
    padding: 12px 8px; /* More padding for header cells */
    text-align: center; /* Ensure header text is centered */
    vertical-align: middle; /* Vertically center header text */
}

.table td {
    padding: 10px 8px; /* More padding for data cells */
    text-align: center; /* Ensure cell content is centered */
    vertical-align: middle; /* Vertically center cell content */
}

.table tr:nth-child(even) {
    background-color: #f8f9fa; /* Lighter background for even rows */
}

.table tr:hover {
    background-color: #e9ecef; /* Subtle hover effect for rows */
}

/* Form and Input Styling (if applicable in included structures) */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
.custom-select { /* Apply to custom-select as well */
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
.custom-select:focus { /* Apply to custom-select as well */
    border-color: #007bff; /* Blue border on focus */
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Blue shadow on focus */
}

.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease; /* Add transform for animation */
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px); /* Subtle lift on hover */
}

.form-inline .btn-primary {
    transform: none; /* Override lift for form buttons if needed, or adjust */
}

.form-inline .btn-primary:hover {
    transform: translateY(-2px); /* Apply lift to form buttons */
}

/* Admin Page Specific Styles */
.admin-form-section {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px; /* Space between sections */
    transition: box-shadow 0.3s ease;
}

.admin-form-section:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-form-section h3 {
    color: #343a40;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 500;
}

.admin-form-section .form-group {
    margin-bottom: 15px;
}

.admin-form-section label {
    font-weight: 400;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

.admin-form-section .form-control,
.admin-form-section .custom-select {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
}

.admin-form-section .btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 0.25rem;
}

.admin-form-section .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.admin-form-section .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.admin-form-section .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.admin-form-section .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.admin-form-section .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.admin-form-section .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Login Page Specific Styles */
.login-container {
    max-width: 350px; /* Slightly wider for better form presentation */
    margin: 80px auto 0 auto; /* Center and add top margin */
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center; /* Center content within the container */
}

.login-form .form-control {
    margin-bottom: 15px; /* More space between inputs */
}

.login-form .btn-primary {
    width: 100%; /* Full width button */
    padding: 10px; /* Larger padding for button */
    font-size: 1.1rem; /* Larger font size for button */
}
