        /* Gaya untuk Google Translate Banner (tetap sama) */
        .goog-te-banner-frame.skiptranslate {display: none !important;}
        body {top: 0px !important;}
        .goog-logo-link { display:none !important; } 
        .goog-te-gadget { font-size: 0px !important; }
        
        :root {
            --muhammadiyah-green: #006b36;
            --light-blue: rgba(173, 216, 230, 0.8);
            --sidebar-width: 15%;
            --content-width: 83%;
            --gap: 2%;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: all 0.3s ease;
        }
        
        body {
            display: flex; /* Menggunakan flexbox untuk body */
            flex-direction: column; /* Arah flex adalah kolom */
            min-height: 100vh; /* Tinggi minimal body adalah tinggi viewport */
            background-color: #f5f5f5;
            overflow-x: hidden;
            overflow: hidden;
        }
        
        .container {
            display: flex;
            flex: 1; /* Kontainer akan mengisi sisa ruang yang tersedia di body */
            width: 100%;
        }
        
        /* Sidebar Styles */
        .sidebar {
            width: var(--sidebar-width);
            background-color: var(--muhammadiyah-green);
            opacity: 0.8;
            color: white;
            display: flex;
            flex-direction: column;
            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
            z-index: 100;
            flex-shrink: 0;
        }
        
        .main-content {
            flex: 1;
            width: var(--content-width);
            overflow-y: auto;
            padding: 5px;
        }
        
        .sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            background: linear-gradient(to right, rgba(0, 107, 54, 0.9), rgba(0, 107, 54, 0.7));
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
        
        .sidebar-header h2 {
            font-size: 1.2rem;
            white-space: nowrap;
        }

        .toggle-btn {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 3px;
            border-radius: 50%;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.1);
        }

        .toggle-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.15);
            transform: translateY(-1px);
        }

        .nav-links {
            flex: 1;
            overflow-y: auto;
            padding: 15px 0;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 6px 8px;
            color: white;
            text-decoration: none;
            margin: 8px 10px;
            border-radius: 5px;
            white-space: nowrap;
            background: rgba(255, 255, 255, 0.05);
            box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1), inset 0 -1px 2px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }

        .nav-link:hover, .nav-link.active {
            background: rgba(255, 255, 255, 0.15);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), inset 0 -2px 3px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .nav-link::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: 0.5s;
        }

        .nav-link:hover::before {
            left: 100%;
        }

        .nav-link i {
            margin-right: 10px;
            font-size: 1.1rem;
            width: 20px;
            text-align: center;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        }

        .sidebar-footer {
            padding: 15px 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            text-align: center;
            font-size: 0.8rem;
            opacity: 0.8;
        }

        /* Content Styles */
        .content {
            flex: 1;
            background-color: var(--light-blue);
            padding: 10px;
            overflow-y: auto;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        }
        
        .content-header {
            margin-bottom: 10px;
            padding: 5px 10px;
            border-bottom: 2px solid var(--muhammadiyah-green);
            background: white;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }

        .content-header h3 {
            color: var(--muhammadiyah-green);
            font-size: 1.5rem;
        }

        /* Iframe Styles */
        .hisab-iframe, .masehi-iframe, .shoutbox-iframe, .shalat-iframe, .ephem-iframe, 
        .kiblat-iframe, .astronomi-iframe, .dokumen-iframe, .falakai-iframe, .petahilal-iframe {
            width: 100%;
            height: calc(100vh - 120px); /* Adjust height for better fit */
            border: none;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.5);
            background-color: white;
        }

        /* Loading Indicator */
        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 200px;
            font-size: 1.2rem;
            color: var(--muhammadiyah-green);
        }

        .spinner {
            border: 4px solid rgba(0, 0, 0, 0.1);
            border-radius: 50%;
            border-top: 4px solid var(--muhammadiyah-green);
            width: 30px;
            height: 30px;
            animation: spin 1s linear infinite;
            margin-right: 10px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Content Section Styles */
        .content-section { display: none; }
        .content-section.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Desktop Collapsed Sidebar Styles */
        @media (min-width: 769px) {
            .sidebar.collapsed {
                width: 70px;
            }
            .sidebar.collapsed .sidebar-header h2,
            .sidebar.collapsed .nav-link span {
                display: none;
            }
            .sidebar.collapsed .nav-link i {
                margin-right: 0;
                font-size: 1.3rem;
            }
            .sidebar.collapsed .nav-link {
                justify-content: center;
                padding: 15px 10px;
            }
            .sidebar.collapsed .sidebar-footer {
                font-size: 0;
            }
            .sidebar.collapsed .sidebar-footer::after {
                content: "MTT";
                font-size: 1.0rem;
                color: white;
            }
        }

        /* === PERBAIKAN UTAMA UNTUK TAMPILAN MOBILE === */
        @media (max-width: 768px) {
            body {
                overflow-y: auto; /* Memastikan body bisa di-scroll di mobile */
            }

            .container {
                flex-direction: column; /* Tata letak utama menjadi vertikal */
                height: auto;
            }
            
            .arabic-text {
                        font-family: 'Amiri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            }             

            .sidebar {
                width: 100%; /* Sidebar mengisi lebar layar */
                height: auto;
                position: static; /* Kembali ke alur dokumen normal */
                box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Bayangan di bawah */
            }
            
            .main-content, .content {
                width: 100%;
                margin-left: 0;
                overflow-y: visible; /* Biarkan konten mengalir */
                padding: 5px;
            }

            .sidebar-header h2 {
                display: block; /* Tampilkan judul HISABMU */
                font-size: 1.1rem;
            }
            
            /* Sembunyikan tombol toggle di mobile karena sidebar selalu terlihat */
            .toggle-btn {
                display: none;
            }

            .nav-links {
                display: flex;
                flex-wrap: wrap; /* Izinkan menu untuk pindah baris jika tidak muat */
                justify-content: center; /* Pusatkan item menu */
                padding: 5px 0;
            }

            .nav-link {
                flex-basis: auto; /* Ukuran basis otomatis */
                flex-grow: 1; /* Biarkan item menu membesar */
                justify-content: center;
                margin: 5px;
                padding: 10px 5px;
            }

            /* Tampilkan kembali teks pada link menu */
            .nav-link span {
                display: inline-block; 
                font-size: 0.8rem;
            }

            .nav-link i {
                font-size: 1rem;
                margin-right: 8px;
            }

            .sidebar-footer {
                padding: 10px;
            }
            
            .content-header {
                padding: 10px;
            }
            
            .content-header h3 {
                font-size: 1.2rem; /* Ukuran font judul konten lebih kecil */
            }

            /* Sesuaikan tinggi iframe untuk mobile */
            .hisab-iframe, .masehi-iframe, .shoutbox-iframe, .shalat-iframe, .ephem-iframe, 
            .kiblat-iframe, .astronomi-iframe, .dokumen-iframe, .falakai-iframe, .petahilal-iframe {
                height: 75vh; /* Tinggi 75% dari viewport, sisanya untuk header/nav */
            }
            
            .flex-container {
                gap: 10px;
                flex-wrap: wrap; /* Bungkus jika tidak muat */
                justify-content: center;
            }
            
            #contentTitle {
                text-align: center;
                width: 100%;
            }
            
            img {
                height: 40px;
                width: 136px;
            }
            
            #canvas-animation {
                height: 40px;
                width: 40px;
            }
        }

        /* Other styles that are mostly fine */
        .selected-theme {
            border: 3px solid #fff !important;
            box-shadow: 0 0 5px rgba(0,0,0,0.3);
        }  
        .arabic-text {
            font-family: 'Amiri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }  
        .goog-te-combo {
            padding: 8px 12px;
            border-radius: 4px;
            border: 1px solid #ddd;
            background-color: white;
            color: #333;
            font-size: 14px;
            cursor: pointer;
            width: 100%;
            max-width: 200px;
        }
        .goog-te-combo:hover {
            border-color: var(--muhammadiyah-green);
        }
        .goog-te-combo:focus {
            outline: none;
            border-color: var(--muhammadiyah-green);
            box-shadow: 0 0 0 2px rgba(0, 107, 54, 0.2);
        }
        .goog-te-gadget {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
            color: transparent !important;
        }
        .goog-te-gadget .goog-te-combo { margin: 0 !important; }
        .skiptranslate iframe { display: none !important; }
        
        #canvas-animation {
            width: 50px;
            height: 50px;
            overflow: hidden;
            background-color: #ffffff;
            display: inline-block;
            vertical-align: middle;
            border: none;
            margin: 0;
        }
        .flex-container {
            display: flex;
            vertical-align: middle;
            align-items: center;
            gap: 15px;
        }
        h3 {
            margin: 0;
            font-size: 1.5rem;
        }
        img {
            height: 50px;
            width: 170px;
            display: inline-block;
            vertical-align: middle;
        }
        .elegant-button {
            background-color: #28a745;
            color: white;
            padding: 10px 20px;
            height: 40px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        .elegant-button:hover {
            background-color: #218838;
            transform: translateY(-2px);
        }
        .elegant-button:active {
            background-color: #1e7e34;
            transform: translateY(0);
        } 