/* ===========================
   ACUTEC ATS - FULL STYLESHEET
   =========================== */

/* GLOBAL ------------------- */
body {
    margin: 0;
    padding: 0;
    background: #f4f6f5;
    font-family: Arial, sans-serif;
}

/* TOP BAR ------------------ */
#topBar {
    background: #0b5f57;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#topBar .title {
    font-size: 20px;
    font-weight: bold;
}

#logoutBtn {
    background: white;
    color: #0b5f57;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

#logoutBtn:hover {
    opacity: 0.85;
}

/* SIDE NAV ----------------- */
#sideNav {
    width: 220px;
    background: #0b5f57;
    color: white;
    position: fixed;
    top: 55px;
    bottom: 0;
    left: 0;
    padding: 20px 10px;
}

#sideNav a {
    display: block;
    padding: 10px 12px;
    margin-bottom: 8px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
}

#sideNav a:hover,
#sideNav a.active {
    background: rgba(255, 255, 255, 0.15);
}

/* MAIN CONTENT ------------- */
#main {
    margin-left: 240px;
    padding: 20px;
}

h1 {
    margin-top: 0;
}

/* CARDS -------------------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card {
    background: white;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.card h2 {
    margin: 0 0 10px 0;
}

.muted {
    color: #6b7280;
}

.pill {
    background: #e7f3f2;
    color: #0b5f57;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

/* LISTS -------------------- */
.cleanList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cleanList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #fff;
}

/* CALENDAR ----------------- */
.calendarWrap {
    margin-top: 8px;
}

.calendarControls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.calendarControls button {
    background: #0b5f57;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.calendarControls button:hover {
    opacity: 0.85;
}

#monthLabel {
    font-weight: bold;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.dow {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

.day {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.day:hover {
    border-color: #0b5f57;
}

.day.inactive {
    opacity: 0.35;
    cursor: default;
}

.day.selected {
    border-color: #0b5f57;
    box-shadow: 0 0 0 2px rgba(11, 95, 87, 0.15) inset;
}

/* TODO --------------------- */
.todoRow {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.todoRow input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.todoRow button {
    background: #0b5f57;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
}

.todoRow button:hover {
    opacity: 0.85;
}

/* BUTTONS ------------------ */
button.danger,
.dangerSmall {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

button.danger:hover,
.dangerSmall:hover {
    opacity: 0.85;
}

/* TABLES + INPUTS ---------- */
table {
    width: 100%;
    border-collapse: collapse;
}

td, th {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

textarea {
    width: 100%;
    min-height: 60px;
    resize: vertical;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-family: Arial, sans-serif;
}

input, select {
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

/* MOBILE ------------------- */
@media (max-width: 900px) {
    #sideNav {
        display: none;
    }

    #main {
        margin-left: 0;
        padding: 14px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Clickable links */
a.link {
    text-decoration: underline;
    cursor: pointer;
}