/*
Theme Name:     Eduma-child
Theme URI:      
Description:    Eduma child theme.
Author:         Me
Author URI:     
Template:       eduma
Version:        0.1.0
*/
/*
Theme Name: Eduma Child
Description: Child theme of Eduma with Enhanced Learning Calendar System
Template: eduma
Version: 1.0.0
*/

@import url("../eduma/style.css");

/* ==========================================================================
   ENHANCED LEARNING CALENDAR SYSTEM STYLES
   ========================================================================== */

/* Calendar Container */
.child-theme-calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Stats Header */
.calendar-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Main Calendar Layout */
.calendar-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Calendar Widget */
.calendar-widget {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.calendar-widget:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Streak Display */
.streak-display {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.streak-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
}

.streak-number {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.streak-display > div:last-child {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    font-weight: 500;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.calendar-header-day {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    padding: 18px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.calendar-day {
    background: white;
    padding: 15px 12px;
    min-height: 85px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid #f1f3f4;
    border-bottom: 1px solid #f1f3f4;
}

.calendar-day:hover {
    background: #f8f9fa;
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.calendar-day.has-events {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
}

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

.calendar-day.today:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.day-number {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.day-events {
    font-size: 0.7rem;
    line-height: 1.3;
}

.event-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Upcoming Events Sidebar */
.upcoming-events {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    height: fit-content;
}

.upcoming-event {
    display: flex;
    align-items: center;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.upcoming-event:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.event-color {
    width: 4px;
    height: 45px;
    border-radius: 2px;
    margin-right: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.event-details h4 {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 600;
}

.event-time {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Study Schedule */
.study-schedule {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    margin-top: 30px;
}

.schedule-day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s;
}

.schedule-day:last-child {
    border-bottom: none;
}

.schedule-day:hover {
    background: rgba(102, 126, 234, 0.02);
    margin: 0 -15px;
    padding: 18px 15px;
    border-radius: 8px;
}

.day-name {
    font-weight: 600;
    color: #495057;
    min-width: 90px;
    font-size: 0.95rem;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-input {
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: #ffffff;
}

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

.time-inputs span {
    color: #6c757d;
    font-weight: 500;
}

/* Toggle Switch */
.schedule-toggle {
    width: 55px;
    height: 28px;
    background: #dee2e6;
    border-radius: 28px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.schedule-toggle.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.toggle-slider {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.schedule-toggle.active .toggle-slider {
    transform: translateX(27px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Save Button */
.save-schedule-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 25px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.save-schedule-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.save-schedule-btn:active {
    transform: translateY(-1px);
}

/* Empty States */
.empty-state {
    text-align: center;
    color: #6c757d;
    padding: 50px 30px;
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.3;
    color: #dee2e6;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.empty-state small {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
    .child-theme-calendar-container {
        max-width: 100%;
        padding: 15px;
    }
}

@media (max-width: 992px) {
    .calendar-header {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .calendar-main {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .upcoming-events {
        order: -1;
    }
    
    .stat-card {
        padding: 25px 20px;
    }
    
    .stat-number {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .child-theme-calendar-container {
        padding: 10px;
    }
    
    .calendar-header {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-card:last-child {
        grid-column: 1 / -1;
    }
    
    .calendar-widget,
    .upcoming-events,
    .study-schedule {
        padding: 20px;
        border-radius: 15px;
    }
    
    .calendar-day {
        min-height: 65px;
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .day-events {
        font-size: 0.65rem;
    }
    
    .upcoming-event {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        align-items: stretch;
    }
    
    .event-color {
        width: 100%;
        height: 4px;
        margin: 0 0 12px 0;
        border-radius: 2px;
    }
    
    .schedule-day {
        flex-direction: column;
        gap: 15px;
        padding: 25px 0;
        text-align: center;
    }
    
    .time-inputs {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .streak-display {
        padding: 20px;
    }
    
    .streak-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .calendar-header {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .calendar-grid {
        gap: 1px;
    }
    
    .calendar-day {
        min-height: 55px;
        padding: 8px 5px;
    }
    
    .day-number {
        font-size: 0.9rem;
    }
    
    .calendar-header-day {
        padding: 12px 5px;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .child-theme-calendar-container {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .calendar-widget,
    .upcoming-events,
    .study-schedule {
        background: #2d2d2d;
        border: 1px solid #404040;
        color: #e0e0e0;
    }
    
    .calendar-day {
        background: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .calendar-day:hover {
        background: #3d3d3d;
    }
    
    .calendar-day.has-events {
        background: linear-gradient(135deg, #2d4a2d 0%, #3d5a3d 100%);
    }
    
    .calendar-day.today {
        background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
        color: white;
    }
    
    .upcoming-event {
        background: linear-gradient(135deg, #3d3d3d 0%, #2d2d2d 100%);
        border-color: #404040;
    }
    
    .upcoming-event:hover {
        background: linear-gradient(135deg, #4d4d4d 0%, #3d3d3d 100%);
    }
    
    .time-input {
        background: #3d3d3d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .time-input:focus {
        border-color: #667eea;
        background: #4d4d4d;
    }
    
    .schedule-toggle {
        background: #404040;
    }
    
    .day-name,
    .event-details h4 {
        color: #e0e0e0;
    }
    
    .event-time {
        color: #a0a0a0;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .child-theme-calendar-container {
        background: white !important;
        box-shadow: none !important;
        color: black !important;
    }
    
    .stat-card {
        background: #f8f9fa !important;
        color: #333 !important;
        break-inside: avoid;
    }
    
    .calendar-widget,
    .upcoming-events,
    .study-schedule {
        background: white !important;
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    .calendar-day {
        border: 1px solid #dee2e6 !important;
        background: white !important;
        color: black !important;
    }
    
    .calendar-day.today {
        background: #f8f9fa !important;
        color: black !important;
        border: 2px solid #333 !important;
    }
    
    .save-schedule-btn,
    .schedule-toggle {
        display: none !important;
    }
    
    .upcoming-event {
        background: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
    }
    
    .streak-display {
        background: #f8f9fa !important;
        color: #333 !important;
    }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

.calendar-day:focus,
.time-input:focus,
.save-schedule-btn:focus,
.schedule-toggle:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.schedule-toggle:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .stat-card,
    .streak-display {
        border: 2px solid #000;
    }
    
    .calendar-day {
        border: 1px solid #000;
    }
    
    .calendar-day.today {
        background: #000 !important;
        color: #fff !important;
    }
    
    .upcoming-event {
        border: 1px solid #000;
    }
    
    .time-input {
        border: 2px solid #000;
    }
    
    .save-schedule-btn {
        background: #000 !important;
        border: 2px solid #000;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .stat-card,
    .calendar-day,
    .upcoming-event,
    .schedule-toggle,
    .toggle-slider,
    .save-schedule-btn,
    .time-input {
        transition: none !important;
    }
    
    .stat-card:hover,
    .calendar-day:hover,
    .upcoming-event:hover,
    .save-schedule-btn:hover {
        transform: none !important;
    }
}

/* ==========================================================================
   LOADING AND ANIMATION STATES
   ========================================================================== */

.calendar-loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.calendar-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #667eea;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: calendar-spin 1s linear infinite;
}

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

/* Fade in animation for calendar elements */
.calendar-widget,
.upcoming-events,
.study-schedule {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeInScale 0.8s ease-out;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==========================================================================
   TOOLTIP SYSTEM
   ========================================================================== */

.event-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 250px;
    word-wrap: break-word;
}

.event-tooltip.show {
    opacity: 1;
}

.event-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   CUSTOM SCROLLBAR
   ========================================================================== */

.child-theme-calendar-container::-webkit-scrollbar {
    width: 8px;
}

.child-theme-calendar-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.child-theme-calendar-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.child-theme-calendar-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Firefox scrollbar */
.child-theme-calendar-container {
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

/* ==========================================================================
   NOTIFICATION STYLES
   ========================================================================== */

.lp-achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    max-width: 380px;
    animation: slideInRight 0.5s ease-out;
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.notification-close:hover {
    background: rgba(255,255,255,0.2);
}

/* ==========================================================================
   CALENDAR MONTH NAVIGATION
   ========================================================================== */

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

.nav-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.month-year-display {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

/* ==========================================================================
   COURSE PROGRESS INTEGRATION
   ========================================================================== */

.course-progress-indicator {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    height: 3px;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 2px;
    transition: width 0.3s;
}

/* ==========================================================================
   EVENT TYPE SPECIFIC STYLES
   ========================================================================== */

.event-course-start {
    border-left: 4px solid #28a745;
}

.event-course-complete {
    border-left: 4px solid #007cba;
}

.event-quiz {
    border-left: 4px solid #ffc107;
}

.event-lesson {
    border-left: 4px solid #17a2b8;
}

/* ==========================================================================
   UTILITIES AND HELPERS
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.p-0 { padding: 0; }
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.hidden { display: none; }
.visible { display: block; }

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   MOBILE TOUCH IMPROVEMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .calendar-day,
    .upcoming-event,
    .schedule-toggle,
    .save-schedule-btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 10px 8px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .upcoming-event {
        padding: 15px 12px;
    }
    
    .save-schedule-btn {
        padding: 15px 25px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   ENHANCED VISUAL EFFECTS
   ========================================================================== */

/* Glassmorphism effect for modern browsers */
@supports (backdrop-filter: blur(10px)) {
    .calendar-widget,
    .upcoming-events,
    .study-schedule {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Subtle gradient backgrounds */
.child-theme-calendar-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Smooth focus transitions */
*:focus {
    transition: outline 0.2s ease-out, box-shadow 0.2s ease-out;
}

/* Enhanced button states */
.save-schedule-btn:focus:not(:hover) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.save-schedule-btn:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease-out;
}

/* ==========================================================================
   END OF STYLES
   ========================================================================== */

/* ==========================================================================
   CALENDAR NOTES & PLANS ADDITIONAL STYLES
   Add this to your child theme's style.css file
   ========================================================================== */

/* Modal Styles */
.calendar-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 95vh;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-weight: 300;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f3f4;
    position: relative;
}

.modal-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-tab:hover {
    color: #495057;
    background: rgba(102, 126, 234, 0.05);
}

.modal-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: inherit;
    background: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fafbff;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Color Picker */
.color-picker-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.color-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.color-option.selected {
    border-color: #333;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.color-option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Priority and Status Buttons */
.priority-buttons,
.status-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.priority-btn,
.status-btn {
    padding: 10px 18px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.priority-btn:hover,
.status-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
}

.priority-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.status-btn.selected {
    background: #28a745;
    border-color: #28a745;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.status-btn.selected.in-progress {
    background: #ffc107;
    border-color: #ffc107;
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.status-btn.selected.completed {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

/* Form Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 10px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

/* Items Lists */
.items-list {
    margin-bottom: 30px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.item-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.item-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.item-title {
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.item-meta {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

.item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.item-card p {
    margin: 12px 0 0 0;
    color: #495057;
    line-height: 1.5;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    margin-top: 5px;
}

.status-badge.pending {
    background: #ffeaa7;
    color: #d63031;
}

.status-badge.in-progress {
    background: #fdcb6e;
    color: #e17055;
}

.status-badge.completed {
    background: #55efc4;
    color: #00b894;
}

/* Calendar Day Indicators */
.calendar-day.has-notes-plans {
    position: relative;
}

.notes-plans-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    display: flex;
    gap: 3px;
}

.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.notes-dot {
    background: #007cba;
}

.plans-dot {
    background: #28a745;
}

/* Enhanced Calendar Day Hover Effect */
.calendar-day[data-date]:hover .notes-plans-indicator {
    transform: scale(1.2);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 10px;
    z-index: 10001;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    font-weight: 500;
    animation: slideInRight 0.4s ease-out;
    max-width: 400px;
}

.notification.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Empty States */
.items-list p {
    color: #6c757d;
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-tabs {
        margin-bottom: 20px;
    }
    
    .modal-tab {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .color-picker-group {
        gap: 8px;
    }
    
    .color-option {
        width: 35px;
        height: 35px;
    }
    
    .priority-buttons,
    .status-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .priority-btn,
    .status-btn {
        width: 100%;
        text-align: center;
    }
    
    .item-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .item-actions {
        align-self: flex-start;
    }
    
    .btn-primary {
        width: 100%;
        padding: 12px 25px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 2% auto;
        width: 98%;
    }
    
    .modal-body {
        padding: 15px;
        max-height: 80vh;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .color-option {
        width: 32px;
        height: 32px;
    }
    
    .item-card {
        padding: 15px;
    }
    
    .item-title {
        font-size: 1rem;
    }
    
    .modal-tabs {
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
        margin: 0 -15px 20px -15px;
        padding: 0 15px;
    }
}

/* ==========================================================================
   DARK MODE SUPPORT FOR MODAL
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .modal-content {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .modal-body {
        scrollbar-color: #667eea #404040;
    }
    
    .modal-body::-webkit-scrollbar-track {
        background: #404040;
    }
    
    .modal-tabs {
        border-bottom-color: #404040;
    }
    
    .modal-tab {
        color: #a0a0a0;
    }
    
    .modal-tab:hover {
        color: #e0e0e0;
        background: rgba(102, 126, 234, 0.1);
    }
    
    .modal-tab.active {
        color: #667eea;
        background: rgba(102, 126, 234, 0.15);
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        background: #3d3d3d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .form-input:focus,
    .form-textarea:focus,
    .form-select:focus {
        background: #4d4d4d;
        border-color: #667eea;
    }
    
    .form-label {
        color: #e0e0e0;
    }
    
    .priority-btn,
    .status-btn {
        background: #3d3d3d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .priority-btn:hover,
    .status-btn:hover {
        background: #4d4d4d;
        border-color: #667eea;
    }
    
    .item-card {
        background: linear-gradient(135deg, #3d3d3d 0%, #2d2d2d 100%);
        border-left-color: #667eea;
    }
    
    .item-title {
        color: #e0e0e0;
    }
    
    .item-card p {
        color: #c0c0c0;
    }
    
    .items-list p {
        background: #3d3d3d;
        border-color: #404040;
        color: #a0a0a0;
    }
}

/* ==========================================================================
   PRINT STYLES FOR MODAL
   ========================================================================== */

@media print {
    .calendar-modal {
        position: static !important;
        background: none !important;
        backdrop-filter: none !important;
    }
    
    .modal-content {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
        background: white !important;
        color: black !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    .modal-header {
        background: #f8f9fa !important;
        color: black !important;
    }
    
    .modal-close,
    .btn-danger,
    .item-actions {
        display: none !important;
    }
    
    .form-input,
    .form-textarea,
    .form-select,
    .priority-btn,
    .status-btn {
        border: 1px solid #dee2e6 !important;
        background: white !important;
        color: black !important;
    }
}
