/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Tab Content Styles */
.settings-scroll-container {
    height: 100%;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.special-days-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 0;
    padding: 20px 20px 15px 20px;
    border-bottom: 2px solid var(--primary-color);
    background: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 10;
    font-family: 'Inter', sans-serif;
}

.special-days-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.special-days-tabs {
    display: flex;
    gap: 8px;
    background: var(--secondary-color);
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.special-days-tabs .tab-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.special-days-tabs .tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.special-days-tabs .tab-btn:hover:not(.active) {
    background: var(--hover-color);
}

.special-days-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.month-filter-select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.month-filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-1px);
}

.month-filter-select:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.month-filter-select option {
    padding: 10px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 14px;
}

.special-days-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.add-special-day-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
}

.add-special-day-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.special-days-content {
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: fit-content;
    font-family: 'Inter', sans-serif;
}

/* Custom scrollbar untuk special-days-content */
.special-days-content::-webkit-scrollbar {
    width: 6px;
}

.special-days-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.special-days-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.special-days-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Firefox scrollbar */
.special-days-content {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.1);
}

/* Smooth scrolling */
.special-days-content {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
}

/* Ensure proper touch scrolling on mobile */
@media (max-width: 768px) {
    .special-days-content {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

/* Ensure proper scrolling behavior */
.special-days-content {
    position: relative;
    z-index: 1;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .special-days-content {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
}

/* Ensure proper scrolling on all devices */
.special-days-content {
    will-change: scroll-position;
    transform: translateZ(0); /* Hardware acceleration */
}

/* Ensure proper scrolling behavior for all browsers */
.special-days-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Ensure proper scrolling on all devices */
.special-days-content {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Ensure proper scrolling behavior for all browsers */
.special-days-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.special-day-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    cursor: pointer;
    background: var(--bg-color);
    min-height: 70px;
    font-family: 'Inter', sans-serif;
}

.special-day-item:hover {
    background-color: var(--hover-color);
}

.special-day-item:last-child {
    border-bottom: none;
}

.special-day-avatar {
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
    position: relative;
}

.calendar-initial {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.special-day-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    padding: 2px 0;
}

.special-day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2px;
    gap: 8px;
    min-height: 20px;
}

.special-day-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.special-day-time {
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.special-day-preview {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 0;
}

.special-day-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    margin-bottom: 6px;
    line-height: 1.3;
}

.special-day-category,
.special-day-type,
.special-day-details {
    background: var(--highlight-color);
    color: var(--text-color);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.special-day-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
    margin-top: 4px;
}


.special-day-status {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.special-day-status.hijri {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    font-weight: 600;
}

.special-day-status.masehi {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: white;
    font-weight: 600;
}

/* Legacy styles untuk kompatibilitas */
.special-day-status.active {
    background: #4caf50;
    color: white;
}

.special-day-status.inactive {
    background: #9e9e9e;
    color: white;
}

/* Settings Tab Styles */
.settings-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: 'Inter', sans-serif;
}

.settings-content .settings-section {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.settings-content .settings-section:last-child {
    border-bottom: none;
}

/* Form Container Styles */
.special-day-form-container {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.special-day-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom: 1px solid var(--border-color);
}

.special-day-form-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-form-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.close-form-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.special-day-form-container form {
    padding: 20px;
}

/* Form Styles for Special Days */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--hover-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--border-color);
}

.empty-state h4 {
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .special-days-scroll-container {
        height: calc(100vh - 250px);
        padding: 15px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }
    
    .settings-scroll-container {
        padding: 15px;
    }
    
    .special-days-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .special-days-header {
        padding: 15px 15px 10px 15px;
    }
    
    .special-days-header h3 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .add-special-day-btn {
        justify-content: center;
    }
    
    .special-day-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .special-day-actions {
        align-self: flex-end;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .special-days-scroll-container {
        height: calc(100vh - 200px);
        padding: 0;
        -webkit-overflow-scrolling: touch;
    }
    
    .settings-scroll-container {
        padding: 0;
    }
    
    .special-day-item {
        padding: 10px 12px;
        min-height: 60px;
    }
    
    .special-day-item {
        padding: 8px 10px;
        min-height: 55px;
    }
    
    .special-day-item {
        padding: 6px 8px;
        min-height: 50px;
    }
    
    .special-day-item {
        padding: 4px 6px;
        min-height: 45px;
    }
    
    .special-day-item {
        padding: 2px 4px;
        min-height: 40px;
    }
    
    .special-day-item {
        padding: 1px 2px;
        min-height: 35px;
    }
    
    .special-day-item {
        padding: 0px 1px;
        min-height: 30px;
    }
    
    .special-day-item {
        padding: 8px 10px;
        min-height: 50px;
    }
    
    .special-day-item {
        padding: 8px 10px;
        min-height: 50px;
    }
    
    .special-day-item {
        padding: 8px 10px;
        min-height: 50px;
    }
    
    .special-day-item {
        padding: 8px 10px;
        min-height: 50px;
    }
    
    .special-day-item {
        padding: 8px 10px;
        min-height: 50px;
    }
    
    .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .calendar-initial {
        font-size: 16px;
    }
    
    .special-day-name {
        font-size: 13px;
    }
    
    .special-day-meta {
        font-size: 12px;
    }
    
    .special-day-description {
        font-size: 13px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    scroll-behavior: smooth;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Special day animation styles moved to kalender.css */

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Pastikan background solid agar konten tidak terlihat di belakang */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.settings-section {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Inter', sans-serif;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

.theme-option {
    padding: 12px 8px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.theme-option:hover {
    border-color: var(--primary-color);
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-option.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    position: relative;
}

    .theme-option.active::after {
        content: '✓';
        position: absolute;
        top: 5px;
        right: 5px;
        font-size: 0.8rem;
        font-weight: bold;
        color: white;
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 50%;
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    @media (max-width: 480px) {
        .theme-option.active::after {
            width: 14px;
            height: 14px;
            font-size: 0.7rem;
            top: 3px;
            right: 3px;
        }
    }

/* Theme Option Colors */
.theme-option[data-theme-value="default"] {
    background-color: #2c3e50;
    color: #ecf0f1;
}

/* Shimmer effect for theme options */
.theme-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.theme-option:hover::before {
    left: 100%;
}

.theme-option[data-theme-value="green"] {
    background-color: #16a085;
    color: #ecf0f1;
}

.theme-option[data-theme-value="blue"] {
    background-color: #2980b9;
    color: #ecf0f1;
}

.theme-option[data-theme-value="purple"] {
    background-color: #8e44ad;
    color: #ecf0f1;
}

.theme-option[data-theme-value="red"] {
    background-color: #c0392b;
    color: #ecf0f1;
}

.theme-option[data-theme-value="orange"] {
    background-color: #d35400;
    color: #ecf0f1;
}

.theme-option[data-theme-value="dark"] {
    background-color: #1a1a1a;
    color: #f5f5f5;
}

.theme-option[data-theme-value="light"] {
    background-color: #f5f5f5;
    color: #333333;
    border-color: #ddd;
}

/* Ensure good contrast for all theme options */
.theme-option {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.toggle-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.control-btn:hover {
    border-color: var(--primary-color);
    background-color: var(--hover-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.control-btn.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-btn i {
    font-size: 1.1rem;
}

/* Modern Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.control-btn.active .toggle-switch {
    background-color: var(--primary-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.control-btn:hover .toggle-switch {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.control-btn.active .toggle-switch::before {
    transform: translateX(24px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Toggle switch animation */
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-btn.active .toggle-switch::after {
    width: 30px;
    height: 30px;
}

/* Toggle switch focus state */
.control-btn:focus .toggle-switch {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Toggle Content */
.toggle-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    font-family: 'Inter', sans-serif;
}

/* Version Section */
.version-section {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    justify-content: center;
}

.version-info i {
    color: var(--highlight-color);
    font-size: 1rem;
}

.version-number {
    font-weight: 700;
    color: #000000;
    background: #ffffff;
    border: 2px solid #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    position: relative;
    text-shadow: none;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hover effect untuk versi */
.version-number:hover {
    color: var(--primary-color);
    background: #ffffff;
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-shadow: none;
}

/* Memastikan versi terlihat jelas di semua tema */
[data-theme="dark"] .version-number {
    background: #000000;
    border-color: #ffffff;
    color: #ffffff;
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .version-number {
    background: #ffffff;
    border-color: #000000;
    color: #000000;
    text-shadow: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Tema lainnya */
[data-theme="green"] .version-number,
[data-theme="blue"] .version-number,
[data-theme="purple"] .version-number,
[data-theme="red"] .version-number,
[data-theme="orange"] .version-number {
    background: #000000;
    border-color: #ffffff;
    color: #ffffff;
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}





.version-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.version-number:hover::before {
    opacity: 0.1;
}

/* Tooltip untuk versi */
.version-number[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-color);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.version-number[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    margin-bottom: -5px;
}

/* Shimmer effect for toggle buttons */
.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.control-btn:hover::before {
    left: 100%;
}

/* Special Days Modal Styles */
.special-days-content {
    padding: 20px 25px;
    padding-top: 15px; /* Padding top yang cukup untuk header sticky */
}

.special-days-info {
    margin-bottom: 20px;
    padding: 12px 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    color: white;
}

.special-days-note {
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.special-days-note i {
    font-size: 1rem;
}

.special-days-section {
    margin-bottom: 25px;
}

/* Special days section container */
#special-days-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Special days scroll container */
.special-days-scroll-container {
    height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    margin-top: 10px;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar untuk special-days-scroll-container */
.special-days-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.special-days-scroll-container::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 3px;
}

.special-days-scroll-container::-webkit-scrollbar-thumb {
    background: var(--highlight-color);
    border-radius: 3px;
}

.special-days-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Ensure proper flex layout for special days */
#special-days-section .special-days-header {
    flex-shrink: 0;
}

#special-days-section .special-days-content {
    flex: 1;
    min-height: 0; /* Important for flex child to shrink */
    height: auto; /* Allow height to adjust to content */
    max-height: none; /* Remove max-height restriction for better content visibility */
    padding: 20px 25px;
    padding-top: 15px;
}

/* Allow special days content to grow with content */
.special-days-content {
    height: auto;
    min-height: 200px; /* Minimum height for better UX */
}

/* When content is small, don't use max-height */
.special-days-content:not(:has(.special-day-item)) {
    max-height: none;
    height: auto;
}

/* Ensure proper scrolling when content exceeds viewport */
@media (min-height: 600px) {
    .special-days-scroll-container {
        height: calc(100vh - 200px);
    }
}

@media (max-height: 600px) {
    .special-days-scroll-container {
        height: calc(100vh - 150px);
    }
}

/* Ensure proper scrolling behavior for all devices */
.special-days-scroll-container {
    will-change: scroll-position;
    transform: translateZ(0); /* Hardware acceleration */
    overscroll-behavior: contain;
}

.special-days-section:last-child {
    margin-bottom: 0;
}

.special-days-section h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.special-days-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Special day styles moved to kalender.css */

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 15px 20px;
        position: sticky;
        top: 0;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .settings-section {
        padding: 15px 20px;
    }
    
    .theme-options {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 8px;
    }
    
    .theme-option {
        padding: 10px 6px;
        font-size: 0.85rem;
        min-height: 45px;
    }
    
    .control-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .toggle-switch {
        width: 45px;
        height: 24px;
    }
    
    .toggle-switch::before {
        width: 18px;
        height: 18px;
    }
    
    .control-btn.active .toggle-switch::before {
        transform: translateX(21px);
    }
    
    .special-days-content {
        padding: 15px 20px;
        max-height: 70vh;
    }
    
    /* Ensure proper mobile layout */
    #special-days-section {
        height: calc(100vh - 120px);
    }
    
    .special-days-info {
        padding: 10px 12px;
    }
    
    .special-days-note {
        font-size: 0.85rem;
    }
    
    /* Special day responsive styles moved to kalender.css */
    
    /* Special day responsive styles moved to kalender.css */
    
    .version-info {
        font-size: 0.85rem;
    }
    
    .version-number {
        font-size: 0.9rem;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 5% auto;
    }
    
    .theme-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .theme-option {
        padding: 8px 4px;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .control-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .toggle-switch {
        width: 40px;
        height: 22px;
    }
    
    .toggle-switch::before {
        width: 16px;
        height: 16px;
    }
    
    .control-btn.active .toggle-switch::before {
        transform: translateX(18px);
    }
    
    .modal-header {
        padding: 12px 15px;
        position: sticky;
        top: 0;
    }
    
    .settings-section {
        padding: 12px 15px;
    }
    
    .special-days-content {
        padding: 12px 15px;
        max-height: 65vh;
    }
    
    /* Ensure proper mobile layout for small screens */
    #special-days-section {
        height: calc(100vh - 100px);
    }
    
    .special-days-info {
        padding: 8px 10px;
    }
    
    .special-days-note {
        font-size: 0.8rem;
    }
    
    /* Special day responsive styles moved to kalender.css */
    
    .version-info {
        font-size: 0.8rem;
    }
    
    .version-number {
        font-size: 0.85rem;
        padding: 2px 5px;
    }
}

/* Scrollbar untuk modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--highlight-color);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Pastikan header tidak tertutup scrollbar */
.modal-header {
    margin-right: 6px; /* Sesuaikan dengan lebar scrollbar */
    /* Pastikan header tetap terlihat di semua browser */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Language Selector Styles */
.language-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.language-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.language-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-1px);
}

.language-select:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.language-select option {
    padding: 10px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
}


/* RTL Support for Language Selector */
[dir="rtl"] .language-select {
    background-position: left 15px center;
    padding-left: 45px;
    padding-right: 15px;
}

/* Mobile Responsive for Language Selector */
@media (max-width: 768px) {
    .language-select {
        padding: 10px 12px;
        font-size: 0.95rem;
        padding-right: 40px;
    }
    
    [dir="rtl"] .language-select {
        padding-left: 40px;
        padding-right: 12px;
    }
    
}

@media (max-width: 480px) {
    .language-select {
        padding: 8px 10px;
        font-size: 0.9rem;
        padding-right: 35px;
    }
    
    [dir="rtl"] .language-select {
        padding-left: 35px;
        padding-right: 10px;
    }
    
}

/* App Section Styles */
.app-options {
    margin-top: 15px;
}

.app-btn {
    width: 100%;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-btn:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.app-btn:active {
    transform: translateY(0);
}

.app-btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 1rem;
}

.app-btn-content i {
    font-size: 1.2rem;
}

.app-btn-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-left: 32px;
}

.app-btn-info i {
    font-size: 0.9rem;
}

/* Responsive design untuk app section */
@media (max-width: 768px) {
    .app-btn {
        padding: 12px 16px;
    }
    
    .app-btn-content {
        font-size: 0.9rem;
    }
    
    .app-btn-info {
        font-size: 0.75rem;
        margin-left: 28px;
    }
}

@media (max-width: 480px) {
    .app-btn {
        padding: 10px 14px;
    }
    
    .app-btn-content {
        font-size: 0.85rem;
        gap: 10px;
    }
    
    .app-btn-info {
        font-size: 0.7rem;
        margin-left: 24px;
    }
} 