/* BookMate Frontend Styles */

/* Main Container */
.bookmate-booking-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.bookmate-booking-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Step Navigation */
.bookmate-step {
    display: none;
    padding: 40px;
}

.bookmate-step.active {
    display: block;
}

.bookmate-step-header {
    text-align: center;
    margin-bottom: 40px;
}

.bookmate-step-title {
    font-size: 2.5em;
    font-weight: 300;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-family: 'Georgia', serif;
}

.bookmate-step-subtitle {
    font-size: 1.1em;
    color: #7f8c8d;
    margin: 0;
}

/* Service Cards */
.bookmate-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bookmate-service-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.bookmate-service-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.bookmate-service-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bookmate-service-card.selected .bookmate-service-name,
.bookmate-service-card.selected .bookmate-service-duration,
.bookmate-service-card.selected .bookmate-service-price,
.bookmate-service-card.selected .bookmate-service-description {
    color: white;
}

.bookmate-service-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.bookmate-service-duration {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.bookmate-service-price {
    font-size: 1.4em;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 10px;
}

.bookmate-service-description {
    font-size: 0.9em;
    color: #7f8c8d;
    line-height: 1.5;
}

/* Staff Cards */
.bookmate-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bookmate-staff-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.bookmate-staff-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.bookmate-staff-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bookmate-staff-card.selected .bookmate-staff-name,
.bookmate-staff-card.selected .bookmate-staff-specialization {
    color: white;
}

.bookmate-staff-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 600;
    margin: 0 auto 15px;
    overflow: hidden;
}

.bookmate-staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bookmate-staff-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.bookmate-staff-specialization {
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
}

/* Calendar Styles */
.bookmate-calendar-container {
    margin-bottom: 30px;
}

.bookmate-calendar {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bookmate-calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.bookmate-calendar-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 300;
}

.bookmate-calendar-grid {
    border: 1px solid #e9ecef;
}

.bookmate-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.bookmate-calendar-weekdays > div {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    border-right: 1px solid #e9ecef;
}

.bookmate-calendar-weekdays > div:last-child {
    border-right: none;
}

.bookmate-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.bookmate-calendar-day {
    min-height: 60px;
    padding: 10px;
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookmate-calendar-day:hover:not(.empty):not(.past) {
    background: #f8f9fa;
}

.bookmate-calendar-day.empty {
    background: #f8f9fa;
    cursor: default;
}

.bookmate-calendar-day.past {
    background: #f8f9fa;
    color: #bdc3c7;
    cursor: not-allowed;
}

.bookmate-calendar-day.today {
    background: #e3f2fd;
    font-weight: 600;
}

.bookmate-calendar-day.selected {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.bookmate-calendar-day .day-number {
    font-size: 1.1em;
    font-weight: 500;
}

/* Time Slots */
.bookmate-time-slots {
    margin-top: 20px;
}

.bookmate-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.bookmate-time-slot {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.bookmate-time-slot:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.bookmate-time-slot.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.bookmate-loading-times {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.bookmate-no-slots {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    font-style: italic;
}

/* Form Styles */
.bookmate-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.bookmate-form-group {
    margin-bottom: 20px;
}

.bookmate-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.bookmate-form-group input,
.bookmate-form-group select,
.bookmate-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.bookmate-form-group input:focus,
.bookmate-form-group select:focus,
.bookmate-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bookmate-form-group input.bookmate-error,
.bookmate-form-group select.bookmate-error,
.bookmate-form-group textarea.bookmate-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.bookmate-form-group input.bookmate-success,
.bookmate-form-group select.bookmate-success,
.bookmate-form-group textarea.bookmate-success {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.bookmate-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Discount Section */
.bookmate-discount-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.bookmate-discount-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.bookmate-discount-input {
    display: flex;
    gap: 10px;
}

.bookmate-discount-input input {
    flex: 1;
}

/* Price Breakdown */
.bookmate-price-breakdown {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.bookmate-price-breakdown h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.bookmate-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.bookmate-price-row:last-child {
    border-bottom: none;
}

.bookmate-price-row.total {
    font-weight: 700;
    font-size: 1.1em;
    color: #2c3e50;
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
    margin-top: 10px;
}

/* Confirmation Summary */
.bookmate-confirmation-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
}

.bookmate-confirmation-summary h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3em;
    text-align: center;
}

.bookmate-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.bookmate-summary-item:last-child {
    border-bottom: none;
}

.bookmate-summary-item.total {
    font-weight: 700;
    font-size: 1.1em;
    color: #2c3e50;
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
    margin-top: 10px;
}

/* Navigation */
.bookmate-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.bookmate-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 120px;
}

.bookmate-btn:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.bookmate-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bookmate-btn-secondary {
    background: #6c757d;
}

.bookmate-btn-secondary:hover:not(:disabled) {
    background: #5a6268;
}

.bookmate-btn-primary {
    background: #667eea;
}

.bookmate-btn-primary:hover:not(:disabled) {
    background: #5a6fd8;
}

/* Loading States */
.bookmate-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.bookmate-loading.active {
    display: flex;
}

.bookmate-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alerts */
.bookmate-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.bookmate-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bookmate-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bookmate-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.bookmate-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* My Bookings */
.bookmate-my-bookings {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.bookmate-my-bookings h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2em;
    font-weight: 300;
}

.bookmate-bookings-list {
    display: grid;
    gap: 15px;
}

.bookmate-booking-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: center;
}

.bookmate-booking-service {
    font-weight: 600;
    color: #2c3e50;
}

.bookmate-booking-date {
    color: #7f8c8d;
}

.bookmate-booking-staff {
    color: #7f8c8d;
}

.bookmate-booking-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
}

.bookmate-booking-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.bookmate-booking-status.pending {
    background: #fff3cd;
    color: #856404;
}

.bookmate-booking-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.bookmate-booking-status.completed {
    background: #d1ecf1;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bookmate-booking-container {
        padding: 10px;
    }
    
    .bookmate-step {
        padding: 20px;
    }
    
    .bookmate-step-title {
        font-size: 2em;
    }
    
    .bookmate-service-grid,
    .bookmate-staff-grid {
        grid-template-columns: 1fr;
    }
    
    .bookmate-form-row {
        grid-template-columns: 1fr;
    }
    
    .bookmate-calendar-day {
        min-height: 50px;
        padding: 8px;
    }
    
    .bookmate-calendar-day .day-number {
        font-size: 1em;
    }
    
    .bookmate-time-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .bookmate-navigation {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .bookmate-btn {
        width: 100%;
    }
    
    .bookmate-booking-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .bookmate-discount-input {
        flex-direction: column;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bookmate-booking-container {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .bookmate-booking-form,
    .bookmate-service-card,
    .bookmate-staff-card,
    .bookmate-calendar,
    .bookmate-form-group input,
    .bookmate-form-group select,
    .bookmate-form-group textarea {
        background: #2d2d2d;
        color: #ffffff;
        border-color: #404040;
    }
    
    .bookmate-form-group input:focus,
    .bookmate-form-group select:focus,
    .bookmate-form-group textarea:focus {
        border-color: #667eea;
    }
    
    .bookmate-calendar-weekdays {
        background: #404040;
        border-color: #555555;
    }
    
    .bookmate-calendar-day {
        border-color: #555555;
    }
    
    .bookmate-calendar-day:hover:not(.empty):not(.past) {
        background: #404040;
    }
    
    .bookmate-navigation {
        background: #2d2d2d;
        border-color: #404040;
    }
} 