/* FitBooking — Styles globaux (UI) */

:root {
    --border: #e6e6e6;
    --bg: #fafafa;
    --text: #111;
    --muted: #666;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand a {
    text-decoration: none;
    font-weight: 800;
}

.muted {
    color: var(--muted);
}

.row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nav {
    display: flex;
    gap: 12px;
    padding-top: 0;
    padding-bottom: 12px;
}

.nav a {
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px;
}

.nav a.active, .nav a:hover {
    background: #f2f2f2;
}

.user-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.user-switch select, .user-switch button {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.user-switch button {
    cursor: pointer;
}

.btn-link {
    text-decoration: none;
    color: #0b62d6;
}

.btn-link:hover {
    text-decoration: underline;
}

h1 {
    margin: 8px 0 16px;
}

h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 15px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}

.course-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #f7f7f7;
}

.meta {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.meta li {
    margin: 4px 0;
}

.space-between {
    justify-content: space-between;
}

.actions {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 10px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
}

.btn.primary {
    background: #111;
    color: #fff;
    border-color: #111;
}

.btn.small {
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.msg {
    margin-top: 10px;
    min-height: 18px;
    font-size: 13px;
}

.msg.ok {
    color: #0a7a2f;
}

.msg.err {
    color: #b00020;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.input{
    width:100%;
    padding:10px 12px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
    margin-top:6px;
}
label{ display:block; font-weight:600; font-size:14px; }
.text-align{
    text-align: center;
}
#typeFilter {
    min-width: 180px;
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 8px;
}
.typeFilter{
    padding: 0 5px 5px 4px;
}

/* ===== Coach CRUD (form + table) ===== */

.page-title{
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    margin: 12px 0 18px;
    letter-spacing: -0.02em;
}

/* card wrapper */
.panel{
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

.panel + .panel{ margin-top: 18px; }

/* toolbar (title + add button) */
.toolbar{
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

/* form layout */
.form{
    max-width: 720px;
    margin: 0 auto;
}

.form .grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

@media (max-width: 720px){
    .form .grid{ grid-template-columns: 1fr; }
}

.field label{
    display: block;
    font-weight: 700;
    margin: 2px 0 6px;
}

.field input,
.field textarea,
.field select{
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 12px;
    background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    font-size: 15px;
}

.field textarea{ min-height: 90px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus{
    border-color: rgba(0,0,0,.38);
    box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

/* actions row */
.form-actions{
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* table */
.table-wrap{
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.08);
}

.table{
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
    background: #fff;
}

.table thead th{
    text-align: left;
    padding: 14px 14px;
    font-weight: 800;
    color: rgba(0,0,0,.75);
    border-bottom: 1px solid rgba(0,0,0,.08);
    white-space: nowrap;
}

.table tbody td{
    padding: 14px 14px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    vertical-align: middle;
}

.table tbody tr:hover{
    background: rgba(0,0,0,.02);
}


.table .actions{
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    white-space: nowrap;
}

.btn-danger{
    border-color: rgba(230, 57, 70, .35) !important;
}
.btn-danger:hover{
    border-color: rgba(230, 57, 70, .6) !important;
}
