/* Base Styles */
:root {
    --primary-color: #2e8b57; /* Green */
    --primary-hover: #236b43;
    --secondary-color: #ffa500; /* Yellow/Orange */
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --background-color: #f8f8f8;
    --card-background: #fff;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
}

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

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 4rem; /* Adjust this value based on your bottom nav height */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--card-background);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.green {
    color: var(--primary-color);
}

.yellow {
    color: var(--secondary-color);
}

.user-menu {
    display: flex;
    align-items: center;
}

/* Main Content */
main {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

/* Cards */
.card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Wallet Card */
.wallet-card {
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    /* padding: 1.5rem; */
    margin-bottom: 1rem;
}

.wallet-balance {
    text-align: center;
}

.balance-amount {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0 1rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2);
}

.form-footer {
    margin-top: 1rem;
    text-align: center;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline {
    color: var(--primary-color);
    background-color: white;
    border-color: var(--primary-color);
}

.btn-outline:hover {
    color: white;
    background-color: var(--primary-color);
}

.btn-danger {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    color: white;
    background-color: var(--danger-color);
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Sessions List */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.session-date {
    font-weight: bold;
    font-size: 1.1rem;
}

.session-time {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.session-details {
    margin-bottom: 1rem;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem 0;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 1.5rem;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}


.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.875rem;
}

.bottom-nav a.active {
    color: var(--primary-color);
}

.bottom-nav .icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Alerts */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Date and Time Selection */
.date-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.current-date {
    font-weight: bold;
    font-size: 1.1rem;
}

.time-slots {
    margin-bottom: 1.5rem;
}

.time-slots h3 {
    background-color: #f0f8f0;
    padding: 0.5rem;
    margin: 1rem 0 0.5rem;
    border-radius: 4px;
    color: var(--primary-color);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.time-slot {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.time-slot:hover {
    border-color: var(--primary-color);
}

.time-slot.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Booking Steps */
.booking-steps {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.booking-steps .step {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    color: var(--light-text);
    position: relative;
}

.booking-steps .step.active {
    color: var(--primary-color);
    font-weight: bold;
}

.booking-steps .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    transform: translateY(-50%) rotate(45deg);
}

.booking-step {
    margin-bottom: 1.5rem;
}

.booking-step.hidden {
    display: none;
}

/* Coach Selection */
.coach-selection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.coach-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.coach-card:hover {
    border-color: var(--primary-color);
}

.coach-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(46, 139, 87, 0.1);
}

.coach-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.coach-title {
    color: var(--light-text);
}

.coach-experience {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Booking Summary */
.booking-summary {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-item .label {
    font-weight: 500;
}

/* Payment Method */
.payment-method {
    margin-bottom: 1.5rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input {
    margin-right: 0.5rem;
}

/* Media Queries */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
        margin: 0 auto;
    }
    
    .coach-selection {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 992px;
    }
}
