/* Custom Sport Theme for Training Planner */

/* Root variables for easy color management */
:root {
    --tennis-green: #34c759; /* Brighter, fresh green for tennis */
    --accent-blue: #007bff; /* Deep blue for focus */
    --bg-light: #f9fafb; /* Very light background for a clean and bright look */
    --navy-dark: #1a1e23; /* Darker text for contrast */
    --white: #ffffff; /* Clean white */
    --highlight-yellow: #ffcc00; /* Bright yellow for highlights */
    --border-color: rgba(0, 0, 0, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.9); /* Slight transparency for glassmorphism */
}

/* Body and Background */
body {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--navy-dark);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
h1, h2, h3, h4, h5, h6 {
    color: var(--navy-dark);
    font-weight: bold;
}

h2, h3 {
    letter-spacing: -0.5px;
}

/* Card Styling */
.card {
    border-radius: 16px;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.15);
    }

/* Form Controls */
.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    background-color: var(--white);
    transition: all 0.3s;
}

    .form-control:focus {
        border-color: var(--accent-blue);
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
    }

/* Buttons */
.btn-primary {
    background-color: var(--accent-blue);
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

.btn-success {
    background-color: var(--tennis-green);
    border: none;
    color: var(--white);
    font-weight: bold;
}

    .btn-success:hover {
        background-color: #28a745;
        color: var(--white);
    }

/* Category Card Styling */
.category-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--navy-dark);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
}

.btn-check:checked + .category-card {
    border-color: var(--accent-blue);
    background: #eef5ff;
    color: var(--accent-blue);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.category-card .icon-chip {
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Input Focus */
.form-floating > .form-control:focus {
    background-color: var(--white) !important;
    box-shadow: none;
    border: 2px solid var(--accent-blue) !important;
}

/* Modal Styling */
.modal-content {
    border-radius: 15px;
    border: 1px solid var(--border-color);
    background: var(--white);
}

.modal-header {
    background-color: var(--accent-blue);
    color: var(--white);
}

.modal-body {
    background: var(--white);
}

/* Hero and Background Colors */
.app-hero {
    background: radial-gradient(circle at 10% 15%, rgba(13,110,253,0.10) 0%, rgba(255,255,255,1) 55%), radial-gradient(circle at 90% 10%, rgba(220,248,54,0.18) 0%, rgba(255,255,255,1) 55%);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* Accent and Highlighting */
.app-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.icon-chip {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.chip-green {
    background: rgba(52, 199, 89, 0.45);
    color: var(--white);
}

.chip-blue {
    background: rgba(0, 123, 255, 0.12);
    color: var(--accent-blue);
}

.chip-dark {
    background: rgba(26, 30, 35, 0.08);
    color: var(--navy-dark);
}

.home-feature {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.home-action {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.home-kpi {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--navy-dark);
}

.card-body {
    padding: 20px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .category-card .icon-chip {
        font-size: 1.2rem;
    }

    .home-kpi {
        font-size: 1rem;
    }

    .card-body {
        padding: 15px;
    }
}
