.calendar-day {
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(8px);
    cursor: pointer;
    min-height: 120px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(30, 41, 59, 0.5);
}

.calendar-day .day-number {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.calendar-day:hover .day-number {
    opacity: 1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg) scale(1.5);
    }
    70% {
        transform: rotate(180deg) scale(3);
    }
    100% {
        transform: rotate(360deg) scale(1.5);
    }
}

.calendar-day.today {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.calendar-day.today .day-number {
    color: #60A5FA;
    font-weight: 600;
}

.calendar-day.other-month {
    pointer-events: none;
    opacity: 0.5;
    background: rgba(30, 41, 59, 0.1);
}

.calendar-day .events-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-day .event-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: slideIn 0.3s ease;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day .event-pill:hover {
    transform: translateX(4px);
    filter: brightness(1.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-event {
    position: relative;
    padding-left: 1.5rem;
    padding-bottom: 1.5rem;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #60A5FA 0%, transparent 100%);
}

.timeline-event::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #60A5FA;
    border: 2px solid #1E293B;
}

.timeline-event:hover::after {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

.timeline-event .time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #60A5FA;
    margin-bottom: 0.5rem;
}

.event-pill.meeting { 
    background: rgba(59, 130, 246, 0.2); 
    border-left: 3px solid #3B82F6; 
    color: #93C5FD;
}

.event-pill.appointment { 
    background: rgba(168, 85, 247, 0.2); 
    border-left: 3px solid #A855F7; 
    color: #C084FC;
}

.event-pill.birthday { 
    background: rgba(236, 72, 153, 0.2); 
    border-left: 3px solid #EC4899; 
    color: #F9A8D4;
}

.event-pill.anniversary { 
    background: rgba(239, 68, 68, 0.2); 
    border-left: 3px solid #EF4444; 
    color: #FCA5A5;
}

.event-pill.reminder { 
    background: rgba(251, 191, 36, 0.2); 
    border-left: 3px solid #FBBF24; 
    color: #FCD34D;
}

.event-pill.task { 
    background: rgba(16, 185, 129, 0.2); 
    border-left: 3px solid #10B981; 
    color: #6EE7B7;
}

.event-pill.private { 
    background: rgba(148, 163, 184, 0.2); 
    border-left: 3px solid #94A3B8; 
    color: #CBD5E1;
}

.event-pill.holiday { 
    background: rgba(249, 115, 22, 0.2); 
    border-left: 3px solid #F97316; 
    color: #FDBA74;
}

.event-pill.out_of_office { 
    background: rgba(156, 163, 175, 0.2); 
    border-left: 3px solid #9CA3AF; 
    color: #D1D5DB;
}

.event-pill.other { 
    background: rgba(99, 102, 241, 0.2); 
    border-left: 3px solid #6366F1; 
    color: #A5B4FC;
}

.category-indicator.meeting { background-color: #3B82F6; }
.category-indicator.appointment { background-color: #A855F7; }
.category-indicator.birthday { background-color: #EC4899; }
.category-indicator.anniversary { background-color: #EF4444; }
.category-indicator.reminder { background-color: #FBBF24; }
.category-indicator.task { background-color: #10B981; }
.category-indicator.private { background-color: #94A3B8; }
.category-indicator.holiday { background-color: #F97316; }
.category-indicator.out_of_office { background-color: #9CA3AF; }
.category-indicator.other { background-color: #6366F1; }

.event-pill:hover {
    filter: brightness(1.2);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-pill:active {
    transform: translateX(2px);
    filter: brightness(0.95);
}

.event-pill {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    .event-pill {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .event-pill:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

.event-modal-content {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.event-modal.show .event-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

@media (max-width: 1024px) {
    .calendar-day {
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    .calendar-day {
        min-height: 80px;
    }
    
    .calendar-day .event-pill {
        font-size: 0.7rem;
    }
}

.calendar-loading {
    position: relative;
    overflow: hidden;
}

.calendar-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.event-modal-backdrop {
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

.event-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.calendar-nav-button {
    transition: all 0.2s ease;
}

.calendar-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.calendar-grid {
    transition: opacity 0.3s ease;
}

.calendar-grid.changing {
    opacity: 0;
}

.form-control {
    transition: all 0.2s ease;
}

.form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s infinite;
}

@keyframes todayPulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.calendar-day.today {
    animation: todayPulse 2s infinite;
}

.draggable-event {
    cursor: grab;
}

.draggable-event:active {
    cursor: grabbing;
}

.drop-target {
    border: 2px dashed rgba(59, 130, 246, 0.5);
}

@media (max-width: 640px) {
    .calendar-day {
        aspect-ratio: 1;
    }
    
    .event-modal-content {
        width: 90%;
        margin: 0 auto;
    }
}

@media (prefers-color-scheme: dark) {
    .calendar-day:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .event-modal-backdrop {
        background-color: rgba(0, 0, 0, 0.7);
    }
}

.event-pill.organizer {
    position: relative;
    border-right: 3px solid currentColor;
}

.event-pill.participant {
    opacity: 0.85;
}

.event-pill.organizer::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.event-pill .role-label {
    font-size: 0.65rem;
    opacity: 0.75;
    margin-left: auto;
    padding-left: 0.5rem;
}

.event-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    position: relative;
    overflow: hidden;
}

.event-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    opacity: 0;
    transition: opacity 0.2s ease;
}

.event-pill:hover::before {
    opacity: 1;
}

.event-pill.organizer:hover {
    transform: translateX(4px) scale(1.02);
}

.event-pill.participant:hover {
    transform: translateX(4px) scale(1.01);
}

@media (prefers-color-scheme: dark) {
    .event-pill.organizer {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .event-pill.participant {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }
}


@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-day-animate {
    animation: fadeSlideIn 0.5s ease forwards;
    
}

.calendar-event-animate {
    animation: fadeSlideIn 0.3s ease forwards;
   
}

#main-calander-page {
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}