body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #222;
    margin: 0;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

.tracker {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tracker h2 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tracker label {
    font-weight: 500;
    margin-bottom: 0.2rem;
    display: block;
    font-size: 0.9rem;
    color: #1f2937;
}

.tracker input,
.tracker textarea {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    border-radius: 4px;
    outline: none;
}

.tracker input:focus,
.tracker textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}

.tracker textarea { min-height: 60px; }

.tracker button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

#submitBtn { background: #2563eb; color: #fff; }
#submitBtn:hover { background: #1e40af; }

#cancelEditBtn { background: #6b7280; color: #fff; }
#cancelEditBtn:hover { background: #4b5563; }

#exportBtn { background: #10b981; color: #fff; }
#exportBtn:hover { background: #059669; }

.sessionList {
    max-width: 700px;
    margin: 2rem auto 0;
}

.sessionList h2 { margin-bottom: 0.5rem; }

.sessionList ul { list-style: none; padding-left: 0; }

.sessionList li {
    margin-bottom: 0.7rem;
    line-height: 1.4;
    padding: 1rem;
    border-left: 5px solid #2563eb;
    background: #ffffff;
    border-radius: 4px;
}

li .exercise { font-weight: 600; color: #111827; }
li .pain { font-weight: 600; }

li .pain-high { color: #b91c1c; }
li .pain-medium { color: #f59e0b; }
li .pain-low { color: #10b981; }

.patient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 1.5rem auto;
}

.patientCard {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.patientHeader h2 { margin: 0; font-size: 1.1rem; color: #111827; }
.patientHeader p { margin: 0.2rem 0 0; font-size: 0.85rem; color: #b91c1c; font-weight: 600; }

.patientStats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
}

.stat-label { font-weight: 600; color: #111827; }
.stat-value { font-weight: 600; }

.adherence-good { color: #10b981; }
.adherence-ok { color: #f59e0b; }
.adherence-low { color: #b91c1c; }

.rom-good { color: #10b981; }
.rom-ok { color: #f59e0b; }
.rom-low { color: #b91c1c; }

.patientNotes {
    font-size: 0.9rem;
    color: #1f2937;
    padding-top: 0.5rem;
    border-top: 1px solid #d1d5db;
}
