
        :root {
            --body-bg-tint: rgba(0, 0, 0, 0.7);
            --bg-primary: rgba(0, 0, 0, 0.5);
            --bg-secondary: rgba(0, 0, 0, 0);
            --bg-tertiary: rgba(100, 100, 100, 0.5);
            --bg-interactive: #4b5563;
            --border-color: rgba(255, 255, 255, 0.2);
            --card-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
            --text-primary: #f3f4f6;
            --text-secondary: #9ca3af;
            --accent-color: #007bff;
            --accent-hover: #005bef;
            --highlight-color: #f59e0b;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            background-image: url('../Backgrounds/IMG_4500Blurred.webp');
            background-size: cover;
            background-attachment: fixed;
            background-position: center;
            color: var(--text-primary);
            margin: 0;
            padding: 1rem;
        }

        body::after {
            content: "";
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: var(--body-bg-tint);
            pointer-events: none;
            z-index: -1;
        }

        .container {
            display: flex;
            flex-direction: column;
            max-width: 1280px;
            margin: 0 auto;
            align-items: center;
        }

        /*general elements*/
        header {
            text-align: center;
            margin-bottom: 2rem;
            background-color: var(--bg-secondary);
            border-radius: 16px;
            
            padding: 5px;
        }
        header h1 {
            font-size: 2.25rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        header p {
            font-size: 1.125rem;
            color: var(--text-secondary);
        }

        .card {
            background-color: var(--bg-secondary);
            border-radius: 1rem;
            box-shadow: var(--card-shadow);
            border: 2px solid var(--border-color);
            padding: 1.5rem;
            margin-bottom: 2rem;
            width: 95%;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .card-header h2 {
            font-size: 1.5rem;
            font-weight: 600;
        }
        
        .pagination {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .pagination span {
            font-size: 1.125rem;
            font-weight: 500;
            text-align: center;
            width: 5rem;
        }
        
        
        button:disabled {
            background-color: var(--bg-tertiary);
            opacity: 0.5;
            cursor: not-allowed;
        }
        

        #prev-page:not(:disabled):hover {
            background-color: var(--bg-interactive);
        }
        
        /*calendar stuff*/
        #grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 0.75rem;
        }
        
        .day-cell {
            padding: 0.75rem;
            border-radius: 0.5rem;
            box-shadow: var(--card-shadow);
            display: flex;
            flex-direction: column;
            height: 7rem;
            transition: transform 0.2s, box-shadow 0.2s;
            background-color: var(--bg-tertiary);
            cursor: pointer;
        }

        .day-cell img {
            width: 36px;
            height: auto;
        }

        .day-cell:hover {
            transform: scale(1.05);
            box-shadow: var(--card-shadow);
        }

        .day-cell.today {
            outline: 3px solid var(--highlight-color);
        }
        
        .day-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.75rem;
            margin-bottom: 0.25rem;
        }
        
        .day-header .day-season {
            font-weight: 700;
            opacity: 0.8;
        }
        
        .day-header .day-total {
            opacity: 0.6;
        }
        
        .day-body {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            overflow: hidden;
        }

        .day-year {
            font-size: 0.55rem;
            font-weight: 700;
            opacity: 0.6;
        }
        
        .event-icon {
            font-size: 1.5rem; 
        }

        .event-icons {
            display: flex;
            gap: 0.5rem;
            font-size: 1.25rem;
            align-items: center;
        }
        .event-name {
             margin-top: auto; 
             font-size: 0.75rem; 
             font-weight: 600;
        }

        /*events section*/
        #events-list { 
            display: flex; flex-direction: column; gap: 1rem; 
        }
        .event-timer-item { 
            display: flex; 
            align-items: center; 
            justify-content: space-between; 
            background-color: var(--bg-tertiary); 
            padding: 0.75rem; 
            border-radius: 0.5rem; 
            min-height: 100px;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .event-timer-item:hover {
            transform: scale(1.02);
        }

        .event-timer-item img {
            width: 36px;
            height: auto;
        }

        .event-timer-info {
             display: flex; 
             align-items: center; 
             gap: 0.4rem; 
             margin: 4px;

        }
        .event-timer-info .event-name {
             font-weight: 600; 
        }

        .event-timer-info .expand-text {
            
            font-size: 0.75rem;
            transition: background-color 0.2s;
        }

        .event-timer-info .event-info {
             font-size: 0.75rem; 
             color: var(--text-secondary);
             display: flex;
             align-items: center; 
             margin: 8px 0;
        }
        .event-timer-countdown {
             font-family: monospace; 
             font-size: 1.125rem; 
             color: var(--highlight-color); 
        }
        

        /*modal section*/
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--body-bg-tint);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
        }

        .modal-overlay.visible {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background-color: var(--bg-primary);
            backdrop-filter: blur(6px);
            padding: 2rem;
            border-radius: 1rem;
            width: 95%;
            max-width: 500px;
            position: relative;
            transform: scale(0.95);
            transition: transform 0.3s;
        }

        .modal-content img {
            width: 48px;
            height: auto;
        }

        .modal-overlay.visible .modal-content {
            transform: scale(1);
        }

        .modal-close-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            font-size: 1.5rem;
        }

        .modal-header h3 { 
            font-size: 1.5rem; 
            font-weight: 600; 
            margin: 0; 
        }
        .modal-header p { 
            color: var(--text-secondary); 
            
        }
        .modal-body { 
            margin-top: 1.5rem; 
        }
        .modal-body h4 { 
            font-weight: 600; 
            border-bottom: 1px solid var(--border-color); 
            padding-bottom: 0.5rem; 
            margin: 0 0 1rem 0; 
        }
        .modal-event-list { 
            list-style: none; 
            padding: 0; 
            margin: 0; 
            display: flex; 
            flex-direction: column; 
            gap: 0.75rem; 
        }
        .modal-event-item { 
            display: flex; 
            align-items: center; 
            gap: 1rem; 
        }
        .modal-event-item .event-icon { 
            font-size: 1.75rem; 
        }

        .modal-event-item span {
            display: flex;
            align-items: center;
            gap: 4px
        }

        /* accordion + table */
        .accordion { 
            margin-top: 1rem; 
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .accordion-item {
            background: var(--bg-primary);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.04);
        }
        .accordion-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.6rem 0.8rem;
        }
        .accordion-header .header-left {
            display: flex;
            gap: 0.6rem;
            align-items: center;
            margin: 8px;
        }
        .accordion-header h3 {
            margin: 0;
            font-size: 1rem;
            font-weight: 600;
        }
        .accordion-body {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.28s ease;
        }
        .accordion-body.expanded {
            padding: 0.75rem;
            max-height: 1000px;
        }
        .occurrences-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9rem;
        }
        .occurrences-table th, .occurrences-table td {
            text-align: left;
            padding: 0.45rem 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        .occurrences-table th {
            font-weight: 600;
            color: var(--text-secondary);
            font-size: 0.8rem;
        }
        .occ-extra { color: var(--text-secondary); font-size: 0.85rem; display:flex; gap:6px; align-items:center; }

        /* farming stuff*/
        .farming-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            margin-bottom: 0.5rem;
            align-items: center;
        }

        .farming-filter {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.25rem 0.45rem;
            background: var(--bg-tertiary);
            border-radius: 6px;
            font-size: 0.85rem;
            cursor: pointer;
        }

        .farming-filter input[type="checkbox"] { 
            transform: scale(1.05); 
        }

        .farming-filter .crop-icon {
             margin-right: 0.25rem; 
        }

        @media (max-width:640px) {
            .occurrences-table th:nth-child(3), .occurrences-table td:nth-child(3) { display:none; } 
            
        }

        @media (max-width:390px) {
            .pagination {
                flex-direction: column;
                gap: 0.5rem;
            }
        }