:root {
    --navy: #052b55;
    --blue: #0b5cad;
    --light-blue: #eef6ff;
    --page: #f3f7fb;
    --text: #1c2b3a;
    --muted: #65788c;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; background: var(--page); color: var(--text); }
a { color: var(--blue); }

.wrapper { display: flex; min-height: 100vh; width: 100%; }
.sidebar {
    width: 270px;
    min-height: 100vh;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(180deg, var(--navy), #03182f);
    padding: 30px 20px 95px;
    color: white;
}
.club-logo h3 { font-size: 23px; font-weight: 800; line-height: 1.3; margin: 0; }
.club-logo p { margin-top: 8px; color: #b9d9f5; font-size: 14px; }
.sidebar hr { opacity: .25; margin: 25px 0; }
.sidebar a { display: flex; align-items: center; gap: 14px; padding: 13px 16px; color: white; text-decoration: none; border-radius: 14px; margin-bottom: 8px; transition: .2s; font-size: 15px; }
.sidebar a:hover { background: var(--blue); transform: translateX(4px); }
.sidebar i { font-size: 19px; }
.sidebar-label { margin: 24px 16px 10px; color: #7facd3; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.sidebar-bottom { position: absolute; bottom: 25px; color: #9fc4e5; font-size: 13px; }

.content { flex: 1; min-width: 0; }
.topbar { min-height: 90px; background: white; display: flex; align-items: center; justify-content: space-between; padding: 16px 40px; box-shadow: 0 5px 20px rgba(0,0,0,.08); }
.topbar h4 { margin: 0; color: var(--navy); font-weight: 800; }
.topbar span { color: var(--muted); font-size: 14px; }
.user-box { background: var(--navy); color: white; padding: 9px 16px; border-radius: 30px; display: flex; align-items: center; gap: 10px; }
.user-box > i { font-size: 25px; }
.user-box div { display: flex; flex-direction: column; line-height: 1.1; }
.user-box small { color: #b9d9f5; margin-top: 4px; }
.credit-pill { display: flex; align-items: center; gap: 7px; border-radius: 30px; padding: 10px 16px; background: #fff5d7; color: #7c5900; font-weight: 800; }
.page-content { padding: 35px; }

.card { border: none !important; border-radius: 20px !important; box-shadow: 0 8px 25px rgba(0,0,0,.08) !important; }
.stat-card { padding: 22px; display: flex; gap: 16px; align-items: center; height: 100%; }
.stat-card .icon { font-size: 34px; }
.stat-card h6 { color: var(--muted); white-space: nowrap; }
.stat-card h2 { color: var(--navy); font-weight: 800; margin-bottom: 0; }
.big-icon { font-size: 42px; }

.athlete-hero { background: linear-gradient(135deg, var(--navy), var(--blue)); color: white; border-radius: 24px; padding: 34px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 12px 30px rgba(5,43,85,.22); }
.athlete-hero h1 { margin: 8px 0; font-weight: 800; }
.athlete-hero p { margin: 0; color: #d8eaff; }
.hero-credit { min-width: 145px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 18px 25px; text-align: center; backdrop-filter: blur(5px); }
.hero-credit small, .hero-credit span { display: block; color: #d8eaff; }
.hero-credit strong { display: block; font-size: 44px; line-height: 1.05; }

.boat-option { display: block; height: 100%; }
.boat-option input { display: none; }
.boat-box { background: white; padding: 22px; border-radius: 18px; border: 2px solid #e2eaf3; cursor: pointer; transition: .2s; height: 100%; }
.boat-box:hover { border-color: var(--blue); transform: translateY(-3px); }
.boat-option input:checked + .boat-box { border-color: var(--navy); background: var(--light-blue); box-shadow: 0 0 0 3px rgba(11,92,173,.12); }
.boat-option.disabled .boat-box { opacity: .6; cursor: not-allowed; background: #f3f4f6; }
.boat-option.disabled .boat-box:hover { transform: none; border-color: #e2eaf3; }
.boat-box h5 { color: var(--navy); font-weight: 800; }

.btn { border-radius: 11px; }
.btn-primary { background: var(--navy); border-color: var(--navy); padding: 10px 20px; }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); }
.form-control, .form-select { border-radius: 12px; padding: 11px 12px; border: 1px solid #d9e3ef; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(11,92,173,.15); }
.input-group-text { border-radius: 12px 0 0 12px; background: #f1f5f9; border-color: #d9e3ef; }

.table { background: white; border-radius: 15px; overflow: hidden; }
.table thead { background: var(--navy); color: white; }
.table th { padding: 14px; white-space: nowrap; }
.table td { padding: 14px; vertical-align: middle; }
.table > :not(caption) > * > * { border-bottom-color: #e8eef4; }

.availability-table th { background: var(--navy); color: white; white-space: nowrap; }
.availability-table td { min-width: 75px; }
.busy, .free { display: inline-block; border-radius: 8px; padding: 5px 8px; font-size: 12px; font-weight: 700; }
.busy { background: #fde2e2; color: #b42318; }
.free { background: #dcfce7; color: #16733c; }

.summary-badge { background: white; border: 1px solid #dfe8f2; border-radius: 14px; padding: 12px 18px; color: var(--muted); }
.summary-badge strong { color: var(--navy); margin-right: 5px; }
.athlete-name { display: flex; align-items: center; gap: 12px; }
.athlete-name > div { display: flex; flex-direction: column; }
.athlete-name small { color: var(--muted); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--light-blue); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.credit-count { min-width: 45px; display: inline-flex; justify-content: center; background: #fff5d7; color: #7c5900; border-radius: 18px; padding: 7px 13px; font-size: 17px; font-weight: 800; }
.credit-form { display: grid; grid-template-columns: 78px auto auto; gap: 8px; }
.reservation-owner { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--light-blue); }
.reservation-owner div { display: flex; flex-direction: column; }
.reservation-owner small { color: var(--muted); }
.credit-notice { display: flex; gap: 14px; align-items: center; padding: 17px 20px; border-radius: 16px; }
.credit-notice i { font-size: 28px; }
.credit-notice div { display: flex; flex-direction: column; }
.credit-notice.has-credit { background: #e7f8ef; color: #12643a; }
.credit-notice.no-credit { background: #fdecec; color: #9d2626; }

.auth-body { min-height: 100vh; background: #eff5fb; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(330px, .85fr) minmax(480px, 1.15fr); }
.auth-brand { background: linear-gradient(145deg, #03182f, var(--navy), var(--blue)); color: white; padding: 10vw 7vw; display: flex; flex-direction: column; justify-content: center; }
.auth-logo { font-size: 64px; margin-bottom: 20px; }
.auth-brand h1 { font-weight: 800; max-width: 460px; }
.auth-brand > p { color: #c9e1f6; font-size: 18px; margin: 10px 0 28px; }
.auth-feature { display: flex; gap: 10px; align-items: center; color: #e4f1fc; margin: 7px 0; }
.auth-feature i { color: #57d68d; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: min(100%, 520px); background: white; padding: 42px; border-radius: 26px; box-shadow: 0 18px 50px rgba(5,43,85,.13); }
.auth-card h2 { color: var(--navy); font-weight: 800; }
.eyebrow { color: var(--blue); font-weight: 800; letter-spacing: .13em; font-size: 11px; }

#calendar { min-height: 650px; }
.fc .fc-button-primary { background: var(--navy); border-color: var(--navy); }

@media (max-width: 1100px) {
    .sidebar { width: 230px; }
    .topbar { padding: 16px 25px; }
    .page-content { padding: 25px; }
}

@media (max-width: 850px) {
    .wrapper { display: block; }
    .sidebar { width: 100%; min-height: auto; padding: 18px; position: static; }
    .club-logo p, .sidebar-bottom { display: none; }
    .sidebar hr { margin: 14px 0; }
    .sidebar a { display: inline-flex; margin: 4px; padding: 10px 12px; }
    .sidebar-label { display: none; }
    .topbar { align-items: flex-start; gap: 15px; flex-direction: column; }
    .topbar > .d-flex { flex-wrap: wrap; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { padding: 50px 30px; }
    .auth-panel { padding: 28px 18px; }
    .athlete-hero { align-items: flex-start; gap: 25px; flex-direction: column; }
}

@media (max-width: 576px) {
    .page-content { padding: 18px; }
    .topbar { padding: 16px 18px; }
    .user-box { max-width: 100%; }
    .auth-card { padding: 28px 22px; }
    .auth-brand { display: none; }
    .credit-form { grid-template-columns: 1fr; }
}

/* Koltuk bazlı tekne rezervasyonu */
.reservation-rule-alert { display: flex; align-items: flex-start; gap: 14px; border: 1px solid #f3ce77; background: #fff8e7; color: #6f4b00; }
.reservation-rule-alert .rule-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: #ffe6a8; font-size: 20px; }

.mini-boat-seats { min-height: 34px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 16px; border-radius: 50% 50% 40% 40% / 65% 65% 35% 35%; background: linear-gradient(180deg, #0d659e, #073d68); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.mini-boat-seats span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; background: #ecf7ff; border: 2px solid #9fcdec; color: #063e68; font-size: 10px; font-weight: 800; }
.mini-boat-seats.large { width: fit-content; min-width: 115px; justify-content: center; padding: 9px 22px; }
.mini-boat-seats.large span { width: 24px; height: 24px; }

.seat-picker-section { border-top: 1px solid #e5edf5; padding-top: 22px; }
.seat-placeholder { border: 2px dashed #cbd8e6; background: #f8fbfe; color: var(--muted); border-radius: 18px; padding: 28px; text-align: center; }
.rowing-boat-visual { position: relative; margin: 0 auto; width: min(100%, 760px); min-height: 150px; padding: 48px 72px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #0b6ba6 0%, #07527f 52%, #063c61 100%); border: 5px solid #d5e9f5; border-radius: 52% 52% 40% 40% / 32% 32% 68% 68%; box-shadow: 0 14px 28px rgba(5,43,85,.22), inset 0 0 0 3px rgba(255,255,255,.15); overflow: hidden; }
.rowing-boat-visual::before, .rowing-boat-visual::after { content: ""; position: absolute; top: 50%; width: 95px; height: 4px; background: #8b5e36; opacity: .8; }
.rowing-boat-visual::before { left: 10px; transform: rotate(-10deg); }
.rowing-boat-visual::after { right: 10px; transform: rotate(10deg); }
.boat-bow, .boat-stern { position: absolute; top: 13px; color: #dff3ff; font-size: 9px; font-weight: 800; letter-spacing: .15em; opacity: .8; }
.boat-bow { left: 38px; }
.boat-stern { right: 38px; }
.seat-buttons { display: flex; flex: 1; justify-content: center; gap: clamp(9px, 3vw, 34px); z-index: 2; }
.boat-seat { width: clamp(58px, 9vw, 82px); height: 66px; border: 3px solid transparent; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: .18s ease; box-shadow: 0 6px 12px rgba(0,0,0,.18); }
.boat-seat span { font-size: 22px; font-weight: 900; line-height: 1; }
.boat-seat small { margin-top: 5px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.boat-seat.free { background: #dcfce7; color: #166534; cursor: pointer; }
.boat-seat.free:hover { transform: translateY(-4px); background: #bbf7d0; }
.boat-seat.free.selected { background: #dbeafe; color: #123c77; border-color: #fff; box-shadow: 0 0 0 4px #1d4ed8, 0 8px 18px rgba(0,0,0,.22); }
.boat-seat.occupied { background: #fee2e2; color: #991b1b; cursor: not-allowed; opacity: .85; }
.seat-legend { display: flex; justify-content: center; gap: 20px; color: var(--muted); font-size: 12px; }
.seat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.seat-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.free-dot { background: #22c55e; }
.selected-dot { background: #2563eb; }
.occupied-dot { background: #ef4444; }
.seat-number-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 6px 11px; background: #e7f2ff; color: #073d68; font-weight: 800; }

.package-info-card { height: 100%; display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: white; border: 1px solid #dfe8f2; border-radius: 15px; }
.package-info-card .package-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; background: var(--light-blue); color: var(--navy); font-weight: 900; font-size: 20px; }
.package-info-card > div:last-child { display: flex; flex-direction: column; }
.package-info-card small { color: var(--muted); margin-top: 2px; }
.package-form { display: grid; grid-template-columns: minmax(190px, 1fr) auto auto; gap: 8px; align-items: center; }
.duration-field { display: flex; align-items: center; gap: 5px; }
.duration-field input { width: 72px; }
.duration-field small { color: var(--muted); }
.unlimited-badge { display: inline-flex; padding: 7px 12px; border-radius: 18px; background: #e7f8ef; color: #12643a; font-weight: 800; }
.availability-link { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.availability-link small { color: var(--muted); font-size: 10px; }

@media (max-width: 700px) {
    .rowing-boat-visual { min-height: 130px; padding: 44px 28px; }
    .boat-bow, .boat-stern { display: none; }
    .seat-buttons { gap: 7px; }
    .boat-seat { width: 54px; height: 60px; }
    .package-form { grid-template-columns: 1fr; }
    .duration-field input { width: 100%; }
    .reservation-rule-alert { align-items: flex-start; }
}

/* Yönetici: yaklaşan iki gün ve manuel kredi */
.upcoming-admin-card { border-left: 5px solid var(--blue) !important; }
.admin-day-block { border: 1px solid #e1eaf3; border-radius: 16px; overflow: hidden; }
.admin-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #f7fbff; border-bottom: 1px solid #e1eaf3; }
.admin-day-heading > div { display: flex; align-items: center; gap: 10px; }
.admin-day-label { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; background: var(--navy); color: white; font-size: 12px; font-weight: 800; }
.admin-day-block .table { border-radius: 0; }
.manual-credit-info-card { border-color: #b9d9f5; background: #f8fcff; }
.manual-credit-form { display: grid; grid-template-columns: 90px minmax(150px, 1fr); gap: 8px; align-items: center; }

@media (max-width: 700px) {
    .manual-credit-form { grid-template-columns: 1fr; }
    .admin-day-heading { align-items: flex-start; }
    .admin-day-heading > div { align-items: flex-start; flex-direction: column; gap: 5px; }
}
