﻿/* Calendar Widget Styles */
.full-calendar-widget {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    width: 100%;
}

    .full-calendar-widget .full-cal-view-tabs {
        display: flex;
        gap: 0.5rem;
        background: #0d2b33;
        border-radius: 8px;
        padding: 0.25rem;
        margin-bottom: 1rem;
        width: 20%;
    }

    .full-calendar-widget .full-cal-view-tab {
        flex: 1;
        padding: 0.5rem 0;
        border: none;
        border-radius: 6px;
        background: transparent;
        font-size: 0.75rem;
        font-weight: 600;
        color: white;
        cursor: pointer;
        transition: all 0.2s;
    }

        .full-calendar-widget .full-cal-view-tab.active {
            background: white;
            color: #1e5f8a;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

    .full-calendar-widget .full-calendar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;
    }

    .full-calendar-widget .full-cal-nav-btn {
        background: #f3f4f6;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        padding: 0.5rem 0.75rem;
        cursor: pointer;
        font-size: 1rem;
        font-weight: bold;
        transition: all 0.2s;
        margin: 1px;
    }


        .full-calendar-widget .full-cal-nav-btn:hover {
            background: #e5e7eb;
        }

    .full-calendar-widget .full-calendar-title {
        font-size: 1.3rem;
        font-weight: 600;
        margin: 0px 0px 0px 50px;
        color: #1f2937;
    }

    .full-calendar-widget .full-calendar-weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        text-align: center;
        font-size: 0.7rem;
        font-weight: 700;
        color: #6b7280;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .full-calendar-widget .full-calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        margin-bottom: 1rem;
        gap: 4px;
    }

    .full-calendar-widget .full-calendar-day {
        aspect-ratio: 1;
        padding: 0.5rem 0.25rem;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
        background: #f9fafb;
        text-align: center;
        font-size: 0.8rem;
        font-weight: 500;
        position: relative;
        border: 1px solid #0f2d38;
    }

        .full-calendar-widget .full-calendar-day:hover {
            background: #e0e7ff;
            transform: scale(1.02);
        }

        .full-calendar-widget .full-calendar-day.today {
            
            background: linear-gradient(135deg, #dbeafe, #bfdbfe);
        }

        .full-calendar-widget .full-calendar-day.has-event {
        }

        .full-calendar-widget .full-calendar-day.selected {
            background: #1e5f8a;
            color: white;
            border-color: #1e5f8a;
        }

        .full-calendar-widget .full-calendar-day.other-month {
            color: #9ca3af;
            background: #f3f4f6;
            cursor: default;
            border: none;
        }

    .full-calendar-widget .full-event-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        margin-top: 2px;
        display: inline-block;
        margin-left: 4px;
    }

    .full-calendar-widget .full-week-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
        margin-bottom: 1rem;
    }

    .full-calendar-widget .full-week-day-col {
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 8px;
        cursor: pointer;
        background: #f9fafb;
        transition: all 0.2s;
    }

        .full-calendar-widget .full-week-day-col:hover {
            background: #e0e7ff;
            transform: scale(1.02);
        }

        .full-calendar-widget .full-week-day-col.today-col {
            background: linear-gradient(135deg, #dbeafe, #bfdbfe);
        }

    .full-calendar-widget .full-week-day-header {
        text-align: center;
        font-weight: 700;
        padding-bottom: 5px;
    }

        .full-calendar-widget .full-week-day-header .full-week-day-num {
            font-size: 1.1rem;
        }

    .full-calendar-widget .full-week-event-chip {
        background: #1e5f8a;
        color: white;
        padding: 2px 4px;
        border-radius: 4px;
        font-size: 10px;
        margin-bottom: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.2s;
    }

        .full-calendar-widget .full-week-event-chip:hover {
            opacity: 0.8;
            transform: scale(1.02);
        }

    .full-calendar-widget .full-week-more {
        font-size: 10px;
        color: #6b7280;
        text-align: center;
    }

    .full-calendar-widget .full-day-view-header {
        margin-bottom: 15px;
        font-weight: 700;
        color: #1e5f8a;
    }

    .full-calendar-widget .full-day-timeline {
        max-height: 300px;
        overflow-y: auto;
    }

    .full-calendar-widget .full-day-event-row {
        display: flex;
        gap: 10px;
        padding: 10px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 8px;
        cursor: pointer;
        background: #f9fafb;
        transition: all 0.2s;
    }

        .full-calendar-widget .full-day-event-row:hover {
            background: #e0e7ff;
            transform: translateX(5px);
        }

    .full-calendar-widget .full-day-event-time {
        min-width: 55px;
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
    }

    .full-calendar-widget .full-day-event-bar {
        width: 3px;
        border-radius: 2px;
    }

    .full-calendar-widget .full-day-event-info {
        flex: 1;
    }

    .full-calendar-widget .full-day-event-title {
        font-weight: 600;
        margin-bottom: 2px;
    }

    .full-calendar-widget .full-day-event-loc {
        font-size: 11px;
        color: #6b7280;
    }

    .full-calendar-widget .full-upcoming-section {
        border-top: 1px solid #e5e7eb;
        padding-top: 1rem;
        margin-top: 0.5rem;
    }

    .full-calendar-widget .full-upcoming-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 0.75rem;
    }

        .full-calendar-widget .full-upcoming-header h4 {
            font-size: 0.85rem;
            font-weight: 600;
            margin: 0;
        }

    .full-calendar-widget .full-upcoming-list {
        max-height: 250px;
        overflow-y: auto;
    }

    .full-calendar-widget .full-upcoming-event-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0.75rem;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
        margin-bottom: 6px;
        background: #f9fafb;
        border-left: 3px solid;
        border-right: 1px solid #e5e7eb;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
    }

        .full-calendar-widget .full-upcoming-event-item:hover {
            transform: translateX(5px);
            background: #e0e7ff;
        }

    .full-calendar-widget .full-event-date-badge {
        text-align: center;
        min-width: 48px;
        background: white;
        border-radius: 8px;
        padding: 0.5rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .full-calendar-widget .full-event-day {
        font-size: 1rem;
        font-weight: 700;
        display: block;
    }

    .full-calendar-widget .full-event-month {
        font-size: 0.65rem;
        text-transform: uppercase;
        font-weight: 600;
        color: #6b7280;
    }

    .full-calendar-widget .full-event-info {
        flex: 1;
    }

    .full-calendar-widget .full-event-title {
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 2px;
        color: black;
    }

    .full-calendar-widget .full-event-time {
        font-size: 0.7rem;
        color: #6b7280;
    }

    .full-calendar-widget .full-event-type-tag {
        font-size: 0.6rem;
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        color: white;
        font-weight: 500;
        white-space: nowrap;
    }

    .full-calendar-widget .full-no-events-msg {
        text-align: center;
        padding: 1.5rem;
        color: #9ca3af;
        font-size: 0.8rem;
    }

/* Modal Styles */
.full-event-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fullFadeIn 0.3s;
}

.full-event-modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: fullSlideDown 0.3s;
}

.full-event-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1e5f8a, #2c7cb6);
    color: white;
    border-radius: 16px 16px 0 0;
}

    .full-event-modal-header h3 {
        margin: 0;
        font-size: 1.25rem;
    }

.full-event-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
}

    .full-event-modal-close:hover {
        transform: scale(1.2);
    }

.full-event-modal-body {
    padding: 1.5rem;
}

.full-event-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    padding: 8px;
    border-bottom: 1px solid #e5e7eb;
}

    .full-event-detail-row.description {
        flex-direction: column;
    }

.full-event-detail-icon {
    font-size: 1.2rem;
    min-width: 30px;
}

.full-event-detail-row span:last-child {
    flex: 1;
    color: #374151;
    line-height: 1.5;
}

.full-event-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

    .full-event-modal-footer h4 {
        margin: 0 0 0.5rem 0;
        font-size: 0.9rem;
        color: #1e5f8a;
    }

#fullModalAttachments a {
    display: inline-block;
    margin-right: 10px;
    padding: 5px 10px;
    background: #1e5f8a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    transition: all 0.2s;
}

    #fullModalAttachments a:hover {
        background: #2c7cb6;
        transform: translateY(-2px);
    }

@keyframes fullFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fullSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.full-upcoming-label-period {
    font-weight: 400;
    opacity: 0.75;
    font-size: 0.9em;
}
/* =====================================================
   MOBILE RESPONSIVE FIXES - Add to your existing CSS
   ===================================================== */

/* ===================================================== */
/* MOBILE RESPONSIVE STYLES - FIXED FOR COMPACT VIEW */
/* ===================================================== */

@media (max-width: 768px) {
    /* Main container */
    .full-calendar-widget {
        padding: 0.5rem;
        overflow-x: auto;
    }

        /* View Tabs - full width */
        .full-calendar-widget .full-cal-view-tabs {
            width: 40% !important;
            margin-bottom: 0.75rem;
            gap: 0.25rem;
        }

        .full-calendar-widget .full-cal-view-tab {
            padding: 0.4rem 0;
            font-size: 0.7rem;
        }

        /* Header - one row */
        .full-calendar-widget .full-calendar-header {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            gap: 5px;
            margin-bottom: 0.75rem;
            flex-wrap: nowrap;
        }

        .full-calendar-widget .full-cal-nav-btn {
            padding: 0.3rem 0.5rem;
            font-size: 0.8rem;
            flex-shrink: 0;
        }

        .full-calendar-widget .full-calendar-title {
            font-size: 0.9rem;
            margin: 0 !important;
            text-align: center;
            flex: 1;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        /* Weekday headers - compact */
        .full-calendar-widget .full-calendar-weekdays {
            font-size: 0.55rem;
            margin-bottom: 0.2rem;
            padding: 0.3rem 0;
            background-color: #0d2b33 !important;
            color: white !important;
            border-radius: 6px;
        }

            .full-calendar-widget .full-calendar-weekdays div {
                font-size: 0.55rem;
                font-weight: 600;
            }

        /* Calendar Grid - COMPACT FIXED */
        .full-calendar-widget .full-calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
            margin-bottom: 0.75rem;
        }

        /* Day box - much smaller */
        .full-calendar-widget .full-calendar-day {
            min-height: 55px;
            padding: 3px 1px;
            border-radius: 6px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            border: 1px solid #e2e8f0;
            background: #f9fafb;
            cursor: pointer;
            overflow: hidden;
        }

        .full-calendar-widget .full-day-number {
            font-size: 0.7rem;
            font-weight: 600;
            display: block;
            margin-bottom: 2px;
            line-height: 1.2;
        }

        /* Event dots container */
        .full-calendar-widget .full-event-dots-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1px;
            margin-top: 0px;
            width: 100%;
            max-height: 20px;
            overflow: hidden;
        }

        .full-calendar-widget .full-event-dot-wrapper {
            display: inline-block;
        }

        /* Convert event text to colored dots */
        .full-calendar-widget .full-calendar-day .full-week-event-chip {
            font-size: 0px !important;
            padding: 0px !important;
            width: 6px !important;
            height: 6px !important;
            border-radius: 50% !important;
            display: inline-block !important;
            margin: 0 1px !important;
            text-indent: -9999px !important;
            white-space: nowrap !important;
            overflow: hidden !important;
        }

        /* More events indicator */
        .full-calendar-widget .full-event-dot-more {
            font-size: 5px;
            padding: 0;
            margin-left: 1px;
            font-weight: bold;
            color: #666;
        }

        /* Today highlight */
        .full-calendar-widget .full-calendar-day.today {
            background: linear-gradient(135deg, #dbeafe, #bfdbfe);
            border-color: #1e5f8a;
        }

        /* Selected day */
        .full-calendar-widget .full-calendar-day.selected {
            background: #1e5f8a;
            color: white;
            border-color: #1e5f8a;
        }

            .full-calendar-widget .full-calendar-day.selected .full-day-number {
                color: white;
            }

        /* Other month days */
        .full-calendar-widget .full-calendar-day.other-month {
            opacity: 0.5;
            background: #f3f4f6;
        }

        /* WEEK VIEW - compact */
        .full-calendar-widget .full-week-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
            margin-bottom: 1rem;
        }

        .full-calendar-widget .full-week-day-col {
            padding: 4px 2px;
            border-radius: 8px;
        }

        .full-calendar-widget .full-week-day-header {
            font-size: 0.6rem;
            padding-bottom: 2px;
        }

        .full-calendar-widget .full-week-day-num {
            font-size: 0.8rem;
            font-weight: 700;
        }

        .full-calendar-widget .full-week-event-chip {
            font-size: 6px !important;
            padding: 2px 2px !important;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* DAY VIEW - compact */
        .full-calendar-widget .full-day-view-header {
            font-size: 0.8rem;
            padding: 6px 4px;
        }

        .full-calendar-widget .full-day-event-row {
            padding: 8px 6px;
            gap: 6px;
        }

        .full-calendar-widget .full-day-event-time {
            font-size: 0.65rem;
            min-width: 45px;
        }

        .full-calendar-widget .full-day-event-title {
            font-size: 0.75rem;
        }

        /* UPCOMING SECTION - compact */
        .full-calendar-widget .full-upcoming-section {
            padding-top: 0.5rem;
            margin-top: 0.25rem;
        }

        .full-calendar-widget .full-upcoming-header h4 {
            font-size: 0.8rem;
        }

        .full-calendar-widget .full-upcoming-list {
            max-height: 280px;
        }

        .full-calendar-widget .full-upcoming-event-item {
            padding: 0.5rem;
            gap: 8px;
            border-radius: 10px;
            margin-bottom: 6px;
        }

        .full-calendar-widget .full-event-date-badge {
            min-width: 36px;
            padding: 0.25rem;
        }

        .full-calendar-widget .full-event-day {
            font-size: 0.8rem;
        }

        .full-calendar-widget .full-event-month {
            font-size: 0.5rem;
        }

        .full-calendar-widget .full-event-title {
            font-size: 0.75rem;
        }

        .full-calendar-widget .full-event-time {
            font-size: 0.6rem;
        }

        .full-calendar-widget .full-event-type-tag {
            font-size: 0.5rem;
            padding: 0.15rem 0.5rem;
        }

    /* Modal */
    .full-event-modal-content {
        width: 95%;
        margin: 20% auto;
        border-radius: 20px;
    }

    .full-event-modal-header {
        padding: 0.7rem 1rem;
    }

        .full-event-modal-header h3 {
            font-size: 0.95rem;
        }

    .full-event-modal-body {
        padding: 0.8rem;
    }

    .full-event-detail-row {
        gap: 8px;
        margin-bottom: 0.6rem;
        padding: 4px;
    }
}

/* Extra small devices (under 480px) */
@media (max-width: 480px) {
    .full-calendar-widget {
        padding: 0.4rem;
    }

        .full-calendar-widget .full-calendar-grid {
            gap: 1px;
        }

        .full-calendar-widget .full-calendar-day {
            min-height: 48px;
            padding: 2px 1px;
        }

        .full-calendar-widget .full-day-number {
            font-size: 0.65rem;
        }

        .full-calendar-widget .full-calendar-day .full-week-event-chip {
            width: 5px !important;
            height: 5px !important;
        }

        .full-calendar-widget .full-week-event-chip {
            font-size: 5px !important;
        }

        .full-calendar-widget .full-event-dot-more {
            font-size: 4px;
        }
}

/* Landscape mode */
@media (max-width: 768px) and (orientation: landscape) {
    .full-calendar-widget .full-calendar-day {
        min-height: 42px;
    }

    .full-calendar-widget .full-upcoming-list {
        max-height: 180px;
    }
}

/* Make sure weekday header matches your design */
.full-calendar-weekdays {
    background-color: #0d2b33;
    color: white;
    padding: 9px;
    border-radius: 8px;
    margin-bottom: 8px;
}