
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    margin: 20px;
    background-color: #f8f9fa;
    color: #333;
}
h1 {
    text-align: left;
}
.container {
    max-width: 1200px;
    margin: auto;
}
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
select, input {
    padding: 5px;
    font-size: 14px;
    min-width: 150px;
}
select[multiple] {
    height: 100px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    table-layout: fixed; /* 🔹 Ensures fixed column widths */
}
th{
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap; /* 🔹 Prevents text from wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}
td {
    padding: 10px; /* ✅ More space */
    vertical-align: top; /* ✅ Align text to the top */
    line-height: 1.4; /* ✅ Increase line spacing */
}

th {
    background: #081E62;
    color: white;
    cursor: pointer;
}
th:hover {
    background: #0056b3;
}
tr:nth-child(even) {
    background: #f2f2f2;
}

/* Task Modal Styles */
#editTaskModal {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
padding: 20px;
border: 2px solid #007bff;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
width: 450px; /* ✅ Set a fixed width */
max-width: 90%;
border-radius: 8px; /* ✅ Rounded corners */
font-family: Arial, sans-serif;
}

/* Larger Task Description Field */
#editDescription {
width: 100%;
height: 100px; /* ✅ Make it much larger */
resize: vertical; /* ✅ Allow resizing */
font-size: 16px;
padding: 8px;
}

/* Form Fields Styling */
#editTaskForm select, 
#editTaskForm input {
width: 100%;
padding: 8px;
margin-bottom: 10px;
font-size: 14px;
}

/* Modal Title */
#taskModalTitle {
text-align: center;
font-size: 20px;
margin-bottom: 15px;
}

/* Buttons */
#editTaskForm button {
width: 48%;
padding: 10px;
font-size: 16px;
cursor: pointer;
border: none;
border-radius: 4px;
}

/* Save Button */
#editTaskForm button[type="submit"] {
background-color: #28a745;
color: white;
}

/* Cancel Button */
#editTaskForm button[type="button"] {
background-color: #dc3545;
color: white;
}

.banner {
    font-family: 'Inter', sans-serif;
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.logo img {
height: 50px;
}

.title h1 {
font-size: 20px;
margin: 0;
color: #081E62;
}

/* Desktop nav */
.nav-links {
    display: flex;
    gap: 16px;
    align-items: left;
}

.nav-links a {
    text-decoration: none;
    text-align: left;
    color: #081e62;
    font-weight: 500;
    padding: 4px 8px;
}

/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
}

/* ---------- MOBILE STYLES ---------- */
@media (max-width: 2000px) {
    .hamburger {
        display: block;
    }

    /* Hide the nav by default */
    .nav-links {
        position: absolute;
        top: 64px;
        right: 16px;
        background: white;
        box-shadow: 0px 4px 14px rgba(0,0,0,0.15);
        border-radius: 8px;
        padding: 8px;
        flex-direction: column;
        gap: 4px;
        display: none;       /* hidden by default */
        z-index: 999;
        min-width: 180px;
    }

    /* Shown when activated */
    .nav-links.open {
        display: flex;
        animation: fadeIn 0.2s ease-out;
    }
}

/* Small fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-links a:hover {
    background-color: rgba(8, 30, 98, 0.1); /* Subtle highlight */
}

.logo-title-container {
  display: flex;
  align-items: left;
  text-align: left;
  gap: 10px;
}

.header-page-title {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #0e1e3a; 
  text-align: left;
  opacity: 0.9;
  padding-top: 2px;
}

/* 🔹 Left: Logo + Title */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Progress bar container in header */
.header-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 12px;
    min-width: 140px;
}

/* Bar background */
.header-progress-bar {
    position: relative;
    width: 120px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

/* Filled part */
.header-progress-bar-inner {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: #34d399; /* green-ish */
    transition: width 0.15s ease-out;
}

/* Label (e.g. 3/10 (30%)) */
.header-progress-label {
    font-size: 0.8rem;
    color: #6c6c6c;
    white-space: nowrap;
}

