/* Sistema de Agendamento Barbearia - CSS Principal */

* {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('../images/telafundo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Header Section */
.header-section {
    background-color: rgba(34, 34, 36, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid #c48a20;
    margin-bottom: 2rem;
}

.header-section h1 {
    color: #c48a20;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.logo-img {
    max-height: 80px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: auto;
}

/* Professional Selection */
.selection-section {
    padding: 2rem 0;
}

.professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.professional-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.professional-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.professional-card .card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #c48a20;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.professional-card .card:hover {
    border-color: #b8791c;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
}

.professional-image {
    position: relative;
    margin: 1rem 0;
}

.professional-image img {
    max-width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #c48a20;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.professional-image img:hover {
    transform: scale(1.05);
}

.placeholder-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 4px solid #c48a20;
}

.btn-warning {
    background: linear-gradient(145deg, #c48a20, #b8791c);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(196, 138, 32, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(145deg, #b8791c, #c48a20);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 138, 32, 0.5);
}

/* Appointment Page Styles */
.appointment-container {
    background: rgba(255, 255, 255, 0.80);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active {
    background: #c48a20;
    color: white;
    transform: scale(1.2);
}

.step.completed {
    background: #28a745;
    color: white;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #c48a20;
    box-shadow: 0 0 0 0.2rem rgba(196, 138, 32, 0.25);
}

/* Service Selection */
.service-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item:hover {
    border-color: #c48a20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-item.selected {
    border-color: #c48a20;
    background: rgba(196, 138, 32, 0.1);
}

/* Promotion Services */
.service-item.promo-service {
    background: linear-gradient(135deg, #fff8e7 0%, #ffffff 100%);
    border: 2px solid #dc3545;
    position: relative;
    animation: pulse-promo 2s ease-in-out infinite;
}

@keyframes pulse-promo {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    }
    50% {
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    }
}

.service-item.promo-service:hover {
    border-color: #dc3545;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: bold;
    animation: blink-badge 1.5s ease-in-out infinite;
}

@keyframes blink-badge {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Employee Selection */
.employee-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.employee-item:hover {
    border-color: #c48a20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.employee-item.selected {
    border-color: #c48a20;
    background: rgba(196, 138, 32, 0.1);
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 2px solid #e9ecef;
}

/* Time Slot Styles */
.time-slot {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover {
    border-color: #c48a20;
    background: rgba(196, 138, 32, 0.1);
}

.time-slot.selected {
    border-color: #c48a20;
    background: #c48a20;
    color: white;
}

.time-slot.unavailable {
    background: #f8d7da;
    border-color: #dc3545;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading state for time select */
select[disabled] {
    background-color: #f8f9fa;
    opacity: 0.7;
}

.time-loading {
    color: #6c757d;
    font-style: italic;
}

/* Available times indicator */
.available-times-info {
    background: linear-gradient(145deg, #d1ecf1, #bee5eb);
    border: 1px solid #b6d4da;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.no-times-available {
    background: linear-gradient(145deg, #f8d7da, #f5c6cb);
    border: 1px solid #f1aeb5;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    color: #721c24;
    font-size: 0.9rem;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-prev, .btn-next {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-next {
    background: linear-gradient(145deg, #c48a20, #b8791c);
    color: white;
}

.btn-next:hover {
    background: linear-gradient(145deg, #b8791c, #c48a20);
    transform: translateY(-2px);
}

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

.alert-success {
    background: linear-gradient(145deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(145deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* WhatsApp Button */
.btn-success {
    background: linear-gradient(145deg, #25d366, #128c7e);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-success:hover {
    background: linear-gradient(145deg, #128c7e, #25d366);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .professionals-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .header-section h1 {
        font-size: 2rem;
    }
    
    .logo-img {
        max-height: 60px;
        margin-bottom: 1rem;
    }
    
    .appointment-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-prev, .btn-next {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .professional-image img,
    .placeholder-image {
        width: 120px;
        height: 120px;
    }
    
    .step-indicator .step {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c48a20;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* Print Styles */
@media print {
    body::before {
        display: none;
    }
    
    .nav-buttons,
    .btn {
        display: none;
    }
    
    .appointment-container {
        box-shadow: none;
        border: 2px solid #000;
    }
}
