/* Salon CMS - Main Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.5rem;
    color: #333;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #007bff;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: currentColor;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
}

.social-links a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.social-links svg {
    width: 24px;
    height: 24px;
}

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

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

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert ul {
    margin-left: 1.5rem;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.auth-box {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-box h1 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
}

.auth-link a {
    color: #007bff;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Error Pages */
.error-container {
    text-align: center;
    padding: 4rem 2rem;
}

.error-container h1 {
    font-size: 4rem;
    color: #007bff;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

/* Footer Contact Icons */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.25rem 0;
}

.footer-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    color: currentColor;
    opacity: 0.8;
}

.footer-contact-item > span {
    flex: 1;
    line-height: 1.6;
}

.footer-contact-item > span > strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* Treatment Cards */
.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.treatment-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.treatment-card h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.treatment-card p {
    color: #666;
    margin-bottom: 1rem;
}

.treatment-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .treatments-grid {
        grid-template-columns: 1fr;
    }
}

/* Booking Form Styles */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* New professional time slot card style */
.time-slot-card {
    position: relative;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.time-slot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
    min-height: 80px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.time-slot-card:hover .time-slot-content {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.15);
    transform: translateY(-2px);
}

.time-slot-card input[type="radio"]:checked + .time-slot-content {
    border-color: #007bff;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    transform: translateY(-2px);
}

.time-slot-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.time-slot-card input[type="radio"]:checked + .time-slot-content .time-slot-time {
    color: #ffffff;
}

.time-slot-staff {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.time-slot-card input[type="radio"]:checked + .time-slot-content .time-slot-staff {
    color: rgba(255,255,255,0.9);
}

/* Legacy support for old time-slot-option class */
.time-slot-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.time-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.time-slot-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.time-slot-option:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.time-slot-option input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.time-slot-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #007bff;
}

.time-slot-option:has(input[type="radio"]:checked) {
    border-color: #007bff;
    background: #e7f3ff;
}

.loading {
    text-align: center;
    color: #666;
    padding: 1rem;
}

.no-slots {
    text-align: center;
    color: #dc3545;
    padding: 1rem;
    background: #f8d7da;
    border-radius: 4px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.required {
    color: #dc3545;
}

/* Confirmation Page */
.confirmation-message {
    text-align: center;
    padding: 2rem;
    background: #d4edda;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.confirmation-message h2 {
    color: #155724;
    margin-bottom: 0.5rem;
}

.booking-details {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.booking-details h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

.booking-details dl {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
}

.booking-details dt {
    font-weight: 600;
    color: #666;
}

.booking-details dd {
    color: #333;
}

.booking-details .payment-required {
    color: #dc3545;
    font-weight: 600;
}

.payment-section {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .booking-details dl {
        grid-template-columns: 1fr;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .time-slot-content {
        padding: 1rem 0.75rem;
        min-height: 70px;
    }
    
    .time-slot-time {
        font-size: 1rem;
    }
    
    .time-slot-staff {
        font-size: 0.8rem;
    }
    
    .actions {
        flex-direction: column;
    }
}
