
.calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.calendar-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px 0;
    /*background: linear-gradient(135deg, #607aeb 0%, #ffffff 100%); */
    color: rgb(109, 109, 109);
    border-radius: 15px;
}

.calendar-title {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.calendar-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 20px;
}

.nav-btn {
    /*background: linear-gradient(135deg, #6f7b86 0%, #00f2fe 100%);*/
    color: rgb(88, 88, 88);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;

}

.nav-btn:hover {
    color: rgb(43, 14, 209);
}

.current-week {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;

}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    min-height: 400px;
}

.day-column {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    transition: all 0.3s ease;
}

.day-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.day-header {
    background: linear-gradient(135deg, #3156fc 0%, #669ee9 100%);
    color: white;
    padding: 15px;
    text-align: center;
}

.day-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.day-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.day-content {
    padding: 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.availability-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #28a745;
}

.availability-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
    font-weight: 600;
    
}

.time-slots {
    margin-bottom: 10px;
}

.slots-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.slots-container {
    flex-wrap: wrap;
    gap: 5px;
}

.time-slot {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: 600;
    display: block; 
    box-sizing: border-box; 
    margin-bottom: 3px;
}

.time-slot.free {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block; 
    box-sizing: border-box; 
}

.no-slots, .no-availability {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
}

.no-availability {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.no-availability i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.day-footer {
    padding: 15px;
    margin-top: auto; /* Przyciski zawsze na dole */
}

.book-btn {
    width: 100%;
    padding: 6px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.book-btn.available {
    background:  #6dce40;
    color: rgba(0, 0, 0, 0.938);
    box-shadow: 0 5px 15px rgba(86, 171, 47, 0.4);
}

.book-btn.available:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    color: rgb(255, 255, 255);
    text-decoration: none;
}

.book-btn.unavailable {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .calendar-title {
        font-size: 2rem;
    }
    
    .week-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animacje */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.day-column {
    animation: slideIn 2.5s ease forwards;
}

.day-column:nth-child(1) { animation-delay: 0.1s; }
.day-column:nth-child(2) { animation-delay: 0.13s; }
.day-column:nth-child(3) { animation-delay: 0.16s; }
.day-column:nth-child(4) { animation-delay: 0.19s; }
.day-column:nth-child(5) { animation-delay: 0.22s; }
.day-column:nth-child(6) { animation-delay: 0.26s; }
.day-column:nth-child(7) { animation-delay: 0.29s; }


.services-section {
    margin: 20px auto;
    max-width: 800px;
    
}

.services-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.services-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.service-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.service-info {
    flex: 1;
    margin-right: 20px;
    text-align: left; 
}

.service-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #222;
    font-weight: 600;
}

.service-info .description {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.service-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.service-meta .duration {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.service-meta .price {
    font-size: 16px;
    font-weight: 700;
    color: #2ecc71;
}

@media (max-width: 640px) {
    .service-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-info {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .service-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 20px;
    }
}

/* Wrapper dla całości */
.business-calendar-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Biała karta - uniwersalna */
.white-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-content {
    padding: 2rem;
}

/* Profil biznesowy */
.business-profile-card .business-cover {
    height: 200px;
    margin: -2rem -2rem 2rem -2rem;
    overflow: hidden;
}

.business-profile-card .business-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-content {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.business-logo {
    flex-shrink: 0;
}

.business-logo img {
    width: 128px;
    height: 128px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.business-info {
    flex: 1;
    min-width: 300px;
}

.business-name {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.business-categories {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.business-category {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.business-description {
    color: #4b5563;
    margin: 1rem 0;
    line-height: 1.6;
}

.business-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.business-detail-item {
    font-size: 0.9rem;
}

.business-detail-item strong {
    color: #374151;
}

.business-detail-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.business-detail-item a:hover {
    text-decoration: underline;
}

/* Karta kalendarza - bez dodatkowego paddingu dla calendar-container */
.calendar-card .calendar-container {
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .business-calendar-wrapper {
        padding: 1rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .business-name {
        font-size: 1.5rem;
    }
    
    .business-logo img {
        width: 100px;
        height: 100px;
    }
}

/* Link do Google Maps */
.address-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.address-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.address-link i {
  font-size: 1.1em;
}