/**
 * MLR Project - Frontend Styles
 */

/* Booking Form */
.mlr-booking-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mlr-form-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mlr-form-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    color: #333;
}

.mlr-form-row {
    margin-bottom: 15px;
}

.mlr-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.mlr-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
}

.mlr-form-control:focus {
    border-color: #0078d7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.1);
}

.mlr-hidden {
    display: none;
}

.mlr-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #0078d7;
    border-radius: 50%;
    animation: mlr-spin 1s infinite linear;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes mlr-spin {
    to {
        transform: rotate(360deg);
    }
}

.mlr-error-message {
    display: block;
    margin-top: 5px;
    color: #e53935;
    font-size: 13px;
}

.mlr-success {
    padding: 10px 15px;
    margin-bottom: 20px;
    background-color: #e8f5e9;
    border-left: 3px solid #43a047;
    color: #2e7d32;
    border-radius: 3px;
}

.mlr-error {
    padding: 10px 15px;
    margin-bottom: 20px;
    background-color: #ffebee;
    border-left: 3px solid #e53935;
    color: #c62828;
    border-radius: 3px;
}

.mlr-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0078d7;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mlr-button:hover {
    background-color: #0067b8;
}

.mlr-button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Price Display */
.mlr-price-display {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 15px 0;
}

.mlr-price-display .currency {
    font-size: 18px;
    font-weight: 400;
    color: #666;
}

/* Credits Section */
.mlr-credits-section {
    background-color: #f0f8ff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.mlr-credits-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mlr-credits-warning {
    color: #e53935;
    font-size: 13px;
    margin-top: 5px;
}

/* Calendar */
.mlr-calendar {
    max-width: 800px;
    margin: 0 auto;
}

.ui-datepicker {
    width: 100% !important;
    max-width: 800px;
    font-size: 14px !important;
}

.ui-datepicker .ui-datepicker-header {
    background-color: #0078d7;
    color: #fff;
    border: none;
}

.ui-datepicker .ui-datepicker-title {
    font-weight: 600;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    background-color: transparent !important;
    cursor: pointer;
}

.ui-datepicker th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
}

.ui-datepicker td {
    padding: 2px;
}

.ui-datepicker td a {
    text-align: center !important;
    border-radius: 3px;
}

.ui-datepicker td a.ui-state-active {
    background-color: #0078d7 !important;
    color: #fff !important;
}

.ui-datepicker td a.ui-state-hover {
    background-color: #e9f4ff !important;
    color: #0078d7 !important;
}

.mlr-date-available a {
    background-color: #e8f5e9 !important;
}

.mlr-date-unavailable a {
    background-color: #ffebee !important;
    color: #c62828 !important;
    text-decoration: line-through !important;
    cursor: default !important;
}

/* Time Slots */
.mlr-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.mlr-time-slot {
    flex: 1 0 calc(25% - 10px);
    min-width: 100px;
    padding: 10px;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mlr-time-slot:hover {
    background-color: #e9f4ff;
}

.mlr-time-slot.selected {
    background-color: #0078d7;
    color: #fff;
}

.mlr-time-slot.disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .mlr-time-slot {
        flex: 1 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .mlr-time-slot {
        flex: 1 0 100%;
    }
}

/* Member Dashboard */
.mlr-dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

.mlr-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mlr-dashboard-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.mlr-credits-balance {
    padding: 8px 15px;
    background-color: #0078d7;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
}

.mlr-dashboard-tabs {
    margin-bottom: 20px;
}

.mlr-tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.mlr-tab-button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mlr-tab-button:hover {
    color: #0078d7;
}

.mlr-tab-button.active {
    color: #0078d7;
    border-bottom-color: #0078d7;
}

.mlr-tab-panel {
    display: none;
}

.mlr-tab-panel.active {
    display: block;
}

.mlr-bookings-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.mlr-bookings-table th,
.mlr-bookings-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.mlr-bookings-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.mlr-bookings-table tr:hover {
    background-color: #f9f9f9;
}

.mlr-action-button {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mlr-cancel-booking {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.mlr-cancel-booking:hover {
    background-color: #ffcdd2;
}

/* Package Cards */
.mlr-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mlr-package-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mlr-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mlr-package-header {
    padding: 15px;
    background-color: #0078d7;
    color: #fff;
    text-align: center;
}

.mlr-package-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.mlr-package-price {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0 0;
}

.mlr-package-content {
    padding: 20px;
}

.mlr-package-credits {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.mlr-package-description {
    color: #666;
    margin-bottom: 20px;
}

.mlr-package-card .mlr-button {
    width: 100%;
}

/* Classes Grid */
.mlr-classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mlr-class-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mlr-class-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.mlr-class-time {
    font-size: 14px;
    color: #0078d7;
    margin-bottom: 10px;
}

.mlr-class-instructor {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.mlr-class-spots {
    font-size: 13px;
    color: #43a047;
    margin-bottom: 10px;
}

.mlr-class-full {
    font-size: 13px;
    color: #e53935;
    margin-bottom: 10px;
}

.mlr-book-class {
    display: block;
    padding: 8px 0;
    background-color: #0078d7;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mlr-book-class:hover {
    background-color: #0067b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mlr-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mlr-credits-balance {
        margin-top: 10px;
    }
    
    .mlr-tab-buttons {
        flex-wrap: wrap;
    }
    
    .mlr-tab-button {
        flex: 1 0 auto;
        text-align: center;
        padding: 8px 10px;
    }
    
    .mlr-bookings-table {
        display: block;
        overflow-x: auto;
    }
} 