/* ===== Vaatwasser Dienst - Vrolijke Stijl ===== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    --bg: #f0f4ff;
    --card-bg: #ffffff;
    --text: #2d3436;
    --text-muted: #636e72;
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #e17055;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
    --card-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container { max-width: 800px; margin: 0 auto; padding: 1.5rem; }

/* ===== HOME PAGE ===== */
.hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6c5ce7, #e17055, #fdcb6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.teams-grid {
    display: grid;
    gap: 1.5rem;
    padding: 1rem 0;
}

.team-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-card-home {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border-left: 6px solid var(--card-color, #6c5ce7);
    transition: transform 0.2s, box-shadow 0.2s;
}

.team-card-home:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.team-card-home.today {
    border-left-width: 8px;
    background: linear-gradient(135deg, #fff, #fff3e0);
}

.team-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-card-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.today-tag {
    background: var(--danger);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.team-day {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.3rem 0 0.8rem;
}

.mini-slot {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    border-top: 1px solid #f0f0f0;
}

.mini-slot:first-of-type { border-top: none; }

.mini-time {
    font-weight: 700;
    color: var(--primary);
    min-width: 45px;
}

.mini-name {
    flex: 1;
    color: var(--text-muted);
}

.mini-person {
    font-weight: 700;
}

/* ===== TEAM PAGE ===== */
.team-header-hero {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
}

.team-header-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--team-color, #6c5ce7);
}

.team-day-badge {
    display: inline-block;
    background: var(--team-color, #6c5ce7);
    color: white;
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.today-badge {
    display: inline-block;
    background: var(--danger);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: 0.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.assignments-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin: 1.5rem 0;
}

.assignments-card h2 {
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, var(--team-color, #6c5ce7), var(--primary-light));
    color: white;
    font-size: 1.2rem;
}

.slot-list { padding: 0.5rem 0; }

.slot-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.slot-item:last-child { border-bottom: none; }
.slot-item:hover { background: #f8f9ff; }

.slot-time {
    background: var(--team-color, #6c5ce7);
    color: white;
    padding: 0.4rem 0.7rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
}

.slot-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slot-name {
    font-size: 1rem;
    font-weight: 700;
}

.slot-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.slot-person {
    background: #f0f4ff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    color: var(--primary);
}

.team-members-card, .video-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.team-members-card h3, .video-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--team-color, #6c5ce7);
}

.member-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chip {
    background: #f0f4ff;
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--primary-light);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

.video-title {
    text-align: center;
    margin-top: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ===== ADMIN ===== */
.admin-page {
    background: #f5f6fa;
}

.admin-nav {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    flex-wrap: wrap;
}

.admin-nav a {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.admin-nav a:hover, .admin-nav a.active {
    background: #eef0ff;
    color: var(--primary);
}

.admin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
}

.admin-container h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* ===== Login ===== */
.login-box {
    max-width: 400px;
    margin: 5rem auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    text-align: center;
}

.login-box h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.login-box input {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

.login-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.back-link {
    display: block;
    margin-top: 1.2rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

/* ===== Cards ===== */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

/* ===== Team Card in Admin ===== */
.team-card {
    padding: 0;
    overflow: hidden;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: #fafbff;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.team-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.team-link {
    text-decoration: none;
    color: var(--text);
}

.team-link:hover {
    color: var(--primary);
}

.team-day, .team-slug {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 1rem;
}

.team-actions {
    display: flex;
    gap: 0.5rem;
}

.week-schedule {
    padding: 1rem 1.5rem;
}

.week-schedule h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

/* ===== Team Selector ===== */
.team-selector {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.team-selector select {
    padding: 0.6rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    flex: 1;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}

th {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Forms ===== */
form {
    margin: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.form-row {
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-row > div {
    flex: 1;
    min-width: 120px;
}

.form-row label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
}

input, select, textarea {
    padding: 0.6rem 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

.inline-form {
    margin-bottom: 1rem;
}

.slot-form {
    padding: 1rem 0;
}

.slot-form h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 0.5rem 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108,92,231,0.3);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-warning {
    background: linear-gradient(135deg, #fdcb6e, #f39c12);
}

.btn-warning:hover {
    box-shadow: 0 4px 15px rgba(253,203,110,0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #e17055, #d63031);
}

.btn-danger:hover {
    box-shadow: 0 4px 15px rgba(214,48,49,0.3);
}

.btn-success {
    background: linear-gradient(135deg, #00b894, #00cec9);
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4f5e9;
    color: #00b894;
    border: 2px solid #a8e6cf;
}

.alert-error {
    background: #ffeaa7;
    color: #d63031;
    border: 2px solid #fdcb6e;
}

/* ===== Text helpers ===== */
.text-muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 2rem 0;
}

.admin-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.admin-link:hover {
    opacity: 1;
}

/* ===== Error page ===== */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.error-box {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.error-box h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.error-box p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* ===== Create form ===== */
.create-form {
    text-align: left;
}

.create-form h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.create-form label {
    display: block;
    margin-top: 0.8rem;
    font-weight: 600;
}

.create-form input,
.create-form select {
    margin-top: 0.3rem;
}

.create-form .btn {
    margin-top: 1rem;
    width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .team-header-hero h1 { font-size: 1.8rem; }
    .slot-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .slot-person { align-self: flex-start; }
    .admin-nav { gap: 0.3rem; }
    .admin-nav a { font-size: 0.8rem; padding: 0.4rem 0.7rem; }
    .form-row { flex-direction: column; }
}
