/* ===== VARIABLES & RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
}

:root {
    --primary: #1a237e;
    --primary-dark: #0d1540;
    --primary-light: #534bae;
    --secondary: #00acc1;
    --accent: #ff9800;
    --accent-light: #ffb74d;
    --light: #f8fdff;
    --light-bg: #f0f7ff;
    --dark: #1e293b;
    --success: #00c853;
    --danger: #f44336;
    --warning: #ffc107;
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    --gradient-secondary: linear-gradient(135deg, #00acc1 0%, #26c6da 100%);
    --gradient-accent: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.16);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: linear-gradient(135deg, #f0f7ff 0%, #e3f2fd 100%);
    color: var(--dark);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(26, 35, 126, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 172, 193, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 152, 0, 0.03) 0%, transparent 50%);
    z-index: -1;
}

/* ===== CONTAINER & HEADER ===== */
.container {
    max-width: 1000px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInLeft 0.6s ease;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(255, 152, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-icon i {
    font-size: 24px;
    color: white;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.logo-text {
    flex: 1;
}

.logo-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.logo-text p {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 400;
}
/* ===== ADMIN BUTTONS ===== */
.admin-info, #adminBtn {
    animation: fadeInRight 0.6s ease;
}

.admin-welcome {
    font-weight: 500;
    color: white;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 8px;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 3px 12px rgba(255, 152, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.admin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.admin-btn:hover::before {
    left: 100%;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.35);
}

.btn-logout {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    box-shadow: 0 3px 12px rgba(244, 67, 54, 0.25);
}

.btn-logout:hover {
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.35);
}

#adminBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 3px 12px rgba(255, 152, 0, 0.25);
}

#adminBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.35);
}

/* ===== WELCOME SECTION - DIKECILKAN ===== */
.welcome-section {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.03) 0%, rgba(0, 172, 193, 0.03) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.welcome-icon {
    background: linear-gradient(135deg, #00acc1 0%, #26c6da 100%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 172, 193, 0.2);
}

.welcome-text {
    text-align: left;
    flex: 1;
    min-width: 200px;
}

.welcome-text h2 {
    color: #1a237e;
    margin-bottom: 3px;
    font-size: 0.95rem;
    font-weight: 600;
}

.welcome-text p {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 3px;
}

.current-date {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 3px 0;
}

/* ===== CHAT CONTAINER ===== */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 70vh;
    animation: fadeInUp 0.6s ease;
}

.chat-header {
    background: var(--gradient-secondary);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-header-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.chat-header i {
    font-size: 1.2rem;
}

.chat-header h2 {
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}

/* ===== CHAT MESSAGES ===== */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--light-bg);
    position: relative;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    position: relative;
    animation: fadeIn 0.4s ease;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-25px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(25px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background: white;
    color: var(--dark);
    align-self: flex-start;
    border-left: 3px solid var(--secondary);
    box-shadow: var(--shadow-sm);
}

.user-message {
    background: var(--gradient-primary);
    color: white;
    align-self: flex-end;
    border-right: 3px solid var(--accent);
    box-shadow: var(--shadow-md);
}

.info-item {
    margin: 6px 0;
    padding-left: 16px;
    position: relative;
    color: #555;
    font-size: 0.85rem;
}

.info-item::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 0.95rem;
}

/* ===== SUGGESTIONS ===== */
.suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.suggestion-btn {
    background: rgba(0, 172, 193, 0.1);
    color: var(--secondary);
    border: 2px solid rgba(0, 172, 193, 0.2);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.suggestion-btn:hover {
    background: var(--gradient-secondary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 172, 193, 0.2);
}

/* ===== CHAT INPUT ===== */
.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
    gap: 12px;
}

.chat-input input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e0e7ff;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    background: var(--light-bg);
    color: var(--dark);
}

.chat-input input:focus {
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 172, 193, 0.15);
}

.chat-input input::placeholder {
    color: #94a3b8;
}

.chat-input button {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 12px rgba(0, 172, 193, 0.25);
}

.chat-input button:hover {
    background: var(--secondary);
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 172, 193, 0.35);
}

.chat-input button i {
    font-size: 1.1rem;
    transition: var(--transition);
}

.chat-input button:hover i {
    transform: translateX(2px);
}

/* ===== INFO BOX (Chatbot responses) ===== */
.info-box {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--secondary);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(5px);
    transition: var(--transition);
    font-size: 0.9rem;
}

.info-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.file-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    color: white;
    padding: 8px 15px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(244, 67, 54, 0.15);
}

.file-pdf-link:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #e53935 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.25);
    gap: 10px;
}

.chat-image {
    max-width: 250px;
    max-height: 180px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid #e0e7ff;
    margin-top: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.chat-image:hover {
    border-color: var(--secondary);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ===== LOGIN MODAL ===== */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

.login-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-35px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-form h2 {
    color: var(--primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
}

.login-form h2 i {
    color: var(--accent);
    background: rgba(255, 152, 0, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e7ff;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 172, 193, 0.15);
    outline: none;
}

.login-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    margin-top: 10px;
    box-shadow: 0 3px 12px rgba(26, 35, 126, 0.25);
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.35);
}

.login-info {
    margin-top: 20px;
    padding: 12px;
    background: rgba(0, 172, 193, 0.08);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: #555;
    border-left: 3px solid var(--secondary);
}

/* ===== TYPING INDICATOR ===== */
.typing-indicator {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 12px 18px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* ===== IMAGE MODAL ===== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ===== PULSE ANIMATION ===== */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 172, 193, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(0, 172, 193, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 172, 193, 0); }
}

/* ===== FOOTER ===== */
.footer {
    padding: 12px 25px;
    text-align: center;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        max-width: 95%;
        border-radius: var(--radius-md);
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .admin-info {
        flex-direction: column;
        width: 100%;
    }
    
    .admin-welcome {
        margin-right: 0;
        margin-bottom: 8px;
        width: 100%;
    }
    
    .admin-btn, #adminBtn {
        width: 100%;
        justify-content: center;
    }
    
    .chat-header {
        padding: 10px 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .chat-header h2 {
        font-size: 0.95rem;
    }
    
    .message {
        max-width: 90%;
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .suggestions {
        grid-template-columns: 1fr;
    }
    
    .chat-input {
        padding: 12px;
        gap: 8px;
    }
    
    .chat-input input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .chat-input button {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }
    
    .welcome-content {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-text {
        text-align: center;
    }
    
    .welcome-text h2 {
        font-size: 0.9rem;
    }
    
    .welcome-text p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    .login-form {
        padding: 25px 15px;
        width: 95%;
    }
    
    .info-box {
        padding: 12px;
        font-size: 0.85rem;
    }
    
    .chat-image {
        max-width: 100%;
    }

    /* ===== ADMIN LOGO STYLES ===== */
.admin-logo .logo-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-logo .logo-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}
.logo-small img {
    filter: none !important;
    background: none !important;
}

.logo-icon img {
    filter: none !important;
    background: none !important;
}
.logo-container,
.logo-small,
.logo-icon {
    background: transparent !important;
}

.logo-small img,
.logo-icon img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
}