/**
 * EA Work Calendar - Style chatbota rezerwacji
 */

.eawc-chat {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Kroki konwersacji */
.eawc-chat-step {
    animation: eawc-fade-in 0.3s ease;
}

@keyframes eawc-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pytanie */
.eawc-chat-question {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    line-height: 1.4;
    text-align: center;
}

/* Kalendarz wyboru dni */
.eawc-calendar-months {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.eawc-calendar-month {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.eawc-calendar-month-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
    color: #333;
}

.eawc-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.eawc-calendar-day-header {
    font-size: 12px;
    color: #888;
    text-align: center;
    padding: 5px;
}

.eawc-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    color: #ccc;
    cursor: default;
}

.eawc-calendar-day.available {
    background: #e3f2fd;
    color: #1976d2;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.eawc-calendar-day.available:hover {
    background: #1976d2;
    color: #fff;
    transform: scale(1.1);
}

.eawc-calendar-day.available.katowice {
    background: #e8f5e9;
    color: #388e3c;
}

.eawc-calendar-day.available.katowice:hover {
    background: #388e3c;
    color: #fff;
}

.eawc-calendar-day.past {
    color: #ddd;
}

/* Przyciski */
.eawc-chat-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
    margin: 0 auto;
}

.eawc-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.eawc-btn-yes {
    background: #1976d2;
    color: #fff;
}

.eawc-btn-yes:hover {
    background: #1565c0;
}

.eawc-btn-no,
.eawc-btn-other-day {
    background: #f5f5f5;
    color: #333;
}

.eawc-btn-no:hover,
.eawc-btn-other-day:hover {
    background: #e0e0e0;
}

.eawc-btn-submit {
    background: #388e3c;
    color: #fff;
    width: 100%;
    margin-top: 10px;
}

.eawc-btn-submit:hover {
    background: #2e7d32;
}

.eawc-btn-waitlist {
    background: #ff9800;
    color: #fff;
}

.eawc-btn-waitlist:hover {
    background: #f57c00;
}

.eawc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Input godziny */
.eawc-chat-input-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 250px;
    margin: 0 auto;
}

.eawc-input {
    padding: 14px 18px;
    font-size: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    width: 140px;
}

.eawc-input:focus {
    outline: none;
    border-color: #1976d2;
}

.eawc-btn-send {
    background: #1976d2;
    color: #fff;
    padding: 14px 24px;
}

/* Formularz */
.eawc-form {
    max-width: 300px;
    margin: 0 auto;
}

.eawc-form-field {
    margin-bottom: 15px;
}

.eawc-form-field input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
}

.eawc-form-field input:focus {
    outline: none;
    border-color: #1976d2;
}

/* Potwierdzenie */
.eawc-chat-success {
    text-align: center;
}

.eawc-success-icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    color: #fff;
    font-size: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.eawc-appointment-details {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.eawc-appointment-details p {
    margin: 8px 0;
    font-size: 18px;
}

.eawc-chat-note {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}

/* Loading */
.eawc-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.eawc-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top-color: #1976d2;
    border-radius: 50%;
    animation: eawc-spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

/* Legenda lokalizacji */
.eawc-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.eawc-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.eawc-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.eawc-legend-dot.waw {
    background: #1976d2;
}

.eawc-legend-dot.kat {
    background: #388e3c;
}

/* Responsive */
@media (max-width: 500px) {
    .eawc-chat {
        padding: 20px 15px;
    }
    
    .eawc-chat-question {
        font-size: 20px;
    }
    
    .eawc-calendar-day {
        font-size: 13px;
    }
}
