:root {
    --primary-color: #115cb9;
    --primary-container: #d7e2ff;
    --on-primary-container: #004fa6;
    --background-color: #f0f4f8;
    --sidebar-bg: #ffffff;
    --surface-container: #ffffff;
    --on-surface-color: #1a1c1e;
    --on-surface-variant-color: #42474e;
    --outline-color: #d1d5db;
    --success-color: #2e7d32;
    --warning-color: #ed6c02;
    --danger-color: #d32f2f;
    --font-headline: "Manrope", sans-serif;
    --font-body: "Inter", sans-serif;
}

/* General Reset & Body */
body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--on-surface-color);
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20
}

/* Login Page Layout */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.login-card {
    background: var(--surface-container);
    padding: 2.5rem 3rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.login-card h1 {
    font-family: var(--font-headline);
    font-size: 1.75rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
}
.login-card p {
    margin: 0 0 2.5rem 0;
    color: var(--on-surface-variant-color);
}
.input-group {
    text-align: left;
    margin-bottom: 1.5rem;
}
.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--outline-color);
    border-radius: 0.25rem;
    font-size: 1rem;
    box-sizing: border-box;
}
.btn {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    opacity: 0.9;
}
.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--outline-color);
    color: var(--on-surface-variant-color);
}

/* App Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--outline-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex-shrink: 0;
}
.sidebar-header {
    margin-bottom: 2rem;
}
.sidebar-header .logo {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin:0;
}
.sidebar-nav {
    flex-grow: 1;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--on-surface-variant-color);
    font-weight: 500;
    transition: all 0.2s;
}
.nav-link:hover {
    background-color: #f4f4f5;
}
.nav-link.active {
    background-color: var(--primary-container);
    color: var(--on-primary-container);
    font-weight: 600;
}
.sidebar-footer a {
    width: 100%;
    box-sizing: border-box;
}

.main-content {
    flex-grow: 1;
    padding: 2.5rem;
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.page-header h1 {
    margin: 0;
    font-family: var(--font-headline);
}
.page-title-context {
    font-size: 1rem;
    font-weight: 500;
    color: var(--on-surface-variant-color);
    margin-left: 0.5rem;
}

/* Components */
.card {
    background-color: var(--surface-container);
    border-radius: 0.75rem;
    border: 1px solid var(--outline-color);
    margin-bottom: 2rem;
}
.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--outline-color);
}
.card-header h2 {
    margin: 0;
    font-size: 1.25rem;
}
.card-body {
    padding: 1.5rem;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--outline-color);
}
.data-table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--on-surface-variant-color);
    background-color: #f9fafb;
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}
.status-chip {
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}
.status-ongoing { background-color: #e0f2fe; color: #0c4a6e; }
.status-completed { background-color: #dcfce7; color: #166534; }
.status-pending { background-color: #fefce8; color: #854d0e; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.form-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 0.5rem;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.modal-header h2 {
    margin: 0;
}
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover,
.close-button:focus {
    color: black;
}
.check-table td {
    text-align: center;
}
