/* styles.css */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

/* Index.html Styles */
body.index {
    background: linear-gradient(135deg, #1e3a8a, #60a5fa);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 90%;
    max-width: 900px;
    height: 90vh;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
}
.slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 50%;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    text-align: center;
}
.slide.active {
    opacity: 1;
}
.slide h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.slide p {
    font-size: 1rem;
    opacity: 0.9;
}
.slide i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #3b82f6;
    animation: pulse 2s infinite;
}
.login-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.btn-google {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    color: white;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}
.btn-google:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.6);
}
.dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}
.dot.active {
    background: #ffffff;
}
.floating-icon {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    animation: float 6s infinite ease-in-out;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.welcome-text {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    animation: fadeIn 1.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Common Styles for Dashboard, Profile, Chat */
body:not(.index) {
    background: linear-gradient(135deg, #e5e7eb, #dbeafe);
    color: #1e3a8a;
}
.sidebar {
    background: linear-gradient(180deg, #1e3a8a, #3b82f6);
    color: white;
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 50;
    transition: transform 0.3s ease;
}
.sidebar-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
}
.bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 8px 0;
}
.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.btn {
    padding: 8px 16px;
    border-radius: 9999px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.modal {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.modal-content {
    background: white;
    border-radius: 20px;
    padding: 20px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Dashboard Styles */
.dashboard-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: calc(100vh - 100px);
    overflow-y: auto;
    backdrop-filter: blur(12px);
}
.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #3b82f6;
    transition: width 0.5s ease;
}

/* Profile Styles */
.profile-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); /* Diperbaiki */
    padding: 24px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: calc(100vh - 100px);
    overflow-y: auto;
    backdrop-filter: blur(12px);
}
.input-field {
    border: 2px solid #dbeafe;
    border-radius: 12px;
    padding: 10px 12px;
    width: 100%;
    transition: border-color 0.2s ease;
}
.input-field:focus {
    border-color: #3b82f6;
    outline: none;
}

/* Chat Styles */
.chat-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
}
.chat-header {
    padding: 16px 24px;
    border-bottom: 1px solid #dbeafe;
    flex-shrink: 0;
}
.chat-messages {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.message-you {
    background: #3b82f6;
    color: white;
    border-radius: 16px 16px 4px 16px;
    max-width: 70%;
    padding: 12px 16px;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.message-ai {
    background: #f3f4f6;
    color: #1e3a8a;
    border-radius: 16px 16px 16px 4px;
    max-width: 70%;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.chat-input-container {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #dbeafe;
    flex-shrink: 0;
}
.chat-input-wrapper {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 9999px;
    padding: 8px 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}
.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 8px;
    color: #1e3a8a;
    resize: none;
    overflow-y: auto;
    max-height: 100px;
}
.chat-input::placeholder {
    color: #6b7280;
}
.send-btn {
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.send-btn:hover {
    background: #2563eb;
}
.chat-footer {
    padding: 8px 24px;
    border-top: 1px solid #dbeafe;
    flex-shrink: 0;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .dashboard-container, .profile-container, .chat-container {
        height: calc(100vh - 60px);
        margin-bottom: 60px;
    }
}
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
    .login-container {
        flex-direction: row;
        height: 80vh;
        padding: 40px;
    }
    .slider {
        min-height: 100%;
    }
    .slide h2 {
        font-size: 2.5rem;
    }
    .slide p {
        font-size: 1.2rem;
    }
    .slide i {
        font-size: 3rem;
    }
    .welcome-text {
        font-size: 2.5rem;
    }
}