* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #5D4037;
    --primary-dark: #3E2723;
    --primary-light: #8D6E63;
    --accent: #D4A574;
    --bg: #F5F5F5;
    --white: #FFFFFF;
    --text: #333333;
    --text-light: #666666;
    --border: #E0E0E0;
    --sidebar-width: 280px;
    --max-content-width: 1400px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Desktop Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation - Desktop */
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s;
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.nav-menu {
    flex: 1;
    padding: 20px 15px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 25px;
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 10px;
    padding-left: 15px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 4px;
}

.nav-item:hover {
    background: var(--bg);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary);
    color: var(--white);
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-item span {
    font-size: 14px;
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.3s;
    position: relative;
    z-index: 2;
}

.user-profile:hover, .user-profile.active {
    background: var(--bg);
}

.profile-dropdown {
    position: absolute;
    bottom: 100%;
    left: 20px;
    right: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 8px;
    display: none;
    z-index: 10;
    margin-bottom: 10px;
    animation: slideUp 0.2s ease-out;
}

.profile-dropdown.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg);
    color: var(--primary);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.user-info {
    flex: 1;
    min-width: 0; /* Menahan agar text-overflow bekerja */
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.user-role {
    font-size: 12px;
    color: var(--text-light);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Top Header */
.top-header {
    background: var(--white);
    padding: 20px 40px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid var(--border);
    border-radius: 25px;
    font-size: 14px;
    background: var(--bg);
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.search-bar i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    color: var(--text);
}

.icon-btn:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #E53935;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Content Container */
.content-wrapper {
    padding: 30px 40px;
    max-width: var(--max-content-width);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 40px;
    color: var(--white);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-content p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 25px;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--white) !important;
}

.hero-stats .stat-label {
    font-size: 13px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.see-all {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.see-all:hover {
    gap: 10px;
}

/* Category Pills */
.category-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.pill {
    padding: 10px 24px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.pill:hover {
    border-color: var(--primary-light);
}

.pill.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Grid Layouts */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-meta {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em; /* 1.4 line-height * 2 lines */
}

.card-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.2em; /* 1.6 line-height * 2 lines */
    margin-bottom: 10px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-tag {
    padding: 5px 12px;
    background: var(--bg);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Use viewport width */
    height: 100vh; /* Use viewport height */
    background: rgba(0, 0, 0, 0.7); /* Darker overlay */
    display: none; /* Hidden by default, controlled by JS flex */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Very high z-index */
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 10000;
}

.modal-content.show {
    transform: scale(1);
    opacity: 1;
}

.result-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

.stat-box {
    background: var(--bg);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* Stories/Tokoh Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.story-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.story-image-wrapper {
    position: relative;
    padding: 20px 20px 0;
}

.story-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border);
    transition: all 0.3s;
}

.story-card:hover img {
    border-color: var(--primary);
    transform: scale(1.05);
}

.story-body {
    padding: 15px 20px 20px;
}

.story-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.story-role {
    font-size: 13px;
    color: var(--text-light);
}

/* Level Selection */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.level-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.level-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.level-card.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(93, 64, 55, 0.3);
}

.level-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.level-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.level-card p {
    font-size: 14px;
    opacity: 0.8;
}

/* Form Styles */
.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.auth-left-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.auth-logo {
    font-size: 48px;
    margin-bottom: 30px;
}

.auth-left h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.auth-left p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

.auth-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
}

.auth-feature i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-right {
    width: 500px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    overflow-y: auto;
}

.auth-header {
    margin-bottom: 40px;
}

.auth-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text);
}

.auth-header p {
    color: var(--text-light);
    font-size: 16px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: var(--bg);
}

/* Auth UX helpers */
.input-wrapper.has-action .form-input {
    padding-right: 52px;
}

.input-action-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    padding: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.input-action-btn:hover {
    background: rgba(93, 64, 55, 0.08);
    color: var(--primary);
}

.input-action-btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(93, 64, 55, 0.12);
}

.input-action-btn:active {
    background: rgba(93, 64, 55, 0.12);
}

.input-action-btn i {
    font-size: 16px;
}

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -6px;
}

.forgot-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    padding: 6px 0;
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-error {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(244, 67, 54, 0.28);
    background: rgba(244, 67, 54, 0.08);
    color: #b71c1c;
    font-size: 13px;
    font-weight: 600;
}

.tt-hydrate-hidden {
    visibility: hidden;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    user-select: none;
}

.remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(93, 64, 55, 0.1);
}

.gender-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.gender-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg);
}

.gender-option:hover {
    border-color: var(--primary-light);
}

.gender-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.gender-option.selected {
    border-color: var(--primary);
    background: rgba(93, 64, 55, 0.05);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.3);
}

.btn-secondary {
    width: 100%;
    padding: 16px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--text-light);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 15px;
}

/* Notification Page */
.notification-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.notification-sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.notification-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 5px;
}

.notification-tab:hover {
    background: var(--bg);
}

.notification-tab.active {
    background: var(--primary);
    color: var(--white);
}

.notification-tab i {
    font-size: 18px;
    width: 24px;
}

.notification-tab span {
    font-size: 14px;
    font-weight: 500;
}

.notification-badge {
    margin-left: auto;
    background: #E53935;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.notification-list {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
}

.notification-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
    border-radius: 12px;
}

.notification-item:hover {
    background: var(--bg);
}

.notification-item:last-child {
    border-bottom: none;
}

/* Interactive Map Styles */
.indonesia-map {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.map-region {
    fill: #2B5CA5;
    fill-opacity: 0.6;
    stroke: #ffffff;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-region:hover {
    fill-opacity: 0.9;
    fill: var(--primary);
    transform: translateY(-2px);
}

.map-region.active {
    fill: var(--primary);
    fill-opacity: 1;
    stroke: var(--accent);
    stroke-width: 3;
}

.map-tooltip {
    transition: opacity 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
}

.event-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.event-year {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.event-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.event-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}


.notification-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.notification-icon.blue {
    background: #E3F2FD;
}

.notification-icon.green {
    background: #E8F5E9;
}

.notification-icon.orange {
    background: #FFF3E0;
}

.notification-icon.purple {
    background: #F3E5F5;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.notification-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-time {
    font-size: 12px;
    color: #999;
}

/* Detail Content Page */
.content-detail {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.content-main {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
}

.content-header-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.content-body {
    padding: 40px;
}

.content-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.content-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.content-meta-item i {
    color: var(--primary);
}

.content-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--text);
}

.content-text {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-light);
}

.content-text p {
    margin-bottom: 20px;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.3s;
}

.related-item:hover {
    background: var(--bg);
}

.related-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.related-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.related-content span {
    font-size: 12px;
    color: var(--text-light);
}

/* Profile Page */
.profile-header-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.profile-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--white);
    object-fit: cover;
    position: relative;
    z-index: 1;
    margin-top: 75px;
    margin-bottom: 20px;
}

.profile-name-large {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-role-large {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.profile-stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.profile-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
}

.profile-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 8px;
}

.menu-item:hover {
    background: var(--bg);
}

.menu-item i:first-child {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.menu-item i.blue {
    background: #E3F2FD;
    color: #1976D2;
}

.menu-item i.green {
    background: #E8F5E9;
    color: #388E3C;
}

.menu-item i.orange {
    background: #FFF3E0;
    color: #F57C00;
}

.menu-item i.red {
    background: #FFEBEE;
    color: #D32F2F;
}

.menu-item-content {
    flex: 1;
}

.menu-item-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}

.menu-item-content p {
    font-size: 13px;
    color: var(--text-light);
}

/* Mobile Bottom Nav - Hidden on Desktop */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 20px 20px 0 0;
    z-index: 1000; /* Ensure it stays on top */
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 11px;
    gap: 5px;
}

.mobile-nav-item i {
    font-size: 20px;
}

.mobile-nav-item.active {
    color: var(--primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

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

.modal-content {
    background: var(--white);
    padding: 50px;
    border-radius: 24px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.9);
    transition: all 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.success-icon {
    width: 100px;
    height: 100px;
    background: #E8F5E9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 50px;
    color: #4CAF50;
}

.modal-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

.modal-text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-detail {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        margin-top: 30px;
        width: 100%;
        max-width: 400px;
    }

    .levels-grid {
        grid-template-columns: 1fr;
    }

    .notification-layout {
        grid-template-columns: 1fr;
    }

    .notification-sidebar {
        position: static;
        display: flex;
        gap: 10px;
        overflow-x: auto;
    }

    .notification-tab {
        white-space: nowrap;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        width: 100%;
        padding: 40px 30px;
    }

    .top-header {
        padding: 15px 20px;
    }

    .content-wrapper {
        padding: 20px;
    }

    .hero-section {
        padding: 30px 25px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-nav {
        display: block;
    }

    .content-wrapper {
        padding-bottom: 100px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .content-body {
        padding: 25px;
    }

    .content-title {
        font-size: 24px;
    }

    .content-header-image {
        height: 250px;
    }

    /* Kartu Materi di Mobile */
    .card-meta {
        font-size: 10px; 
        margin-bottom: 4px;
        display: none; /* Sembunyikan meta di HP agar lebih ringkas */
    }

    .card-title {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    .card-text {
        font-size: 13px;
        line-height: 1.5;
        display: -webkit-box;
    -webkit-line-clamp: 2; /* Batasi hanya 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
        margin-bottom: 8px;
        height: 3em; /* Fallback height for non-webkit browsers (1.5 line-height * 2 lines) */
    }

    .card-read-more {
        display: inline-block;
        font-size: 12px;
        font-weight: 700;
        color: var(--tt-gold);
        text-decoration: none;
        margin-top: 4px;
    }

    .card-footer {
        padding: 10px 15px;
    }

    .card-tag {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .category-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .pill {
        flex-shrink: 0;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg);
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}
