:root {
    --primary-color: #0d6efd;
    --secondary-color: #198754;
    --accent-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.tidy-header {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tidy-logo {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.logo-icon {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1);
}

.hero-image {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
}

.tidy-nav {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-tabs .nav-link {
    font-weight: 600;
    color: var(--dark-color);
    padding: 15px 20px;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.hero-section {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230d6efd" opacity="0.1"/></svg>');
    background-size: cover;
    padding: 60px 0 40px;
    position: relative;
}

.hero-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.btn-tidy {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-tidy:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-tidy-secondary {
    background-color: var(--secondary-color);
}

.btn-tidy-secondary:hover {
    background-color: #157347;
}

.section-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.info_line::after{
    left: 0 !important;
    transform: translate(0) !important;
}

.section-title:after {
    transform: translate(-50%);
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.service-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
    border: none;
    cursor: pointer;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid var(--primary-color);
}

.service-card:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.service-card::after {
    content: '🚐 Click to book!';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(13, 110, 253, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.service-header {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    color: white;
    padding: 15px;
    font-weight: 600;
}

.service-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.calendar-table td {
    background-color: white;
    text-align: center;
    padding: 12px 5px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e9ecef;
    position: relative;
}

.calendar-table td:hover:not(.disabled):not(.busy-slot) {
    background-color: #e9f7fe;
    transform: scale(1.05);
}

.calendar-table td.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

.calendar-table td.today {
    background-color: #28a745;
    color: white;
    font-weight: bold;
}

.calendar-table td.today.active {
    background-color: var(--primary-color);
}

.calendar-table td.disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.calendar-table td.busy-slot {
    background-color: #dc3545 !important;
    color: white !important;
    cursor: not-allowed;
    position: relative;
}

.calendar-table td.busy-slot::after {
    content: '⚠';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    color: yellow;
}

.calendar-table td.has-busy-slots {
    background-color: #fff3cd !important;
    border: 2px solid #ffc107;
    position: relative;
}

.calendar-table td.has-busy-slots::after {
    content: '⚠';
    position: absolute;
    top: 1px;
    right: 2px;
    font-size: 10px;
    color: #ffc107;
}

.calendar-table td.has-busy-slots:hover {
    background-color: #fff3cd !important;
    transform: scale(1.05);
}

.calendar-table td.empty-cell {
    background-color: transparent !important;
    color: transparent !important;
    cursor: default !important;
    border: none !important;
}

.calendar-table td.empty-cell:hover {
    background-color: transparent !important;
    transform: none !important;
}

.month-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.time-slot {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-weight: 500;
}

.time-slot:hover {
    background-color: #e9f7fe;
}

.time-slot.selected {
    background-color: var(--primary-color);
    color: white;
}

.time-slot.busy-slot {
    background-color: #dc3545 !important;
    color: white !important;
    cursor: not-allowed;
    text-decoration: line-through;
    position: relative;
}

.time-slot.busy-slot::after {
    content: '❌';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
}

.time-slot.past-time {
    background-color: #6c757d !important;
    color: white !important;
    cursor: not-allowed;
    opacity: 0.6;
    text-decoration: line-through;
}

.time-slot.past-time::after {
    content: '⏰';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
}

/* Ensure time-slot has relative positioning for absolute pseudo-elements */
.time-slot {
    position: relative;
}

/* Admin Section Styles */
.admin-section {
    min-height: calc(100vh - 250px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Footer positioning */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.tab-content {
    flex: 1;
}

.tidy-footer {
    margin-top: auto;
}

/* Admin card styles */
.admin-section .card {
    border: none;
    border-radius: 12px;
}

.admin-section .card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

.admin-section .table th {
    border-top: none;
    font-weight: 600;
    background-color: #f8f9fa;
}

.admin-section .table-dark th {
    background-color: #343a40 !important;
}

.confirmation-box {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2rem;
    margin-right: 15px;
    width: 50px;
    text-align: center;
}

.whatsapp-icon {
    color: #25D366;
    transition: all 0.3s ease;
}

.whatsapp-icon:hover {
    color: #20c85a;
    transform: scale(1.2);
}

.telegram-icon {
    color: #0088cc;
    transition: all 0.3s ease;
}

.telegram-icon:hover {
    color: #0077b6;
    transform: scale(1.2);
}

.email-icon {
    color: #ea4335;
    transition: all 0.3s ease;
}

.email-icon:hover {
    color: #d33b2c;
    transform: scale(1.2);
}

/* Footer social links styles */
.tidy-footer a {
    text-decoration: none !important;
}

.tidy-footer a:hover {
    text-decoration: none !important;
}

.tidy-footer {
    background: linear-gradient(135deg, var(--dark-color), #343a40);
    color: white;
    padding: 40px 0 20px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.8;
}

.more-locations {
    font-weight: bold;
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .calendar-table td {
        padding: 8px 3px;
        font-size: 0.9rem;
    }
    
    .time-slot {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .tidy-logo {
        font-size: 2.2rem; /* Увеличено с 1.5rem */
    }
    
    .logo-icon {
        height: 48px; /* Увеличено с 32px */
        width: auto;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Google */
.busy-slot {
            background-color: #ffcccc !important;
            text-decoration: line-through;
            cursor: not-allowed;
        }
        
        .loading-indicator {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.8);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }
        
        /* Modal window fix */
        .modal {
            z-index: 1050;
        }
        
        .modal-backdrop {
            z-index: 1040;
        }
        
        /* Remove scroll lock */
        body.modal-open {
            overflow: auto !important;
            padding-right: 0 !important;
        }
        
        .spinner {
            width: 3rem;
            height: 3rem;
            border: 5px solid rgba(0, 0, 0, 0.1);
            border-radius: 50%;
            border-top-color: var(--primary-color);
            animation: spin 1s linear infinite;
            margin-bottom: 1rem;
        }
        
@keyframes spin {
            to { transform: rotate(360deg); }
        }

/* Calendar Navigation Buttons */
.btn-calendar-nav {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.btn-calendar-nav:hover {
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.3);
}

.btn-calendar-nav:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.btn-calendar-nav i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.btn-calendar-nav:hover i {
    transform: scale(1.1);
}

.calendar-nav-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0.7;
}

/* Responsive calendar navigation */
@media (max-width: 576px) {
    .btn-calendar-nav {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .btn-calendar-nav span {
        display: none;
    }
}

/* Updated Footer Styles */
.tidy-footer .footer-logo {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: white;
}

.tidy-footer .text-center.py-3 {
    border-top: 1px solid #495057;
    margin-top: 20px;
    padding-top: 20px;
}

.tidy-footer .text-center p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.calendar-nav-indicator {
    font-size: 1.2rem;
}

/* reCAPTCHA Styling */
.captcha-container {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.captcha-container:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.captcha-wrapper {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: inline-block;
}

.captcha-container h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.captcha-container p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* reCAPTCHA responsive */
@media (max-width: 576px) {
    .captcha-container {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .captcha-wrapper {
        padding: 10px;
    }
    
    .captcha-container h4 {
        font-size: 1.1rem;
    }
    
    .captcha-container p {
        font-size: 0.85rem;
    }
    
    /* Make reCAPTCHA more compact on mobile */
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}

/* Animation for reCAPTCHA validation error */
.captcha-error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Admin panel action buttons styling */
.admin-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start; /* Elements on the left */
    flex-direction: row; /* Horizontal layout */
}

.admin-actions .btn {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-actions .btn i {
    margin-right: 0; /* Remove margin, use gap */
}

/* Responsive admin actions - keep horizontal layout */
@media (max-width: 768px) {
    .admin-actions {
        flex-direction: row; /* Keep horizontal */
        gap: 3px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .admin-actions .btn {
        font-size: 0.7rem;
        padding: 3px 6px;
        min-width: auto;
    }
    
    .admin-actions .btn span {
        display: none; /* Hide text on mobile, keep only icons */
    }
}
