body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f4f8fb;
}

header {
    background: #c0d4ed;
    color: white;
    text-align: center;
    padding: 20px;
}

.logo {
    max-width: 350px;
    display: block;
    margin: 0 auto 10px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    background: #023e8a;
    padding: 12px;
	margin-bottom:0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

nav a:hover {
    color: #4caf50;
}

nav {
    margin-bottom: 0;
}

header + nav {
    margin-bottom: 0;
}

.dashboard-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0;
    padding: 10px 0;
    background: #f1f5f9; /* light grey instead of white */
    border-top: 1px solid #e0e6ed;
}

.dashboard-nav a {
    padding: 8px 16px;
    border-radius: 20px;
    background: #e6f4fb;
    color: #0077b6;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dashboard-nav a:hover {
    background: #00a8e8;
    color: white;
}

.hero {
    text-align: center;
    padding: 70px 20px;
    background: url('/images/swimming-pool.jpg') center/cover;
    color: white;
}

.nav-button {
    background: #e0f2fb;
    color: #0077b6;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
}

.nav-button:hover {
    background: #00a8e8;
    color: white;
}

.nav-button.active {
    background: #023e8a;
    color: white;
}

.card h3, 
.card-payments h3 {
    font-size: 28px;
    margin: 0;
    color: #0077b6;
}



.card p,
.card-payments p{
    margin: 5px 0 0;
}

.button {
    background: linear-gradient(135deg, #00a8e8, #0077b6);
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 119, 182, 0.3);
}

.section {
    padding: 50px 20px;
    text-align: center;
	max-width: 900px;
	margin: 0 auto;
}

footer {
    background: #023e8a;
    color: white;
    text-align: center;
    padding: 20px;
}

.timetable {
    width: 90%;
    margin: 30px auto;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.timetable th, .timetable td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.timetable th {
    background: #0077b6;
    color: white;
}

.available {
    color: green;
    font-weight: bold;
}

.full {
    color: red;
    font-weight: bold;
}

form input {
    padding: 12px;
    width: 250px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

form button {
    border: none;
    cursor: pointer;
}

select {
    padding: 12px;
    width: 270px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 180px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.card-payments {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 690px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.card-payments a{
    text-decoration: none;
    color: none;
}

.card a, 
.card a:visited,
.card-payments a, 
.card-payments a:visited {
    text-decoration: none;
    color: inherit;
}

.about-card p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.form-card {
    max-width: 900px;
    width: 100%;
    margin: 0 auto 30px auto;
    padding: 30px;
}

.card:hover {
    transform: translateY(-5px);
}

.about-card {
	max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 35px;
    text-align: left;
}

.small {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    font-size: 14px;
}

.card input {
    margin: 5px;
    padding: 8px;
    width: 150px;
}



.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 30px auto;
}

/* Cards */
.bulk-payment {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);

    display: flex;
    flex-direction: column;
}

/* Mobile */
@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
}

/* Headings aligned */
.bulk-payment h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Form layout */
.bulk-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Rows */
.form-row {
    display: flex;
    flex-direction: column;
}

/* Labels */
.form-row label {
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
}

/* Inputs + selects match width */
.form-row input,
.form-row select {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Buttons aligned */
.bulk-payment .button {
    margin: 15px auto 0 auto;
}

.bulk-payment h2 {
    margin-bottom: 15px;
}

/* Button tweak */
.bulk-payment .button {
    margin-top: 10px;
    width: fit-content;
}

/* Table container */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

/* Table */
.payments-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

/* Headers */
.payments-table th {
    background: #023e8a;
    color: white;
    padding: 12px;
    text-align: left;
}

/* Cells */
.payments-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* Rows */
.paid-row {
    background: #f1fdf5;
}

.unpaid-row {
    background: #fff5f5;
}

/* Status labels */
.status {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.status.paid {
    background: #d4edda;
    color: #155724;
}

.status.unpaid {
    background: #f8d7da;
    color: #721c24;
}

/* Small button */
.small-button {
    background: #00a8e8;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
	margin-bottom: 5px;
	display: inline-block;
}

.small-button.danger {
    background: #e53935;
    color: white;
}

.small-button.delete {
    background: #333;
    color: white;
}

.message-box {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background: #f1f9ff;
    border-left: 5px solid #00a8e8;
    border-radius: 8px;
    text-align: center;
}

/* Grid layout */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Card */
.lesson-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

/* Heading */
.lesson-card h3 {
    text-align: center;
    margin-bottom: 10px;
}

/* Info spacing */
.lesson-card p {
    margin: 5px 0;
}

/* Actions (buttons aligned properly) */
.lesson-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Button sizes */
.button.small {
    padding: 6px 12px;
    font-size: 13px;
}

/* Delete button */
.button.danger {
    background: #e63946;
}

.lessons-table {
    width: 90%;
    margin: 20px auto; /* 👈 THIS centers it */
    border-collapse: collapse;
}

.children-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.children-table th {
    background: #f5f5f5;
    text-align: left;
    padding: 10px;
}

.children-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.children-table tr:hover {
    background: #fafafa;
}

.children-table th,
.children-table td {
    text-align: left;
}

.children-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.children-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.children-table tbody tr:hover {
    background: #eef6ff;
}
.progress-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: #fafafa;
}

.progress-table th {
    background: #f5f5f5;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.progress-bar {
    background: #eee;
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    background: #4caf50;
    height: 100%;
}

.card-actions {
    margin-top: 10px;
}



.skill-name {
    text-align: left;
}

.success-message {
    background: #4caf50;
    color: white;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.save-container {
    margin-top: 20px;
}

.badge-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.badge-title {
    font-weight: 600;
}

.badge-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.badge-tab {
    padding: 8px 12px;
    background: #f1f1f1;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.badge-tab:hover {
    background: #ddd;
}

.badge-tab.active {
    background: #4caf50;
    color: white;
    font-weight: 600;
}

.badge-heading {
    margin-bottom: 15px;
    font-weight: 600;
}
.progress-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.progress-table {
    width: 100%;
    table-layout: fixed; /* 🔥 important */
}

.progress-table th,
.progress-table td {
    word-wrap: break-word;
}

.progress-table tr {
    border-bottom: 1px solid #ddd;
}

.progress-table td {
    padding: 8px;
}

/* first column = 50% */
.skill-col {
    width: 50%;
    text-align: left;
}

/* remaining columns share the rest */
.progress-table th:not(:first-child),
.progress-table td:not(:first-child) {
    width: auto;
}

.checkbox-field {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 👈 keeps it left aligned like inputs */
    gap: 10px;
}

.checkbox-label {
    white-space: nowrap; /* 👈 stops it breaking onto 2 lines */
}

.checkbox-field input {
    transform: scale(1.2);
}

.features {
    list-style: none;   /* removes bullets */
    padding-left: 0;    /* removes left indent */
    margin: 0;
}

.intensive-list {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.intensive-item {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.intensive-item + .intensive-item {
    border-top: 4px solid #eaf4fb;
}

.intensive-item-main {
    flex: 1;
}

.intensive-item-main h2 {
    margin: 0 0 12px;
    color: #0077b6;
    font-size: 24px;
}

.intensive-item-main p {
    margin: 8px 0;
    line-height: 1.5;
}

.intensive-item-action {
    min-width: 120px;
    text-align: center;
}

.intensive-booking-card {
    max-width: 700px;
    margin: 30px auto 0;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.intensive-booking-card h2 {
    margin-top: 0;
    color: #0077b6;
}

.intensive-booking-form {
    margin-top: 20px;
}

.intensive-booking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.intensive-booking-form select {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
.intensive-list {
        grid-template-columns: 1fr;
    }

    .intensive-item-action {
        width: 100%;
        text-align: left;
    }
}

.payment-summary-card {
    max-width: 600px;
    margin: 20px auto 30px;
    text-align: center;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.payment-summary-amount {
    font-size: 32px;
    font-weight: 700;
    color: #0077b6;
    margin: 10px 0 0;
}

.payment-child-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin: 0 auto 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.payment-actions-cell {
    min-width: 140px;
}

.payment-actions-cell .small-button {
    display: inline-block;
    margin-bottom: 8px;
}

.empty-note {
    color: #666;
    margin: 10px 0;
}

.progress-children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.progress-child-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: left;
}

.progress-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.progress-card-header h2 {
    margin: 0;
    font-size: 22px;
    color: #023e8a;
}

.current-badge-pill {
    background: #e6f4fb;
    color: #0077b6;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.progress-section-block {
    margin-bottom: 18px;
}

.progress-label {
    font-weight: 600;
    color: #023e8a;
    margin-bottom: 10px;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: #e9eef3;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill-bar {
    height: 100%;
    background: linear-gradient(90deg, #00a8e8, #4caf50);
    border-radius: 999px;
}

.progress-summary {
    margin-top: 10px;
    color: #555;
    font-size: 14px;
}

.earned-badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.earned-badge-pill {
    display: inline-block;
    background: #f0f8ff;
    color: #023e8a;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #d8e8f5;
}

@media (max-width: 768px) {
    .progress-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.dashboard-intro {
    text-align: center;
    color: #666;
    margin-top: 8px;
}

.parent-dashboard-summary {
    max-width: 1000px;
    margin: 25px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 20px;
}

.dashboard-summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dashboard-summary-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #023e8a;
}

.dashboard-big-number {
    font-size: 30px;
    font-weight: 700;
    color: #0077b6;
    margin: 0 0 16px;
}

.dashboard-panel {
    max-width: 1000px;
    margin: 0 auto 24px;
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.parent-children-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.dashboard-child-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: left;
}

.dashboard-child-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #023e8a;
}

.dashboard-badge-line {
    margin-bottom: 16px;
}

.dashboard-badge-pill {
    display: inline-block;
    margin-left: 8px;
    background: #e6f4fb;
    color: #0077b6;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.dashboard-progress-bar {
    width: 100%;
    height: 12px;
    background: #e9eef3;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.dashboard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00a8e8, #4caf50);
    border-radius: 999px;
}

.dashboard-progress-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
}

.dashboard-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .parent-dashboard-summary {
        grid-template-columns: 1fr;
    }
}	

.payment-section {
    max-width: 1000px;
    margin: 0 auto 28px;
}

.payment-section h2 {
    margin-bottom: 10px;
    color: #023e8a;
    border-bottom: 2px solid #e6eef5;
    padding-bottom: 6px;
}

.payments-tabs {
    max-width: 1000px;
    margin: 15px auto 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 18px;
    border-radius: 999px;
    background: #eef5fb;
    color: #023e8a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
}

.tab-btn:hover {
    background: #dcefff;
}

.tab-btn.active {
    background: #0077b6;
    color: white;
}

/* =========================
   MOBILE RESPONSIVENESS
   ========================= */

/* Tablets */
@media (max-width: 1024px) {

    .section {
        padding: 40px 15px;
    }

    .card {
        width: 100%;
        max-width: 300px;
    }
        .card-payments {
        width: 100%;
        max-width: 300px;
    }

    .hero {
        padding: 50px 15px;
    }
}


/* Phones */
@media (max-width: 768px) {

    /* NAVIGATION */
    nav {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }

    nav a {
        font-size: 14px;
    }

    .dashboard-nav {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px;
    }

    /* HERO */
    .hero {
        padding: 40px 15px;
        background-position: center;
    }

    .hero h1 {
        font-size: 24px;
    }

    /* CARDS */
    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        max-width: 400px;
    }

    /* TABLES (important for mobile scroll) */
    .timetable,
    .payments-table,
    .children-table,
    .progress-table,
    .lessons-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* FORMS */
	form input,
	select {
		padding: 12px;
		width: 100%;
		max-width: 320px;
		border-radius: 6px;
		border: 1px solid #ccc;
		display: block;
		margin: 0 auto;
	}

    /* BUTTONS */
	.button {
		width: auto;
		min-width: 120px;
		max-width: 250px;
		text-align: center;
		margin: 10px auto 0;
		display: inline-block;
	}

    /* PAYMENT GRID */
    .payment-grid {
        grid-template-columns: 1fr;
    }

    /* DASHBOARD SUMMARY */
    .parent-dashboard-summary {
        grid-template-columns: 1fr;
    }

    /* CHILD CARDS */
    .parent-children-grid {
        grid-template-columns: 1fr;
    }

    /* PROGRESS CARDS */
    .progress-children-grid {
        grid-template-columns: 1fr;
    }
}


/* Small phones */
@media (max-width: 480px) {

    header {
        padding: 15px;
    }

    .logo {
        max-width: 220px;
    }

    .hero h1 {
        font-size: 20px;
    }

    .card h3 {
        font-size: 22px;
    }

    .dashboard-big-number {
        font-size: 24px;
    }

    .payment-summary-amount {
        font-size: 26px;
    }

    .nav-button {
        font-size: 12px;
        padding: 5px 10px;
    }
	
    .button {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 20px;
    }
}