/**
 * Frontend CSS dla KA Google Calendar
 */

/* Główne style kontenera */
.ka-google-cal-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    margin: 0 auto;
}

/* Style dla alertów w shortcode eksperta */
.ios-alert {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 12px;
    border-left: 4px solid;
    font-weight: 500;
}

.ios-alert.success {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.ios-alert.error {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.ios-alert.info {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.ios-alert.warning {
    background-color: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.ios-alert p {
    margin: 0 0 10px 0;
}

.ios-alert p:last-child {
    margin-bottom: 0;
}

/* Komunikat sukcesu po zapisaniu ustawień */
.ka-google-cal-success {
    background-color: #f0fdf4;
    border: 1px solid #22c55e;
    color: #166534;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
}

/* Nagłówek kalendarza */
.ka-google-cal-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ka-google-cal-header h3 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    font-weight: 600;
}

.ka-google-cal-service-info {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.ka-google-cal-free {
    color: #4ade80;
    font-weight: 600;
    background: rgba(74, 222, 128, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
}

.ka-google-cal-price {
    color: #fbbf24;
    font-weight: 600;
    font-size: 1.3em;
    background: rgba(251, 191, 36, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Wybór daty */
.ka-google-cal-date-picker {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.ka-google-cal-date-picker label {
    font-weight: 600;
    color: #374151;
    margin-right: 10px;
    font-size: 1.1em;
}

.ka-google-cal-date-picker input[type="date"] {
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    min-width: 200px;
}

.ka-google-cal-date-picker input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ka-google-cal-load-slots {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ka-google-cal-load-slots:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ka-google-cal-load-slots:active {
    transform: translateY(0);
}

/* Kontener slotów */
.ka-google-cal-slots-container {
    min-height: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ka-google-cal-loading {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 1.1em;
}

.ka-google-cal-loading::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: ka-google-cal-spin 1s linear infinite;
    margin: 20px auto 0;
}

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

/* Grid slotów */
.ka-google-cal-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 25px;
}

/* Style slotów */
.ka-google-cal-slot {
    padding: 20px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.ka-google-cal-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
    transition: background 0.3s ease;
}

.ka-google-cal-slot:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ka-google-cal-slot.available {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.ka-google-cal-slot.available::before {
    background: #10b981;
}

.ka-google-cal-slot.available:hover {
    border-color: #059669;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.ka-google-cal-slot.unavailable {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    cursor: not-allowed;
    opacity: 0.7;
}

.ka-google-cal-slot.unavailable::before {
    background: #ef4444;
}

.ka-google-cal-slot.unavailable:hover {
    transform: none;
    box-shadow: none;
}

.ka-google-cal-slot-time {
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #1f2937;
}

.ka-google-cal-slot-status {
    font-size: 0.85em;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ka-google-cal-slot.available .ka-google-cal-slot-status {
    color: #059669;
}

.ka-google-cal-slot.unavailable .ka-google-cal-slot-status {
    color: #dc2626;
}

/* Modal rezerwacji */
.ka-google-cal-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ka-google-cal-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: ka-google-cal-modal-slide-in 0.3s ease-out;
}

@keyframes ka-google-cal-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ka-google-cal-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
}

.ka-google-cal-modal-close:hover {
    color: #374151;
    background: #e5e7eb;
}

.ka-google-cal-modal-content h3 {
    margin: 0 0 25px 0;
    padding: 25px 25px 0;
    font-size: 1.5em;
    color: #1f2937;
    font-weight: 600;
}

/* Formularz rezerwacji */
.ka-google-cal-booking-details {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 0 25px 25px;
    border-left: 4px solid #667eea;
}

.ka-google-cal-booking-details p {
    margin: 0;
    font-weight: 500;
}

.ka-google-cal-booking-details strong {
    color: #374151;
}

.ka-google-cal-form-group {
    margin-bottom: 20px;
    padding: 0 25px;
}

.ka-google-cal-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95em;
}

.ka-google-cal-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.ka-google-cal-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ka-google-cal-payment-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    padding: 15px;
    border-radius: 8px;
    margin: 0 25px 25px;
}

.ka-google-cal-payment-info p {
    margin: 0;
    color: #92400e;
    font-weight: 500;
}

/* Przyciski formularza */
.ka-google-cal-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 25px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 16px 16px;
}

.ka-google-cal-cancel-booking {
    padding: 12px 24px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ka-google-cal-cancel-booking:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.ka-google-cal-submit-booking {
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.ka-google-cal-submit-booking:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.ka-google-cal-submit-booking:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Komunikaty */
.ka-google-cal-error {
    color: #dc2626;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

.ka-google-cal-no-slots {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 1.1em;
    background: #f9fafb;
    border-radius: 8px;
    margin: 20px;
}

/* Responsywność */
@media (max-width: 768px) {
    .ka-google-cal-date-picker {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .ka-google-cal-date-picker label {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .ka-google-cal-date-picker input[type="date"] {
        min-width: auto;
        width: 100%;
    }
    
    .ka-google-cal-slots {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .ka-google-cal-slot {
        padding: 15px 10px;
    }
    
    .ka-google-cal-slot-time {
        font-size: 1.1em;
    }
    
    .ka-google-cal-modal-content {
        margin: 10px;
        max-width: none;
    }
    
    .ka-google-cal-form-actions {
        flex-direction: column;
    }
    
    .ka-google-cal-form-actions button {
        width: 100%;
    }
    
    .ka-google-cal-header {
        padding: 20px 15px;
    }
    
    .ka-google-cal-header h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .ka-google-cal-slots {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .ka-google-cal-slot {
        padding: 12px 8px;
    }
    
    .ka-google-cal-modal {
        padding: 10px;
    }
    
    .ka-google-cal-modal-content {
        margin: 5px;
    }
    
    .ka-google-cal-form-group {
        padding: 0 15px;
    }
    
    .ka-google-cal-booking-details,
    .ka-google-cal-payment-info {
        margin: 0 15px 20px;
    }
    
    .ka-google-cal-form-actions {
        padding: 20px 15px;
    }
}

/* Animacje hover dla slotów */
.ka-google-cal-slot.available:hover .ka-google-cal-slot-time {
    color: #059669;
}

.ka-google-cal-slot.available:hover .ka-google-cal-slot-status {
    color: #047857;
}

/* Efekt focus dla dostępności */
.ka-google-cal-slot.available:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.ka-google-cal-load-slots:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ka-google-cal-container {
        color: #f3f4f6;
    }
    
    .ka-google-cal-header {
        background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    }
    
    .ka-google-cal-date-picker {
        background: #1f2937;
        border-color: #374151;
    }
    
    .ka-google-cal-date-picker label {
        color: #f3f4f6;
    }
    
    .ka-google-cal-date-picker input[type="date"] {
        background: #374151;
        border-color: #4b5563;
        color: #f3f4f6;
    }
    
    .ka-google-cal-slots-container {
        background: #1f2937;
    }
    
    .ka-google-cal-slot {
        background: #374151;
        border-color: #4b5563;
    }
    
    .ka-google-cal-slot.available {
        background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
        border-color: #10b981;
    }
    
    .ka-google-cal-slot.unavailable {
        background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
        border-color: #ef4444;
    }
    
    .ka-google-cal-slot-time {
        color: #f3f4f6;
    }
    
    .ka-google-cal-modal-content {
        background: #1f2937;
        color: #f3f4f6;
    }
    
    .ka-google-cal-modal-content h3 {
        color: #f3f4f6;
    }
    
    .ka-google-cal-booking-details {
        background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    }
    
    .ka-google-cal-form-group input {
        background: #374151;
        border-color: #4b5563;
        color: #f3f4f6;
    }
    
    .ka-google-cal-form-actions {
        background: #374151;
        border-top-color: #4b5563;
    }
}

/* 
 * Style dla nowego kalendarza FullCalendar 
 */

/* Kontener i loader */
#ka-google-calendar-container {
    position: relative;
    min-height: 400px; /* Minimalna wysokość, aby loader był widoczny */
}

.ka-loader {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: ka-google-cal-spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -25px;
    margin-left: -25px;
    z-index: 10;
}

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

/* Dostosowanie FullCalendar */
.fc {
    max-width: 900px;
    margin: 0 auto;
}

/* Poprawki responsywności */
@media (max-width: 768px) {
    .fc .fc-toolbar {
        flex-direction: column;
    }
    .fc .fc-toolbar .fc-toolbar-chunk {
        margin-bottom: 10px;
    }
    .fc .fc-daygrid-day-number {
        font-size: 0.9em;
        padding: 2px;
    }
}

/* === STYLE UŻYTKOWNIKA: IOS/FRONTEND === */
/* ========================================
   🎨 GŁÓWNE STYLE KONTENERA
======================================== */
.ios-container {
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.ios-container > *:not(:last-child) {
    margin-bottom: 16px;
}
.ios-form-spaced {
    margin-bottom: 24px;
}
@media (max-width: 480px) {
    .ios-container {
        padding: 12px;
    }
}
/* ... (pozostała część CSS użytkownika) ... */

/* ...wklej całość przesłanego CSS użytkownika tutaj... */

/* === KONIEC STYLI UŻYTKOWNIKA === */ 

.ios-working-hours-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 24px !important;
    margin-bottom: 16px;
    width: 100% !important;
    min-width: 400px !important;
}
.ios-working-hours-grid label {
    width: auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.ios-working-hours-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.ios-working-hours-row {
    display: flex;
    gap: 24px;
}
.ios-working-hours-cell {
    flex: 1 1 0;
    background: #f1f1f1;
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.ios-day-label {
    font-weight: 600;
    margin-right: 8px;
}
.ios-working-hours-cell input[type="time"] {
    width: 90px;
} 

/* KA Google Calendar Frontend Styles */

/* FullCalendar Fallback Styles (w przypadku problemów z CDN) */
.fc {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.fc-header-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.fc-button {
    background: #007cba;
    border: 1px solid #007cba;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 0 2px;
}

.fc-button:hover {
    background: #005a87;
    border-color: #005a87;
}

.fc-button:active {
    background: #004a73;
}

.fc-button-primary {
    background: #007cba;
    border-color: #007cba;
}

.fc-button-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.fc-daygrid-day {
    border: 1px solid #ddd;
    min-height: 100px;
}

.fc-daygrid-day-number {
    padding: 8px;
    font-weight: bold;
}

.fc-daygrid-day.fc-day-today {
    background-color: #fff3cd;
}

.fc-event {
    background-color: #007cba;
    border-color: #005a87;
    color: white;
    padding: 2px 4px;
    margin: 1px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
}

.fc-event:hover {
    background-color: #005a87;
}

.fc-event-title {
    font-weight: bold;
}

.fc-toolbar-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.fc-col-header-cell {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px;
    font-weight: bold;
    text-align: center;
}

/* Loader styles */
.ka-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

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

/* Error styles */
.ka-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
}

/* Success styles */
.ka-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
}

/* Expert selection styles */
.ka-expert-select-container {
    margin-bottom: 20px;
}

.ka-expert-select-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.ka-expert-select-container select {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.ka-expert-select-container select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Calendar container */
#ka-google-calendar-container {
    margin-top: 20px;
    min-height: 400px;
}

/* Responsive design */
@media (max-width: 768px) {
    .fc-header-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc-toolbar-chunk {
        display: flex;
        gap: 5px;
    }
    
    .fc-button {
        padding: 6px 12px;
        font-size: 12px;
    }
} 

/* Style dla Google Calendar Embed */
.ka-google-calendar-embed {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.ka-google-calendar-embed iframe {
    border-radius: 12px;
    min-height: 600px;
}

/* Ukrywanie niepotrzebnych elementów kalendarza */
.ka-google-calendar-embed iframe {
    filter: brightness(1.02) contrast(1.05);
}

/* Responsywność dla kalendarza */
@media (max-width: 768px) {
    .ka-google-calendar-embed iframe {
        height: 500px !important;
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .ka-google-calendar-embed iframe {
        height: 400px !important;
        min-height: 400px;
    }
}

/* Dodatkowe style dla lepszego wyświetlania kalendarza */
.ka-calendar-section h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

/* Poprawka dla iframe Google Calendar */
.ka-google-calendar-embed iframe {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.ka-google-calendar-embed iframe:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Style dla własnego widgetu kalendarza */
.ka-custom-calendar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.ka-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e5e9;
}

.ka-calendar-nav {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.ka-calendar-nav:hover {
    background: #5a6fd8;
}

.ka-calendar-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.ka-calendar-grid {
    border: none;
    border-radius: 0;
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
}

.ka-calendar-time-header {
    display: grid;
    grid-template-columns: 4.5rem repeat(7, minmax(80px, 1fr));
    min-width: 640px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
}

.ka-day-header {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.ka-day-header:last-child {
    border-right: none;
}

.ka-day-name {
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
}

.ka-day-number {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: 4px;
}

.ka-today-header {
    background: rgba(59,130,246,.08);
}
.ka-today-header .ka-day-number { color: #3b82f6; }

.ka-calendar-time-slots {
    max-height: 480px;
    overflow-y: auto;
    overflow-x: visible;
    width: 100%;
}

.ka-time-row {
    display: grid;
    grid-template-columns: 4.5rem repeat(7, minmax(80px, 1fr));
    min-width: 640px;
    border-bottom: 1px solid #f1f3f4;
}

.ka-time-row:last-child {
    border-bottom: none;
}

.ka-time-label {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    border-right: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ka-time-slot {
    padding: 8px;
    border-right: 1px solid #f1f3f4;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ka-time-slot:last-child {
    border-right: none;
}

.ka-time-slot.ka-available {
    background: #e8f5e8;
    color: #2d5a2d;
}

.ka-time-slot.ka-available:hover {
    background: #d4edda;
    transform: scale(1.02);
}

.ka-time-slot.ka-booked {
    background: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
}

.ka-time-slot.ka-outside-hours {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.ka-calendar-legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
    justify-content: center;
}

.ka-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.ka-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.ka-legend-color.ka-available {
    background: #e8f5e8;
}

.ka-legend-color.ka-booked {
    background: #f8d7da;
}

.ka-legend-color.ka-working-hours {
    background: #d1ecf1;
}

/* Responsywność dla kalendarza */
@media (max-width: 768px) {
    .ka-custom-calendar-widget {
        padding: 15px;
    }
    
    .ka-calendar-time-header,
    .ka-time-row {
        grid-template-columns: 3rem repeat(7, minmax(60px, 1fr));
        min-width: 500px;
    }
    
    .ka-time-label {
        padding: 6px;
        font-size: 11px;
    }
    
    .ka-day-name {
        font-size: 11px;
    }
    
    .ka-day-number {
        font-size: 16px;
    }
    
    .ka-calendar-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Style dla formularza rezerwacji */
.ka-booking-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ka-booking-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.ka-booking-form {
    display: grid;
    gap: 20px;
}

.ka-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ka-form-row label {
    font-weight: 600;
    color: #555;
}

.ka-form-row input,
.ka-form-row textarea {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.ka-form-row input:focus,
.ka-form-row textarea:focus {
    outline: none;
    border-color: #667eea;
}

.ka-form-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    line-height: 1.6;
}

.ka-booking-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.ka-booking-submit:hover {
    transform: translateY(-2px);
}

/* Responsywność */
@media (max-width: 768px) {
    .ka-google-calendar-embed iframe {
        height: 300px;
    }
    
    .ka-booking-section {
        padding: 20px;
    }
}

/* Style dla przycisków w panelu eksperta */
.ios-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 5px;
}

.ios-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ios-button-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.ios-button-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.ios-button-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Przycisk synchronizacji */
.ios-button-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.ios-button-info:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.ios-button-info:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Status synchronizacji */
#ka-sync-status {
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 10px;
}

#ka-sync-status div {
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 4px solid;
}

#ka-sync-status div[style*="color: #2196f3"] {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

#ka-sync-status div[style*="color: #4caf50"] {
    background: #e8f5e8;
    border-left-color: #4caf50;
}

#ka-sync-status div[style*="color: #f44336"] {
    background: #ffebee;
    border-left-color: #f44336;
}

/* Przycisk pełnej synchronizacji */
.ios-button-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.ios-button-warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.ios-button-warning:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Status pełnej synchronizacji */
#ka-sync-status div[style*="color: #ff9800"] {
    background: #fff3e0;
    border-left-color: #ff9800;
} 