        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        header {
            background-color: #1a5fb4;
            color: white;
            padding: 1rem 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            text-decoration: none;
            color: white;
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 1.5rem;
        }
        
        nav ul li a {
            color: white;
            text-decoration: none;
            transition: opacity 0.3s;
        }
        
        nav ul li a:hover {
            opacity: 0.8;
        }
        
        .messages {
            margin: 1rem 0;
            padding: 1rem;
            border-radius: 4px;
        }
        
        .success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        main {
            padding: 2rem 0;
        }
        
        .page-title {
            color: #1a5fb4;
        font-size: 1.5rem;
        }
        
        .intro {
            text-align: center;
            max-width: 800px;
            margin: 0 auto 2rem;
            padding: 1.5rem;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .current-month-section {
            margin-bottom: 3rem;
            padding: 1.5rem;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.07);
        }
        
        .current-month-header {
            text-align: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #eee;
        }
        
        .current-month-title {
            font-size: 1.8rem;
            color: #1a5fb4;
            margin-bottom: 0.5rem;
        }
        
        .current-month-subtitle {
            color: #666;
            font-size: 0.95rem;
        }
        
        .year-controls {
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;
            gap: 1rem;
        }
        
        .year-btn {
            background-color: #1a5fb4;
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1rem;
            transition: background-color 0.2s;
        }
        
        .year-btn:hover {
            background-color: #0d47a1;
        }
        
        .current-year {
            display: flex;
            align-items: center;
            font-size: 1.5rem;
            font-weight: bold;
            color: #333;
        }
        
        .calendar-type {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }
        
        .calendar-type button {
            background-color: #f0f0f0;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.2s, transform 0.2s;
            font-size: 1rem;
        }
        
        .calendar-type button.active {
            background-color: #1a5fb4;
            color: white;
            transform: translateY(-2px);
        }
        
        .calendar-type button:hover:not(.active) {
            background-color: #e0e0e0;
        }
        
        .calendars-container {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        .calendars-container .page-title{text-align:center;}
        
        .all-months-section {
            margin-top: 2rem;
        }
        
        .all-months-header {
            text-align: center;
            margin-bottom: 2rem;
            color: #666;
            font-size: 1.2rem;
            position: relative;
            padding: 1rem 0;
        }
        
        .all-months-header::before,
        .all-months-header::after {
            content: "";
            position: absolute;
            top: 50%;
            width: 30%;
            height: 1px;
            background-color: #ddd;
        }
        
        .all-months-header::before {
            left: 0;
        }
        
        .all-months-header::after {
            right: 0;
        }
        
        .month-calendar {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            overflow-x: auto;
        }

        .month-header {
            text-align: center;
            margin-bottom: 1rem;
            color: #1a5fb4;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #eee;
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 5px;
            min-width: 600px;
        }
        
        .calendar-header {
            background-color: #f0f0f0;
            font-weight: bold;
            text-align: center;
            padding: 0.75rem 0.25rem;
            border-radius: 4px;
            font-size: 0.85rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .calendar-day {
            /*aspect-ratio: 1;    day div 1:1*/
            border: 1px solid #eee;
            padding: 5px 3px;
            border-radius: 4px;
            position: relative;
            min-height: 70px;
            font-size: 0.9rem;
        }
        
        .calendar-day.empty {
            background-color: #f9f9f9;
            border-color: #f0f0f0;
        }
        
        .calendar-day.today {
            border-color: #1a5fb4;
            background-color: #e3f2fd;
            font-weight: bold;
        }
        
        .calendar-day.has-event {
            border-color: #4caf50;
            background-color: #f1f8e9;
        }
        
        .calendar-day.holiday {
            border-color: #f44336;
            background-color: #ffebee;
        }
        
        .day-number {
            font-weight: bold;
            margin-bottom: 3px;
        }
        
        .other-calendar {
            font-size: 0.7rem;
            color: #666;
            margin-bottom: 2px;
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
        }
        
        .event-indicator {
            font-size: 0.7rem;
            color: #4caf50;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-top: 2px;
        }
        
        .holiday-indicator {
            font-size: 0.7rem;
            color: #f44336;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-top: 2px;
        }
        
        .auth-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .auth-content {
            background-color: white;
            padding: 2rem;
            border-radius: 8px;
            width: 90%;
            max-width: 400px;
        }
        
        .auth-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .auth-tabs {
            display: flex;
            margin-bottom: 1rem;
            border-bottom: 1px solid #eee;
        }
        
        .auth-tab {
            padding: 0.5rem 1rem;
            cursor: pointer;
            border-bottom: 2px solid transparent;
        }
        
        .auth-tab.active {
            border-bottom-color: #1a5fb4;
            color: #1a5fb4;
            font-weight: bold;
        }
        
        .auth-form {
            display: none;
        }
        
        .auth-form.active {
            display: block;
        }
        
        .form-group {
            margin-bottom: 1rem;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
        }
        
        .form-group input {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        
        .auth-btn {
            width: 100%;
            background-color: #1a5fb4;
            color: white;
            border: none;
            padding: 0.75rem;
            border-radius: 4px;
            cursor: pointer;
            margin-top: 1rem;
        }
        
        .close-auth {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .modal-content {
            background-color: white;
            padding: 2rem;
            border-radius: 8px;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .close-modal {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #666;
        }
        
        .event-form input, .event-form textarea {
            width: 100%;
            padding: 0.75rem;
            margin-bottom: 1rem;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        
        .event-form button {
            background-color: #1a5fb4;
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .date-info {
            margin-bottom: 1.5rem;
            padding: 1rem;
            background-color: #f5f7fa;
            border-radius: 6px;
            border-left: 4px solid #1a5fb4;
        }
        
        .date-title {
            font-size: 1.2rem;
            font-weight: bold;
            color: #1a5fb4;
            margin-bottom: 0.5rem;
        }
        
        .other-dates {
            font-size: 0.9rem;
            color: #666;
        }
        
        .modal-sections {
            margin-bottom: 1.5rem;
        }
        
        .modal-section-title {
            font-size: 1.1rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
        }
        
        .modal-section-title i {
            margin-right: 8px;
            color: #1a5fb4;
        }
        
        .holiday-item {
            background-color: #fff0f0;
            border-left: 3px solid #e53e3e;
            padding: 0.8rem;
            margin-bottom: 0.8rem;
            border-radius: 4px;
        }
        
        .holiday-name {
            font-weight: bold;
            color: #c53030;
            margin-bottom: 0.3rem;
        }
        
        .holiday-description {
            font-size: 0.9rem;
            color: #742a2a;
        }
        
        .day-event {
            background-color: #f0f9f0;
            border-left: 3px solid #48bb78;
            padding: 0.8rem;
            margin-bottom: 0.8rem;
            border-radius: 4px;
        }
        
        .event-actions-modal {
            margin-top: 0.5rem;
            font-size: 0.9rem;
            padding-top: 0.5rem;
            border-top: 1px dashed #d6e9d6;
        }
        
        .event-actions-modal a {
            color: #2f855a;
            text-decoration: none;
            margin-right: 10px;
        }
        
        .event-actions-modal a:hover {
            text-decoration: underline;
        }
        
        footer {
            background-color: #333;
            color: white;
            text-align: center;
            padding: 1rem 0;
            margin-top: 2rem;
        }
/*
.month-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
*/
.download-month {
    background: none;
    border: none;
    color: #4a6ea9;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.download-month:hover {
    color: #2c4b7a;
    background-color: #f0f4f9;
}

.download-month i {
    margin-right: 3px;
}
footer a {
    color: #fff;
}
.calendar-legend {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    margin: 1.5rem auto 0;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-top: 1px solid #f0f0f0;
}
.calendars-container .calendar-legend{min-width: 598px;}
.calendar-legend h3 {
    color: #1a5fb4;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.legend-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding: 0.2rem 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.today-color {
    background-color: #1a5fb4;
}

.event-color {
    background-color: #4caf50;
}

.holiday-color {
    background-color: #f44336;
}

.legend-text {
    color: #333;
    font-size: 0.9rem;
}
.year-links-container {
    max-width: 1200px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.year-links-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.year-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.year-link {
    display: block;
    padding: 10px;
    text-align: center;
    background-color: #fff;
    color: #34495e;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    font-weight: 500;
}

.year-link:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.year-link.active {
    background-color: #2ecc71;
    color: white;
    font-weight: bold;
}

.year-link.decade-marker {
    background-color: #f1c40f;
    color: #34495e;
    font-weight: bold;
}

.current-badge {
    font-size: 0.7em;
    color: #7f8c8d;
    margin-top: 3px;
}

.year-link.active .current-badge {
    color: white;
}

.decade-separator {
    grid-column: 1 / -1;
    height: 1px;
    background-color: #ddd;
    margin: 10px 0;
}
        
        .today-info {
    background-color: white;
    border-radius: 10px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.today-header {
    text-align: center;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 0.8rem;
}

.today-header h2 {
    color: #1a5fb4;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.today-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}

.date-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 0.6rem;
    border-left: 4px solid #1a5fb4;
    transition: transform 0.2s;
}

.date-card:hover {
    transform: translateY(-3px);
}

.date-card.gregorian-date {
    border-left-color: #1a5fb4;
}

.date-card.hijri-date {
    border-left-color: #6a1b9a;
}

.date-card.javanese-date {
    border-left-color: #ff8f00;
}

.date-card.holiday-info {
    border-left-color: #f44336;
}

.date-type {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.date-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
}
.breadcrumb-nav {
    margin: 10px 0 10px 0;
    font-size: 14px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #7f8c8d;
}

.breadcrumb-current {
    color: #2c3e50;
    font-weight: 500;
}
.profile-header {
            background-color: white;
            border-radius: 8px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            text-align: center;
        }
        
        .profile-username {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: #1a5fb4;
        }
        
        .share-section {
            margin: 1.5rem 0;
        }
        
        .share-link {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: 10px;
        }
        
        .share-input {
            flex: 1;
            max-width: 500px;
            padding: 0.75rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 0.9rem;
        }
        
        .copy-btn {
            background-color: #1a5fb4;
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.2s;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .copy-btn:hover {
            background-color: #0d47a1;
        }
        
        .copy-success {
            color: #4caf50;
            margin-left: 10px;
            display: none;
        }
.events-list {
            background-color: white;
            border-radius: 8px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        
        .events-list h2 {
            margin-bottom: 1.5rem;
            color: #1a5fb4;
            border-bottom: 1px solid #eee;
            padding-bottom: 0.5rem;
            display: flex;
            align-items: center;
        }
        
        .events-list h2 i {
            margin-right: 10px;
        }
        
        .event-item {
            padding: 1.2rem;
            border-radius: 6px;
            background-color: #f9f9f9;
            margin-bottom: 1.2rem;
            border-left: 4px solid #1a5fb4;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .event-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.08);
        }
        
        .event-date {
            font-weight: bold;
            color: #1a5fb4;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
        }
        
        .event-date i {
            margin-right: 8px;
            font-size: 0.85rem;
        }
        
        .event-title {
            font-size: 1.2rem;
            margin-bottom: 0.7rem;
            color: #333;
        }
        
        .event-description {
            color: #666;
            margin-bottom: 1rem;
            line-height: 1.7;
        }
        
        .event-actions {
            display: flex;
            gap: 15px;
            padding-top: 0.8rem;
            border-top: 1px dashed #ddd;
        }
        
        .event-actions a {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #1a5fb4;
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.2s;
        }
        
        .event-actions a:hover {
            color: #0d47a1;
            text-decoration: underline;
        }
        
        .event-actions a.delete-link {
            color: #e53e3e;
        }
        
        .event-actions a.delete-link:hover {
            color: #c53030;
        }
        
        .no-events {
            text-align: center;
            padding: 2rem;
            color: #666;
            background-color: #f9f9f9;
            border-radius: 6px;
        }
        
        .no-events i {
            font-size: 2rem;
            margin-bottom: 1rem;
            color: #ccc;
        }
@media (max-width: 768px) {
    .today-details {
        grid-template-columns: 1fr;
    }
    
    .date-card {
        padding: 0.8rem;
    }
    
    .today-header h2 {
        font-size: 1.3rem;
        text-align: center;
        justify-content: center;
    }
    .breadcrumb-nav {
        font-size: 13px;
    }
    
    .breadcrumb-separator {
        margin: 0 5px;
    }
    
    .breadcrumb-item {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .share-link {
                flex-direction: column;
                align-items: stretch;
            }
            
            .copy-btn {
                width: 100%;
            }
            
            .calendar-header {
                font-size: 0.7rem;
                padding: 0.4rem 0.2rem;
            }
            
            .calendar-day {
                min-height: 50px;
                padding: 3px;
                font-size: 0.8rem;
            }
            
            .year-btn {
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
            }
            
            .current-year {
                font-size: 1.2rem;
            }
            
            .event-actions {
                flex-direction: column;
                gap: 8px;
            }

            .header-content {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
            
            nav ul {
                justify-content: center;
                flex-wrap: wrap;
            }
            
            nav ul li {
                margin: 0 0.5rem;
            }
            
            .calendar-header {
                font-size: 0.7rem;
                padding: 0.4rem 0.2rem;
            }
            
            .calendar-day {
                min-height: 50px;
                padding: 3px;
                font-size: 0.8rem;
            }
            
            .year-btn {
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
            }
            
            .current-year {
                font-size: 1rem;
            }
            
            .all-months-header::before,
            .all-months-header::after {
                width: 20%;
            }
      .legend-items {
        gap: 0.8rem;
    }
    
    .legend-item {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    
    .legend-text {
        font-size: 0.85rem;
    }
}