        /* CSS RESET & BASE STYLES */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: #a0c4ff;
            color: #333;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: 2rem;
        }

        .content-body {
            width: 100%;
            max-width: 1600px;
            background-color: #ffffff;
            border-radius: 15px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            animation: fadeIn 0.5s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.98); }
            to { opacity: 1; transform: scale(1); }
        }

        /* HEADER */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid #eef2ff;
        }

        .header h1 {
            font-size: 2.5rem;
            font-weight: 700;
            color: #1e3a8a;
        }

        .back-btn {
            background-color: #4f46e5;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 0.8rem 1.5rem;
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            transition: background-color 0.2s ease;
        }

        .back-btn:hover {
            background-color: #3730a3;
        }

        /* TOP SECTION */
        .top-section {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        /* CALENDAR NAVIGATION */
        .calendar-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .calendar-nav button {
            background-color: #f3f4f6;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 0.5rem 1rem;
            cursor: pointer;
            font-family: 'Poppins', sans-serif;
            transition: background-color 0.2s ease;
        }

        .calendar-nav button:hover {
            background-color: #e5e7eb;
        }

        .current-month {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1e3a8a;
        }

        /* MAIN CALENDAR */
        .calendar-container {
            background-color: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 15px;
            padding: 1.5rem;
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 1px;
            background-color: #e2e8f0;
            border-radius: 8px;
            overflow: hidden;
        }

        .calendar-day-header {
            background-color: #1e3a8a;
            color: white;
            padding: 1rem;
            text-align: center;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .calendar-day {
            background-color: white;
            padding: 1rem;
            min-height: 100px;
            cursor: pointer;
            transition: background-color 0.2s ease;
            position: relative;
        }

        .calendar-day:hover {
            background-color: #f8fafc;
        }

        .calendar-day.today {
            background-color: #eef2ff;
            font-weight: 700;
        }

        .calendar-day.other-month {
            background-color: #f9fafb;
            color: #9ca3af;
        }

        .calendar-day.selected {
            background-color: #dbeafe;
            border: 2px solid #3b82f6;
        }

        .day-number {
            font-weight: 600;
            color: #1e3a8a;
            margin-bottom: 0.5rem;
        }

        .event-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin: 1px;
            display: inline-block;
        }

        .event-dot.high { background-color: #ef4444; }
        .event-dot.medium { background-color: #f59e0b; }
        .event-dot.low { background-color: #10b981; }

        /* QUICK ACTIONS PANEL */
        .quick-actions {
            background-color: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 15px;
            padding: 1.5rem;
        }

        .quick-actions h3 {
            color: #1e3a8a;
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

        .action-btn {
            width: 100%;
            background-color: #4f46e5;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 0.8rem;
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            cursor: pointer;
            margin-bottom: 0.8rem;
            transition: background-color 0.2s ease;
        }

        .action-btn:hover {
            background-color: #3730a3;
        }

        .action-btn.secondary {
            background-color: #10b981;
        }

        .action-btn.secondary:hover {
            background-color: #059669;
        }

        /* BOTTOM SECTION */
        .bottom-section {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        /* EVENT FORM */
        .event-form {
            background-color: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 15px;
            padding: 1.5rem;
        }

        .event-form h3 {
            color: #1e3a8a;
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

        .form-group {
            margin-bottom: 1rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: #374151;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-family: 'Poppins', sans-serif;
            font-size: 0.9rem;
        }

        .form-group textarea {
            resize: vertical;
            min-height: 80px;
        }

        .form-row {
            display: flex;
            gap: 1rem;
        }

        .form-row .form-group {
            flex: 1;
        }

        .submit-btn {
            background-color: #10b981;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 0.8rem 1.5rem;
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .submit-btn:hover {
            background-color: #059669;
        }

        /* UPCOMING EVENTS */
        .upcoming-events {
            background-color: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 15px;
            padding: 1.5rem;
        }

        .upcoming-events h3 {
            color: #1e3a8a;
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

        .event-item {
            background-color: white;
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            border-left: 4px solid #4f46e5;
            position: relative; /* For delete button positioning */
        }

        .event-title {
            font-weight: 600;
            color: #1e3a8a;
            margin-bottom: 0.3rem;
        }

        .event-time {
            font-size: 0.9rem;
            color: #6b7280;
            margin-bottom: 0.3rem;
        }

        .event-type {
            font-size: 0.8rem;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            display: inline-block;
            background-color: #eef2ff;
            color: #4f46e5;
        }

        .delete-event-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: none;
            border: none;
            color: #ef4444;
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0.2rem;
            line-height: 1;
        }
        .delete-event-btn:hover {
            color: #dc2626;
        }

        /* ANALYTICS PANEL */
        .analytics-panel {
            background-color: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 15px;
            padding: 1.5rem;
        }

        .analytics-panel h3 {
            color: #1e3a8a;
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

        .chart-container {
            height: 200px;
            margin-bottom: 1rem;
        }

        .analytics-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .stat-item {
            background-color: white;
            border-radius: 8px;
            padding: 1rem;
            text-align: center;
        }

        .stat-number {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1e3a8a;
        }

        .stat-label {
            font-size: 0.9rem;
            color: #6b7280;
        }

        /* WEEKLY VIEW */
        .weekly-view {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .week-day {
            background-color: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            padding: 1rem;
            text-align: center;
        }

        .week-day-header {
            font-weight: 600;
            color: #1e3a8a;
            margin-bottom: 0.5rem;
        }

        .week-day-date {
            font-size: 1.5rem;
            font-weight: 700;
            color: #4f46e5;
            margin-bottom: 0.5rem;
        }

        .week-day-events {
            font-size: 0.8rem;
            color: #6b7280;
        }

        /* MODAL */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background-color: white;
            margin: auto;
            padding: 2rem;
            border-radius: 15px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            animation: modalFadeIn 0.3s ease-out;
        }

        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .modal-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1e3a8a;
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #6b7280;
        }

        .close-btn:hover {
            color: #374151;
        }

        /* DARK MODE STYLES */
        [data-theme="dark"] {
            background-color: #1e293b;
        }

        [data-theme="dark"] .content-body {
            background-color: #334155;
            color: #e2e8f0;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        [data-theme="dark"] .header h1 {
            color: #60a5fa;
        }

        [data-theme="dark"] .back-btn {
            background-color: #3b82f6;
        }

        [data-theme="dark"] .back-btn:hover {
            background-color: #2563eb;
        }

        [data-theme="dark"] .calendar-container,
        [data-theme="dark"] .quick-actions,
        [data-theme="dark"] .event-form,
        [data-theme="dark"] .upcoming-events,
        [data-theme="dark"] .analytics-panel {
            background-color: #475569;
            border-color: #64748b;
            color: #e2e8f0;
        }

        [data-theme="dark"] .calendar-container h3,
        [data-theme="dark"] .quick-actions h3,
        [data-theme="dark"] .event-form h3,
        [data-theme="dark"] .upcoming-events h3,
        [data-theme="dark"] .analytics-panel h3 {
            color: #60a5fa;
        }

        [data-theme="dark"] .current-month {
            color: #60a5fa;
        }

        [data-theme="dark"] .calendar-nav button {
            background-color: #1e293b;
            border-color: #475569;
            color: #e2e8f0;
        }

        [data-theme="dark"] .calendar-nav button:hover {
            background-color: #334155;
        }

        [data-theme="dark"] .calendar-day {
            background-color: #1e293b;
            border-color: #475569;
        }

        [data-theme="dark"] .calendar-day:hover {
            background-color: #334155;
        }

        [data-theme="dark"] .calendar-day.today {
            background-color: #475569;
            color: #60a5fa;
        }

        [data-theme="dark"] .calendar-day.other-month {
            background-color: #334155;
            color: #64748b;
        }

        [data-theme="dark"] .calendar-day.selected {
            background-color: #1e40af;
            border-color: #3b82f6;
        }

        [data-theme="dark"] .day-number {
            color: #e2e8f0;
        }

        [data-theme="dark"] .action-btn {
            background-color: #3b82f6;
        }

        [data-theme="dark"] .action-btn:hover {
            background-color: #2563eb;
        }

        [data-theme="dark"] .action-btn.secondary {
            background-color: #059669;
        }

        [data-theme="dark"] .action-btn.secondary:hover {
            background-color: #047857;
        }

        [data-theme="dark"] .form-group input,
        [data-theme="dark"] .form-group select,
        [data-theme="dark"] .form-group textarea {
            background-color: #1e293b;
            border-color: #475569;
            color: #e2e8f0;
        }

        [data-theme="dark"] .form-group input::placeholder,
        [data-theme="dark"] .form-group textarea::placeholder {
            color: #94a3b8;
        }

        [data-theme="dark"] .form-group label {
            color: #cbd5e1;
        }

        [data-theme="dark"] .submit-btn {
            background-color: #059669;
        }

        [data-theme="dark"] .submit-btn:hover {
            background-color: #047857;
        }

        [data-theme="dark"] .event-item {
            background-color: #1e293b;
            border-left-color: #3b82f6;
        }

        [data-theme="dark"] .event-title {
            color: #60a5fa;
        }

        [data-theme="dark"] .event-time {
            color: #94a3b8;
        }

        [data-theme="dark"] .event-type {
            background-color: #1e40af;
            color: #dbeafe;
        }

        [data-theme="dark"] .delete-event-btn {
            color: #ef4444;
        }
        [data-theme="dark"] .delete-event-btn:hover {
            color: #dc2626;
        }

        [data-theme="dark"] .stat-item {
            background-color: #1e293b;
            border-color: #475569;
        }

        [data-theme="dark"] .stat-number {
            color: #60a5fa;
        }

        [data-theme="dark"] .stat-label {
            color: #94a3b8;
        }

        [data-theme="dark"] .week-day {
            background-color: #475569;
            border-color: #64748b;
        }

        [data-theme="dark"] .week-day-header {
            color: #60a5fa;
        }

        [data-theme="dark"] .week-day-date {
            color: #3b82f6;
        }

        [data-theme="dark"] .week-day-events {
            color: #94a3b8;
        }

        [data-theme="dark"] .modal-content {
            background-color: #334155;
            color: #e2e8f0;
        }

        [data-theme="dark"] .modal-title {
            color: #60a5fa;
        }

        [data-theme="dark"] .close-btn {
            color: #94a3b8;
        }

        [data-theme="dark"] .close-btn:hover {
            color: #cbd5e1;
        }

        /* THEME TOGGLE BUTTON */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .theme-btn {
            background-color: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 25px;
            padding: 0.5rem 1rem;
            cursor: pointer;
            font-size: 1.2rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .theme-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        }

        .theme-btn .moon-icon {
            display: none;
        }

        [data-theme="dark"] .theme-btn {
            background-color: #475569;
            border-color: #64748b;
            color: #e2e8f0;
        }

        [data-theme="dark"] .theme-btn .sun-icon {
            display: none;
        }

        [data-theme="dark"] .theme-btn .moon-icon {
            display: inline;
        }

        /* SMOOTH TRANSITIONS FOR THEME CHANGE */
        *, *::before, *::after {
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        }

        /* RESPONSIVE DESIGN */
        @media (max-width: 1024px) {
            .top-section,
            .bottom-section {
                grid-template-columns: 1fr;
            }
            
            .weekly-view {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 768px) {
            body {
                padding: 1rem;
            }
            
            .content-body {
                padding: 1.5rem;
            }
            
            .header h1 {
                font-size: 2rem;
            }
            
            .calendar-day {
                min-height: 70px;
                padding: 0.5rem;
            }
            
            .weekly-view {
                grid-template-columns: 1fr;
            }
        }