/**
 * ============================================================
 * ANDROLAB SUITE — OPERATIONS CALENDAR (Optimized + Grouped)
 * ============================================================
 */

/* === Layout === */
.androlab-calendar-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
    .androlab-calendar-wrapper {
        grid-template-columns: 1fr;
    }
}

/* === Calendar === */
#androlab-calendar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    min-height: 700px;
}

.fc {
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 14px;
    color: #111827;
}
.fc-toolbar-title {
    font-size: 18px !important;
    font-weight: 600 !important;
}
.fc .fc-button {
    background: #2563eb;
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 5px 10px;
    font-weight: 500;
    cursor: pointer;
}
.fc .fc-button:hover { background: #1e4ed8; }
.fc .fc-button:disabled { opacity: 0.5; }

/* === Grouped Event Bubbles === */
.fc-event {
    border-radius: 5px !important;
    font-size: 12.5px !important;
    padding: 3px 6px !important;
    color: #fff !important;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    transition: transform 0.15s ease;
}
.fc-event:hover { transform: scale(1.03); }

.fc-event.event-type-renewal { background: #2563eb !important; }
.fc-event.event-type-overdue { background: #ef4444 !important; }
.fc-event.event-type-task { background: #10b981 !important; }

/* === Side Panel === */
.calendar-side-panel {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}
.calendar-side-panel h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111827;
}
.calendar-side-panel h3 i { color: #2563eb; }

/* === Add Task Form === */
#androlab-add-task-form input,
#androlab-add-task-form textarea,
#androlab-add-task-form select {
    width: 100%;
    margin-bottom: 12px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}
#androlab-add-task-form button {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
}
#androlab-add-task-form button:hover { background: #1e4ed8; }

/* === Today's Summary === */
#calendar-today-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 20px;
}
#calendar-today-summary h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111827;
}
#calendar-today-summary ul {
    list-style: disc;
    margin-left: 20px;
    color: #374151;
}

/* === Filters === */
.androlab-calendar-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.androlab-calendar-filters .filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.androlab-calendar-filters select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}
.androlab-calendar-filters .filter-label {
    font-weight: 600;
    color: #111827;
}
.calendar-legend {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #374151;
}
.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

/* === Modal Overlay Events === */
.overlay-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}
.event-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}
.event-item.completed {
    background: #f3f4f6;
    color: #6b7280;
}
.event-title {
    font-weight: 600;
    font-size: 14px;
}
.event-item .event-desc {
    font-size: 13px;
    color: #374151;
    margin: 4px 0 6px;
    line-height: 1.4;
}

.event-meta {
    font-size: 13px;
    color: #4b5563;
}
.event-actions {
    display: flex;
    justify-content: flex-end;
}
.event-actions button {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 13px;
    cursor: pointer;
}
.event-actions button:hover { background: #1e4ed8; }
.completed-label {
    font-size: 13px;
    color: #10b981;
    font-weight: 600;
}

/* === Priority Tags === */
.priority {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}
.priority.low { background: #10b981; }
.priority.medium { background: #f59e0b; }
.priority.high { background: #ef4444; }
