/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f9; /* Slightly adjusted background */
    color: #4A5568; /* Softer black for body text */
    line-height: 1.65;
    font-size: 16px; /* Base font size */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: #2D3748; /* Darker color for headings */
    font-weight: 600;
}


.wrapper {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: #1A202C; /* Even darker sidebar for more contrast */
    color: #A0AEC0; /* Lighter gray for sidebar text */
    transition: all 0.3s ease-in-out;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.07);
}

#sidebar.active {
    margin-left: -260px;
}

#sidebar .sidebar-header {
    padding: 25px;
    background: #2D3748; /* Consistent dark shade */
    text-align: center;
    border-bottom: 1px solid #2D3748; /* Match background or slightly lighter */
}

#sidebar .sidebar-header h3 {
    color: #E2E8F0; /* Brighter text for header */
    margin-bottom: 0;
    font-size: 1.5rem; /* Slightly smaller for balance */
    font-weight: 700; /* Bolder */
}

#sidebar ul.components {
    padding: 15px 0;
}

#sidebar ul li a {
    padding: 13px 25px;
    font-size: 0.98em; /* Slightly smaller for more items */
    display: block;
    color: #A0AEC0; /* Sidebar link color */
    text-decoration: none;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, padding-left 0.2s ease-in-out, border-left-color 0.2s ease-in-out;
    border-left: 4px solid transparent;
    font-weight: 500;
}

#sidebar ul li a:hover {
    color: #E2E8F0; /* Brighter text on hover */
    background: #2D3748; /* Darker hover background */
    padding-left: 25px; /* Keep padding consistent, use border for emphasis */
    border-left: 4px solid #4FD1C5; /* Teal accent */
}

#sidebar ul li.active > a,
#sidebar ul li.active > a:hover {
    color: #FFFFFF; /* White text for active */
    background: #4FD1C5; /* Teal for active link background */
    border-left: 4px solid #FFFFFF; /* White border for active */
    padding-left: 25px;
    font-weight: 600;
}

#sidebar ul li a i {
    margin-right: 12px;
    width: 20px; /* Ensure icons align well */
    text-align: center;
}

#main-content {
    width: 100%;
    padding: 30px; /* More padding */
    min-height: 100vh;
    transition: all 0.3s;
    background-color: #f4f7f9;
}

.card {
    border: 1px solid #E2E8F0; /* Light border for definition */
    border-radius: 10px; /* Slightly more rounded */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Softer, more diffused shadow */
    margin-bottom: 2rem; /* More spacing between cards */
    background-color: #ffffff;
}

.card-header {
    background-color: #FFFFFF; /* Clean white header */
    border-bottom: 1px solid #E2E8F0;
    padding: 1rem 1.5rem; /* More padding */
    font-weight: 700; /* Bolder header text */
    font-size: 1.15rem;
    color: #2D3748;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-body {
    padding: 1.75rem; /* More padding in body */
}

.card-footer {
    background-color: #f8f9fc;
    border-top: 1px solid #e3e6f0;
    padding: 0.9rem 1.25rem;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.btn {
    border-radius: 6px;
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
    text-transform: uppercase; /* Optional: for a more 'designed' feel */
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}
.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-info {
    background-color: #1abc9c;
    border-color: #1abc9c;
}
.btn-info:hover {
    background-color: #16a085;
    border-color: #16a085;
}

.table {
    background-color: #fff;
}

.table thead th {
    background-color: #EDF2F7; /* Lighter, cleaner table header */
    border-bottom-width: 2px; /* Stronger bottom border for header */
    border-color: #E2E8F0;
    font-weight: 700; /* Bolder table headers */
    color: #4A5568;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.9rem 1rem;
}

.table tbody td {
    color: #4A5568;
    padding: 0.9rem 1rem;
    vertical-align: middle;
    font-size: 0.95rem;
}

.table-hover tbody tr:hover {
    background-color: #F7FAFC; /* Very subtle hover for table rows */
    color: #2D3748;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fc;
}

/* Login Page Specific Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 30px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

.login-card .card-title {
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #CBD5E0;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    color: #4A5568;
}

.form-control:focus {
    border-color: #4FD1C5; /* Teal focus */
    box-shadow: 0 0 0 0.2rem rgba(79, 209, 197, 0.25);
}

.form-label {
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -260px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #main-content {
        width: 100%;
        padding: 15px;
    }
    .login-card {
        margin: 20px;
    }
}

.navbar {
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    background-color: #fff !important; /* Ensure navbar is white */
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    color: #2D3748 !important;
}

.navbar-text {
    color: #4A5568;
}

/* Alert styling */
.alert {
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Add a subtle animation to page load / content display */
#main-content > main {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
