* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    color: #1a202c;
}

.container {
    display: flex;
    height: 100vh;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.5px;
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.btn-secondary {
    background: white;
    color: #4b5563;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
}

.content {
    margin-top: 80px;
    padding: 40px;
    flex: 1;
    overflow: hidden;
    display: flex;
    gap: 20px;
}

.calendar-container {
    flex: 1;
    overflow-y: auto;
    min-width: 0;
}

.calendar-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 24px;
    height: 100%;
}

.fc {
    font-family: inherit;
}

.fc .fc-button-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
}

.fc .fc-button-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.fc .fc-button-primary.fc-button-active {
    background-color: #2563eb;
    border-color: #2563eb;
}

.fc .fc-col-header-cell {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
    font-weight: 600;
    padding: 14px 0;
    font-size: 13px;
}

.fc .fc-daygrid-day {
    border-color: #e2e8f0;
}

.fc .fc-daygrid-day-frame {
    min-height: 140px;
    background: white;
}

.fc .fc-daygrid-day.fc-day-other {
    background: #fafbfc;
}

.fc .fc-daygrid-day-number {
    color: #1a202c;
    font-weight: 600;
    padding: 10px;
    font-size: 14px;
}

.fc .fc-event {
    background: #3b82f6;
    border-color: #3b82f6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fc .fc-event:hover {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.fc .fc-event-title {
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc .fc-timegrid-slot {
    height: 3em;
    border-color: #e2e8f0;
}

.fc .fc-col-time-cell {
    vertical-align: middle;
    font-size: 13px;
    color: #64748b;
}

.fc .fc-timegrid-now-indicator-line {
    border-color: #ef4444;
    border-width: 2px;
}

.event-detail {
    position: static;
    width: 380px;
    height: 100%;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.event-detail.open {
    /* No transition needed - always visible */
}

.event-detail.open.left {
    /* Not used in new layout */
}

.event-detail-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.event-detail-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.event-detail-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.event-detail-close:hover {
    background: #e2e8f0;
    color: #1a202c;
}

.event-detail-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.event-detail-field {
    margin-bottom: 24px;
}

.event-detail-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.event-detail-value {
    font-size: 14px;
    color: #1a202c;
    line-height: 1.5;
}

.privacy-checkbox {
    margin-right: 8px;
    cursor: pointer;
}

.event-actions {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.event-actions .btn {
    flex: 1;
    padding: 12px;
    justify-content: center;
}

.event-uid {
    padding: 12px 24px;
    font-size: 11px;
    color: #94a3b8;
    word-break: break-all;
    border-top: 1px solid #e2e8f0;
    background: white;
}

.btn-approve {
    background: #10b981;
    color: white;
}

.btn-approve:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.btn-ignore {
    background: #ef4444;
    color: white;
}

.btn-ignore:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    box-shadow: none !important;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-time_changed {
    background: #fef3c7;
    color: #92400e;
}

.status-ignored {
    background: #fee2e2;
    color: #7f1d1d;
}

.status-pending {
    background: #dbeafe;
    color: #1e40af;
}

.sync-button {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sync-button:hover {
    background: #2563eb;
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.sync-button.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.notification {
    position: fixed;
    top: 100px;
    right: 40px;
    padding: 16px 20px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 380px;
    z-index: 2000;
    animation: slideIn 0.3s ease;
    border-left: 4px solid #3b82f6;
    font-size: 14px;
    font-weight: 500;
}

.notification.success {
    border-left-color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(420px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.buffer-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.buffer-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.conflict-warning {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 20px;
    color: #78350f;
    font-size: 13px;
    line-height: 1.5;
}

.event-detail::-webkit-scrollbar {
    width: 6px;
}

.event-detail::-webkit-scrollbar-track {
    background: transparent;
}

.event-detail::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.event-detail::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}