/* style.css */

/* Google Fonts - Roboto (for headings) and Open Sans (for body) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #3f51b5; /* Material Design Indigo 500 */
    --primary-dark: #303f9f;  /* Material Design Indigo 700 */
    --primary-light: #c5cae9; /* Material Design Indigo 100 */
    --secondary-color: #009688; /* Material Design Teal 500 */
    --secondary-dark: #00796b; /* Material Design Teal 700 */
    --accent-color: #ffc107; /* Material Design Amber 500 (Medium priority) */
    --danger-color: #f44336; /* Material Design Red 500 (High priority) */
    --success-color: #4caf50; /* Material Design Green 500 (Completed/Success) */
    --info-color: #2196f3; /* Material Design Blue 500 (Low priority) */

    --text-dark: #212121; /* Dark grey for main text */
    --text-light: #757575; /* Light grey for secondary text */
    --text-white: #ffffff; /* White text */
    --bg-light: #f5f5f5; /* Light grey background */
    --card-bg: #ffffff; /* White card background */
    --border-color: #e0e0e0; /* Light grey border */
    --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 10px rgba(0, 0, 0, 0.15);

    --sidebar-width-open: 250px;
    --sidebar-width-closed: 80px; /* For collapsed state, shows only icons */
    --navbar-height: 70px;
}

/* --- Base Styles --- */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll issues */
}

/* Wrapper to contain sidebar and main content */
.wrapper {
    display: flex;
    min-height: 100vh; /* Full viewport height */
}

/* --- Sidebar Styling --- */
.sidebar {
    width: var(--sidebar-width-open);
    background-color: var(--primary-dark);
    color: var(--text-white);
    padding: 20px;
    box-shadow: var(--shadow-medium);
    transition: width 0.3s ease-in-out; /* Smooth width transition */
    display: flex;
    flex-direction: column;
    position: fixed; /* Sidebar remains fixed */
    height: 100%; /* Full height of viewport */
    z-index: 1000; /* High z-index to stay on top */
    left: 0; /* Aligned to the left */
    top: 0;
    overflow-y: auto; /* Enable vertical scrolling if menu items exceed height */
    overflow-x: hidden; /* Hide any content overflowing horizontally (like text when collapsed) */
}

/* Collapsed state for sidebar (desktop) */
.sidebar.collapsed {
    width: var(--sidebar-width-closed);
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide any text that overflows the header width */
    text-overflow: clip; /* Clip overflowing text without ellipsis */
}

.sidebar-header h3 {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap; /* Prevent text wrapping within h3 */
    overflow: hidden;    /* Hide overflow */
    text-overflow: clip; /* Clip text */
    transition: font-size 0.3s ease, opacity 0.3s ease, transform 0.3s ease, width 0.3s ease, min-width 0.3s ease; /* Smooth transitions */
}

/* When sidebar collapses (desktop), hide header text */
.sidebar.collapsed .sidebar-header h3 {
    font-size: 0; /* Hide text completely */
    opacity: 0; /* Fade out text */
    pointer-events: none; /* Prevent interaction with hidden text */
    padding: 0;
    margin: 0; /* Remove any lingering space */
    width: 0; /* Collapse width to zero */
    min-width: 0; /* Important for flexbox */
}

.sidebar-header h3 .fas {
    font-size: 1.5em; /* Icon size */
    flex-shrink: 0;    /* Prevent icon from shrinking */
    transition: font-size 0.3s ease; /* Smooth transition for icon */
}

/* When sidebar collapses, make the icon larger in header for better visibility */
.sidebar.collapsed .sidebar-header h3 .fas {
    font-size: 2.2em; /* Larger icon when collapsed */
    margin: 0; /* Ensure no margin pushes it */
    padding: 0;
    width: 100%; /* Occupy available width in collapsed state for centering */
    text-align: center; /* Center the icon */
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* Allows the menu to take available vertical space */
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-link {
    display: flex; /* Use flexbox for icon and text alignment */
    color: var(--text-white);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease, padding 0.3s ease, gap 0.3s ease;
    align-items: center;
    gap: 15px; /* Space between icon and text */
    font-size: 1.1em;
    overflow: hidden; /* Important: Hide overflow for the whole link to clip text */
}

.sidebar-link:hover {
    background-color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-link.active {
    background-color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--shadow-light);
}

.sidebar-link .fas {
    font-size: 1.2em;
    min-width: 20px; /* Ensure icons align vertically */
    text-align: center;
    flex-shrink: 0; /* Prevent icon from shrinking on collapse */
}

/* Styling for the text part of sidebar links */
.sidebar-link span {
    transition: opacity 0.3s ease, width 0.3s ease, margin-left 0.3s ease, font-size 0.3s ease, padding 0.3s ease;
    width: auto; /* Default width */
    opacity: 1; /* Default opacity */
    overflow: hidden; /* Hide overflow for the text itself */
    white-space: nowrap; /* Prevent text wrapping */
    flex-grow: 1; /* Allow text to take available space */
}

/* When sidebar collapses (desktop), hide link text */
.sidebar.collapsed .sidebar-link span {
    opacity: 0; /* Fade out text */
    width: 0; /* Collapse width to zero */
    margin-left: -15px; /* Move text out of view completely */
    padding: 0;
    font-size: 0; /* Ensure no residual space or visual glitch */
    pointer-events: none; /* Prevent interaction with hidden text */
}

.sidebar.collapsed .sidebar-link {
    justify-content: center; /* Center icons when text is hidden */
    padding: 12px 0; /* Adjust padding for icon-only state */
    gap: 0; /* No gap when only icon is visible */
}

.sidebar.collapsed .sidebar-link:hover {
    transform: none; /* No transform on hover when collapsed */
}

.toggle-sidebar {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
    text-align: center;
    width: 100%;
    margin-top: auto; /* Push this button to the bottom of the sidebar */
    transition: transform 0.3s ease;
    display: block; /* Ensure it's always block on desktop for layout */
}

/* Rotate arrow when sidebar is collapsed */
.sidebar.collapsed .toggle-sidebar .fas {
    transform: rotate(180deg);
}

/* --- Main Content Styling --- */
.content {
    margin-left: var(--sidebar-width-open); /* Initial margin for open sidebar */
    flex-grow: 1; /* Allows content to take remaining width */
    transition: margin-left 0.3s ease-in-out; /* Smooth transition for margin */
    padding: 0; /* No padding here, padding will be inside main-content-area */
    box-sizing: border-box; /* Include padding/border in width calculation */
    position: relative; /* For sticky navbar */
}

/* Shift content when sidebar is collapsed (desktop) */
.content.shifted {
    margin-left: var(--sidebar-width-closed);
}

.navbar {
    background-color: var(--card-bg);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-light);
    width: 100%; /* Occupy full width of its parent (.content) */
    box-sizing: border-box;
    position: sticky; /* Make navbar sticky at the top */
    top: 0;
    z-index: 999; /* Ensure it stays above other content */
    border-bottom: 1px solid var(--border-color); /* Subtle bottom border */
    min-height: var(--navbar-height);
}

.navbar-toggler {
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--text-dark);
    cursor: pointer;
    display: none; /* Hidden by default on larger screens, shown on mobile */
}

.navbar-title {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
    flex-grow: 1; /* Allows it to take available space */
    text-align: center; /* Center title on larger screens */
    font-size: 1.8em;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-weight: 600;
}
.user-profile .fas {
    font-size: 1.5em;
    color: var(--primary-color);
}

.main-content-area {
    padding: 30px; /* Padding for the entire content area */
    flex-grow: 1; /* Take up remaining vertical space */
}

.content-section {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    margin-bottom: 25px; /* Spacing between sections */
    display: none; /* Hidden by default, JS will show/hide */
    animation: fadeIn 0.5s ease-out; /* Fade-in animation */
    min-height: 500px; /* Ensure forms/tables have enough space even if content is less */
}
.content-section.active {
    display: block; /* Show active section */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    color: var(--primary-dark);
    font-family: 'Roboto', sans-serif;
    font-size: 1.8em;
    margin-top: 0; /* Remove default h2 top margin */
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}
h2 .fas {
    color: var(--primary-color);
    font-size: 0.9em;
}


/* --- Dashboard Widgets --- */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
    margin-top: 30px;
}
.widget {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* Alternate widget colors for visual distinction */
.widget:nth-child(2) { background-color: #e0f2f1; color: var(--secondary-dark); } /* Teal light */
.widget:nth-child(3) { background-color: #fffde7; color: #ff8f00; } /* Amber light */
.widget:nth-child(4) { background-color: #ffebee; color: var(--danger-color); } /* Red light */

.widget:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: var(--shadow-medium);
}
.widget h3 {
    margin-top: 0;
    font-size: 1.4em;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}
.widget p {
    font-size: 2.5em;
    font-weight: 700;
    margin: 10px 0 0;
}


/* --- Form Styling --- */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95em;
}
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.2); /* Primary color with transparency */
    outline: none; /* Remove default outline */
}
.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px;
}
.form-actions {
    text-align: right;
    margin-top: 30px;
}

/* --- Buttons --- */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-flex; /* For icon and text alignment */
    align-items: center;
    gap: 8px; /* Space between icon and text */
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 4px 8px rgba(63, 81, 181, 0.2);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(63, 81, 181, 0.3);
}
.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-white);
    box-shadow: 0 4px 8px rgba(0, 150, 136, 0.2);
}
.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 150, 136, 0.3);
}

/* --- Table Styling --- */
.table-responsive {
    overflow-x: auto; /* Enable horizontal scrolling for tables on small screens */
    width: 100%; /* Take full width of parent */
}
table {
    width: 100%;
    border-collapse: separate; /* For rounded corners on table */
    border-spacing: 0;
    margin-top: 25px;
    box-shadow: var(--shadow-medium);
    border-radius: 8px;
    overflow: hidden; /* Ensures rounded corners are visible for inner elements */
    background-color: var(--card-bg);
}
table th, table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle; /* Ensure content is vertically aligned */
}
table th {
    background-color: var(--primary-color);
    color: var(--text-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}
table tr:nth-child(even) {
    background-color: #fcfcfc; /* Zebra striping */
}
table tr:hover {
    background-color: #f0f0f0;
}
table tbody tr:last-child td {
    border-bottom: none; /* No border for the last row */
}

/* NEW: Task column transparency */
table td:first-child { /* Targets the first cell in each row, which is usually 'Task' */
    opacity: 0.9; /* Slightly transparent */
    transition: opacity 0.3s ease; /* Smooth transition */
}

/* NEW: Optional - More transparency for completed/closed tasks */
.task-completed-opacity {
    opacity: 0.7;
}

/* NEW: Table actions (edit button) */
.table-actions {
    display: flex;
    gap: 8px; /* Space between buttons */
    justify-content: center; /* Center buttons if needed */
    align-items: center;
}

.table-actions .btn {
    padding: 6px 12px; /* Smaller padding for table buttons */
    font-size: 0.85em; /* Smaller font size */
    box-shadow: none; /* Remove button shadow inside table */
}

.table-actions .btn-edit {
    background-color: var(--info-color); /* Blue for edit */
    color: var(--text-white);
}

.table-actions .btn-edit:hover {
    background-color: #1976d2; /* Darker blue on hover */
    transform: translateY(-1px);
}


/* Priority Status Dots */
.priority-dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.1); /* Subtle border for definition */
}
.priority-dot.high { background-color: var(--danger-color); }
.priority-dot.medium { background-color: var(--accent-color); }
.priority-dot.low { background-color: var(--info-color); }

/* Status Badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-white);
    display: inline-block;
    min-width: 80px; /* Ensure consistent width */
    text-align: center;
}
.status-badge.status-pending { background-color: #ff9800; } /* Orange */
.status-badge.status-in-progress { background-color: var(--secondary-color); } /* Teal */
.status-badge.status-completed { background-color: var(--success-color); } /* Green */
.status-badge.status-closed { background-color: #616161; } /* Grey for Closed status */


/* Alert Messages */
.alert {
    padding: 15px 25px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.alert.success {
    background-color: #e8f5e9; /* Light green */
    color: #2e7d32; /* Dark green text */
    border: 1px solid #a5d6a7;
}
.alert.error {
    background-color: #ffebee; /* Light red */
    color: #c62828; /* Dark red text */
    border: 1px solid #ef9a9a;
}
.alert .fas {
    font-size: 1.2em;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    /* Mobile/Tablet view: Sidebar slides in/out */
    .sidebar {
        left: -var(--sidebar-width-open); /* Hidden by default */
        width: var(--sidebar-width-open); /* Keeps full width for slide-in animation */
        transition: left 0.3s ease-in-out;
        box-shadow: var(--shadow-medium); /* Add shadow to sliding sidebar */
    }
    /* When 'collapsed' class is NOT present on mobile, it means sidebar is OPEN */
    .sidebar:not(.collapsed) {
        left: 0; /* Slide in to be visible */
    }
    /* Mobile sidebar header when open */
    .sidebar:not(.collapsed) .sidebar-header h3 {
        font-size: 1.8em; /* Show full text */
        opacity: 1;
        pointer-events: auto;
        width: auto; /* Revert width */
    }
    .sidebar:not(.collapsed) .sidebar-header h3 .fas {
        font-size: 1.5em;
    }

    /* Mobile sidebar links when open */
    .sidebar:not(.collapsed) .sidebar-link span {
        opacity: 1; /* Show text */
        width: auto; /* Full width */
        margin-left: 0;
        font-size: 1.1em;
        pointer-events: auto;
    }
    .sidebar:not(.collapsed) .sidebar-link {
        justify-content: flex-start; /* Align text to left */
        padding: 12px 15px;
        gap: 15px;
    }
    .sidebar .toggle-sidebar {
        display: none; /* Hide internal toggle button on mobile */
    }

    .content {
        margin-left: 0; /* No margin-left on mobile, content takes full width */
        width: 100%; /* Content takes full width */
        position: relative; /* For z-index context */
    }
    /* The .content.shifted class is primarily for desktop collapse, no longer needed for mobile content shifting */
    .content.shifted {
        margin-left: 0; /* Ensure no residual margin on mobile */
    }

    .navbar-toggler {
        display: block; /* Show hamburger icon on mobile */
        margin-right: 15px;
    }
    .navbar-title {
        text-align: left; /* Align title left on mobile */
        font-size: 1.5em; /* Adjust font size */
        flex-grow: 1;
    }
    .user-profile {
        display: none; /* Hide user profile on mobile for space */
    }
    .main-content-area {
        padding-top: 15px; /* Adjust padding for mobile content */
    }
}

@media (max-width: 768px) {
    .main-content-area {
        padding: 0 15px 15px 15px; /* Reduce padding for smaller screens */
    }
    .navbar {
        padding: 15px 15px;
    }

    /* Table responsive styling (stack rows as cards) */
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        position: absolute; /* Hide table headers visually */
        top: -9999px;
        left: -9999px;
    }
    table tr {
        border: 1px solid var(--border-color);
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
    }
    table td {
        border: none;
        border-bottom: 1px solid var(--border-color);
        position: relative;
        padding-left: 50%; /* Space for data label */
        text-align: right;
    }
    table td:last-child {
        border-bottom: none;
    }
    table td:before {
        position: absolute;
        top: 15px;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label); /* Use data-label for content */
        font-weight: 700;
        text-align: left;
        color: var(--text-light);
        font-size: 0.9em;
    }
    /* Specific styling for task column on mobile */
    table td[data-label="Task"] {
        opacity: 0.9;
    }
    /* Specific styling for action column on mobile */
    table td[data-label="Actions"] {
        text-align: center; /* Center actions on mobile */
        padding-left: 15px; /* No need for label space here */
        padding-right: 15px;
    }
    table td[data-label="Actions"]::before {
        display: none; /* Hide the label for actions on mobile */
    }
}

@media (max-width: 480px) {
    .form-group input, .form-group select, .form-group textarea {
        font-size: 0.95em;
        padding: 10px 12px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .navbar-title {
        font-size: 1.2em; /* Even smaller title on very small screens */
    }
    .dashboard-widgets {
        gap: 15px;
    }
    .widget h3 {
        font-size: 1.2em;
    }
    .widget p {
        font-size: 2em;
    }
}

/* Add/Update these rules in your style.css or modal.css */

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place (fixed to viewport) */
    z-index: 1001; /* Sit on top of everything (sidebar is 1000) */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed for content that overflows */
    background-color: rgba(0,0,0,0.6); /* Darker black w/ opacity for overlay effect */
    display: flex; /* Use flexbox to center the modal content */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    padding: 20px; /* Add some padding so content doesn't touch edges on smaller screens */
    box-sizing: border-box; /* Include padding in width/height */
}

/* Modal Content/Box */
.modal-content {
    background-color: var(--card-bg);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 100%; /* Default width */
    max-width: 600px; /* Max width for the modal */
    box-shadow: var(--shadow-medium);
    position: relative; /* For absolute positioning of close button */
    animation: zoomIn 0.3s ease-out; /* Smooth entrance animation */
    margin: auto; /* Fallback for older browsers and to help centering */
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* The Close Button */
.close-button {
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--danger-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-content h3 {
    color: var(--primary-dark);
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Optional: Overlay for mobile sidebar (if not already in style.css) */
/* This is separate from the modal overlay, used for mobile sidebar when it's open */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Below modal, above content */
    display: none; /* Controlled by JS */
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%; /* Adjust width for smaller screens */
        /* margin-top: 5%; No need for margin-top if using flex for centering */
    }
}


/* In your style.css file */

/* Ensure table cells have consistent padding and alignment */
table th, table td {
    padding: 15px 20px; /* Adjust as needed */
    text-align: left;
    vertical-align: middle; /* Ensures content aligns in the middle if rows have different heights */
}

/* Make headers slightly smaller for better fit */
table th {
    font-size: 0.85em; /* Slightly reduce font size for headers */
    white-space: nowrap; /* Prevent headers from wrapping too much */
}

/* Adjust button padding in table for better visual */
.table-actions .btn {
    padding: 6px 10px; /* Slightly reduce padding if needed */
    font-size: 0.8em; /* Make button text slightly smaller if needed */
}


/* In your style.css file */

/* --- Assign New Task Form Specific Styling --- */
#assign-new-task .form-container { /* We will wrap the form in a new div with this class */
    max-width: 700px; /* Max width to make it compact */
    margin: 0 auto; /* Center the form horizontally */
    padding: 25px; /* Add some padding inside the container */
    background-color: var(--card-bg); /* White background */
    border-radius: 8px; /* Rounded corners */
    box-shadow: var(--shadow-light); /* Subtle shadow */
    margin-bottom: 25px; /* Spacing below the form */
}

/* Adjust labels for better alignment within the compact form */
#assign-new-task .form-group label {
    text-align: left; /* Ensure labels are left-aligned */
    width: 100%; /* Take full width */
    margin-bottom: 5px; /* Reduce space between label and input */
}

/* Adjust form-actions for better centering/alignment */
#assign-new-task .form-actions {
    text-align: center; /* Center the button in the compact form */
    margin-top: 30px;
}

/* Responsive adjustments for smaller screens if needed */
@media (max-width: 768px) {
    #assign-new-task .form-container {
        max-width: 100%; /* Full width on smaller screens */
        padding: 15px;
        margin-left: 15px; /* Add some side margin for content */
        margin-right: 15px;
    }
}


/* In your style.css file */

/* --- Add New Employee Form Specific Styling --- */
/* Re-use the existing form-container style, but specify it for this section if needed */
/* If you want identical styling to assign-new-task, you can just apply the same class */
/* If you want slightly different, create a new class e.g., #add-employee-form-container */

#add-new-employee .form-container { /* We will wrap the form in a new div with this class */
    max-width: 600px; /* Thoda chhota rakhte hain kyunki fields kam hain */
    margin: 0 auto; /* Center the form horizontally */
    padding: 25px; /* Add some padding inside the container */
    background-color: var(--card-bg); /* White background */
    border-radius: 8px; /* Rounded corners */
    box-shadow: var(--shadow-light); /* Subtle shadow */
    margin-bottom: 25px; /* Spacing below the form */
}

/* Adjust labels for better alignment within the compact form (if not already general) */
#add-new-employee .form-group label {
    text-align: left; /* Ensure labels are left-aligned */
    width: 100%; /* Take full width */
    margin-bottom: 5px; /* Reduce space between label and input */
}

/* Adjust form-actions for better centering/alignment */
#add-new-employee .form-actions {
    text-align: center; /* Center the button in the compact form */
    margin-top: 30px;
}

/* Responsive adjustments for smaller screens if needed */
@media (max-width: 768px) {
    #add-new-employee .form-container {
        max-width: 100%; /* Full width on smaller screens */
        padding: 15px;
        margin-left: 15px; /* Add some side margin for content */
        margin-right: 15px;
    }
}

/* In your style.css file, add these at the bottom or in a logical section */

/* --- Pagination Styling (NEW) --- */
.pagination {
    display: flex;
    justify-content: center; /* Center the pagination links */
    margin-top: 30px;
    margin-bottom: 20px; /* Space below pagination */
    gap: 10px; /* Space between page links */
}

.pagination .page-link {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary-dark);
    background-color: var(--card-bg);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-weight: 600;
}

.pagination .page-link:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.pagination .page-link.active-page {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-dark);
    font-weight: 700;
    box-shadow: var(--shadow-light);
    pointer-events: none; /* Disable click on active page */
}

/* For previous/next buttons, give a bit more padding */
.pagination .page-link:first-child,
.pagination .page-link:last-child {
    padding: 10px 20px;
}