﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%); /* Updated from first style */
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.95); /* Updated from first style */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%); /* Updated from first style */
    padding: 30px;
    text-align: center;
    position: relative;
}

    .header h1 {
        color: white;
        font-size: 2.5em;
        font-weight: 700;
        margin-bottom: 10px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Updated from first style */
    }

    .header p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.1em;
        font-weight: 400;
    }

.date-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2); /* Updated from first style */
    border: 2px solid rgba(255, 255, 255, 0.3); /* Updated from first style */
    color: white; /* Updated from first style */
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .nav-btn:hover {
        background: rgba(255, 255, 255, 0.3); /* Updated from first style */
        color: white;
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Updated from first style */
    }

.current-date {
    font-size: 1.2em;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2); /* Updated from first style */
    color: white; /* Updated from first style */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Updated from first style */
}

.calendar-container {
    padding: 30px;
    overflow-x: auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); /* Updated from first style .time-slot */
}

.calendar-wrapper {
    display: flex;
    min-width: 1000px;
    height: 1605px;
    border-radius: 12px;
    background: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.time-axis {
    width: 100px;
    /*background: linear-gradient(135deg, #8e24aa 0%, #e91e63 100%);*/ /* Updated from first style .calendar-table th:first-child */
    position: sticky;
    left: 0;
    flex-shrink: 0;
    color: white;
    font-size: 13px;
    font-weight: 500;
    z-index: 10;
    margin-top: 100px;
}

.time-marker {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

    .time-marker.hour {
        background: rgba(255, 255, 255, 0.3);
        height: 2px;
        font-weight: 600;
    }

    .time-marker::before {
        content: attr(data-time);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 500;
        transform: translateY(-50%);
    }

    .time-marker.hour::before {
        background: #e91e63; /* Updated from first style .reservation */
        font-size: 13px;
        font-weight: 600;
    }

.time-tooltip {
    position: absolute;
    background: #e91e63; /* Updated from first style .reservation */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    pointer-events: none;
    z-index: 100;
    transform: translateX(-50%);
    display: none;
}

.time-axis:hover .time-tooltip {
    display: block;
}

.employees-container {
    flex: 1;
    display: flex;
/*    position: relative;*/
    background: white; /* Updated from first style .calendar-table */
    overflow-x: auto;
    overflow-y: auto;
}

.employee-column {
    flex: 1;
    border-right: 1px solid #e0e0e0; /* Updated from first style .calendar-table td */
    position: relative;
    min-width: 200px;
    transition: all 0.3s ease;
}

/*    .employee-column:last-child {
        border-right: none;
    }*/

    .employee-column:hover {
        background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%); /* Updated from first style .employee-cell:hover */
    }

.employee-header {
    position: sticky;
    top: 0;
    left: 8px;
    right: 8px;
    height: 50px;
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%); /* Updated from first style .calendar-table th */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 15;
    margin-top: 0;
}

.reservation-block {
    position: absolute;
    right: 8px;
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%); /* Updated from first style .reservation */
    border-radius: 8px;
    color: white;
    padding: 8px;
    font-size: 11px;
    box-shadow: 0 4px 10px rgba(156, 39, 176, 0.3); /* Updated from first style .reservation */
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 36px;
}

    .reservation-block:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(156, 39, 176, 0.4); /* Updated from first style .reservation:hover */
    }

.reservation-customer {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px;
}

.reservation-service {
    font-size: 10px;
    opacity: 0.9;
}

.reservation-time {
    font-size: 9px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.reservation-block.short {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%); /* Updated to match .reservation */
    min-height: auto !important;
    flex-direction: row !important;
    gap: 16px; /* space between children */
}

.reservation-block.medium {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%); /* Updated to match .reservation */
}

.reservation-block.long {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%); /* Updated to match .reservation */
}

.grid-lines {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
}

    .grid-line.hour {
        background: rgba(0, 0, 0, 0.1);
        height: 2px;
    }

.modal-service {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px); /* Updated from first style .modal-service */
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px; /* Updated from first style .modal-content */
    width: 90%;
    max-width: 600px; /* Updated from first style .modal-content */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); /* Updated from first style .modal-content */
    animation: modalSlideIn 0.3s ease; /* Updated from first style */
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%); /* Updated from first style .modal-header */
    color: white;
    padding: 25px; /* Updated from first style .modal-header */
    text-align: center;
    border-radius: 20px 20px 0 0; /* Updated from first style .modal-content */
}

    .modal-header h2 {
        font-size: 1.8em; /* Updated from first style .modal-header h2 */
        font-weight: 600;
        margin: 0;
    }

.close {
    position: absolute;
    right: 20px; /* Updated from first style .close */
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 28px; /* Updated from first style .close */
    cursor: pointer;
    transition: all 0.3s ease;
}

    .close:hover {
        transform: translateY(-50%) scale(1.2); /* Updated from first style .close:hover */
    }

.modal-body {
    padding: 30px; /* Updated from first style .modal-body */
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px; /* Updated from first style .info-grid */
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); /* Updated from first style .time-slot */
    border-radius: 8px;
}

.info-label {
    font-weight: 600;
    color: #495057; /* Updated from first style .info-label */
    font-size: 13px;
}

.info-value {
    color: #212529; /* Updated from first style .info-value */
    font-weight: 500;
    font-size: 13px;
}

.today-indicator {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%); /* Updated from first style .today-indicator */
    color: white;
    padding: 5px 10px; /* Updated from first style .today-indicator */
    border-radius: 20px; /* Updated from first style .today-indicator */
    font-size: 12px; /* Updated from first style .today-indicator */
    font-weight: 600;
    margin-left: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .calendar-container {
        padding: 15px;
    }

    .calendar-wrapper {
        min-width: 600px;
        height: 600px;
    }

    .employee-column {
        min-width: 160px;
    }

    .time-axis {
        width: 60px;
        font-size: 10px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .date-navigation {
        flex-direction: column;
        gap: 10px;
    }
}


.drag-marker {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10%;
    background: rgba(255, 255, 255, 0.4);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    cursor: move;
}

    .drag-marker::before {
        content: '↕';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 12px;
        font-weight: bold;
    }

