:root {
    --bg: #f4f1ed;
    --surface: white;
    --surface-hover: #f1f1f1;
    --border: #e8e2d9;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --accent: #f97316;
    --accent-hover: #ea6c00;
    --accent-surface: rgba(249, 115, 22, 0.08);
    --accent-soft: #fff0ea;
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --font: 'Inter', sans-serif;
    --radius: 16px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --status-done: #16a34a;
    --status-done-bg: rgba(22, 163, 74, 0.1);

    --status-progress: #f97316;
    --status-progress-bg: rgba(249, 115, 22, 0.1);

    --status-pending: #d97706;
    --status-pending-bg: rgba(217, 119, 6, 0.1);

    --status-none: rgba(0,0,0,0.3);
    --status-none-bg: rgba(0,0,0,0.05);
}

body {
    background: var(--bg);
    font-family: var(--font);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 48px 24px 80px;
    overflow-x: hidden;
    position: relative;
}

h1 {
    align-self: center;
    color: var(--text);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    animation: slideDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#accent {
    color: var(--accent);
}

h1::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 99px;
    background: var(--accent);
    margin: 10px auto 0;
    animation: growBar 0.8s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes growBar {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.calendar header {
    display: flex;
    justify-content: space-between;
    max-width: 70%;
    margin: 0 auto;
    padding-bottom: 15px;
}

#prev {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(249, 115, 22, 0.25);
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

#next {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(249, 115, 22, 0.25);
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

#prev:hover {
    background: #ffe4d0;
    transform: translateY(-2px);
}

#next:hover {
    background: #ffe4d0;
    transform: translateY(-2px);
}

.month-year {
    text-align: center;
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
    flex:1;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
    width: 90%;
    margin: 0 auto;
    margin-bottom: 15px;
}

input, select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    flex-grow: 1;
}

input:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    outline: none;
}

#taskID, .taskDescription, #dateTime, #completionTime, #hrs-row, #btn {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}  

.owners-row {
    display: flex;
    gap: 12px;
}

#ownerInput {
    flex-grow: 1;
}

#addOwner, #addTask {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

#addOwner:hover, #addTask:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

#clearBtn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: var(--radius);
    cursor: pointer;
}

#clearBtn:hover {
    background: var(--surface-hover);
}

#summary {
    display: flex;
    gap: 12px;
    max-width: 90%;
    margin: 0 auto;
    margin-bottom: 15px;
}

.pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    flex: 1;
    text-align: center;
    box-shadow: var(--shadow);
}

.pill span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.pill p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

#GenerateReport {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    display: block;
    margin: 0 auto 20px;
    font-size: 1rem;
}

#GenerateReport:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

#tasksTable {
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

th {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    background: var(--surface-hover);
}

td {
    padding: 14px 16px;
    font-size: 0.85rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

tr:hover {
    background: var(--surface-hover);
}

.owner-tag {
    background: var(--accent-surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.owner-tag span {
    cursor: pointer;
    color: rgba(249, 115, 22, 0.5);
    font-size: 1rem;
}

.owner-tag span:hover {
    color: var(--accent);
}

#ownersList {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

td {
    border: 1px solid var(--border);
    word-wrap: break-word;
    white-space: normal;
    max-width: 200px;
}