/* Variabel Warna sesuai Request */
:root {
    --primary-blue: #0C2B4E;    /* Warna Utama (Background/Header) */
    --accent-orange: #F87B1B;   /* Warna Aksen (Tombol/Highlight) */
    --neutral-gray: #EEEEEE;    /* Warna Netral (Background Form) */
    --text-dark: #333333;
    --shadow-glow: 0 0 10px rgba(248, 123, 27, 0.5); /* Efek Glowing Orange */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.btn-stop {
        background: #e74c3c;
        color: white;
        border: none;
        padding: 0 25px;
        height: 50px; /* Samakan tinggi dengan input */
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.3s;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .btn-stop:hover {
        background: #c0392b;
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    }

body {
    background-color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-image: linear-gradient(135deg, #0C2B4E 0%, #06182e 100%);
}

/* Container Kartu Login */
.login-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Dekorasi Atas (Opsional - Pemanis) */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-orange);
}

.login-header .logo {
    width: 80px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.login-header h2 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 5px;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Input Styles */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    transition: color 0.3s;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Padding kiri lebih besar buat icon */
    border: 2px solid var(--neutral-gray);
    border-radius: 10px;
    background-color: #f9f9f9;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

/* Affordance & Glowing Effect */
.input-wrapper input:focus {
    border-color: var(--accent-orange);
    background-color: #fff;
    box-shadow: var(--shadow-glow); /* Glowing effect pas diklik */
}

.input-wrapper input:focus + .input-icon {
    color: var(--accent-orange); /* Icon ikut berubah warna */
}

.input-wrapper input::placeholder {
    color: #ccc;
    font-weight: 300;
}

/* Show Password Toggle */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary-blue);
}

/* Button Login */
.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background-color: var(--accent-orange);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-login:hover:not(:disabled) {
    background-color: #e0690c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 123, 27, 0.4);
}

/* Disabled State */
.btn-login:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.forgot-pass {
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-pass:hover {
    color: var(--accent-orange);
}

.alert-error {
    background-color: #ffecec;
    color: #ff4d4d;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid #ffcccc;
}

.footer-login p {
    margin-top: 30px;
    font-size: 0.75rem;
    color: #aaa;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

:root {
    --primary: #0C2B4E;
    --accent: #F87B1B;
    --light: #EEEEEE;
    --white: #FFFFFF;
    --danger: #e74c3c;
    --success: #2ecc71;
}

body {
    background-color: #f4f6f9;
    font-family: 'Poppins', sans-serif;
    display: flex;
    min-height: 100vh;
    margin: 0;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100%;
    transition: all 0.3s;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header img {
    width: 50px;
    margin-bottom: 10px;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.nav-links li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #cbd5e0;
    text-decoration: none;
    transition: 0.3s;
    gap: 10px;
}

.nav-links li a:hover, .nav-links li a.active {
    background-color: var(--accent);
    color: white;
    border-right: 4px solid #fff;
}

.logout-link {
    margin-top: auto; /* Push to bottom */
    background-color: rgba(0,0,0,0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px; /* Lebar Sidebar */
    padding: 30px;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card.orange { border-left-color: var(--accent); }
.stat-card.red { border-left-color: var(--danger); }
.stat-card.green { border-left-color: var(--success); }

.stat-info h3 { font-size: 2rem; margin: 0; color: var(--primary); }
.stat-info p { margin: 5px 0 0; color: #777; font-size: 0.9rem; }
.stat-icon { font-size: 2.5rem; color: #ddd; }

/* Charts */
.chart-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* Day Tabs */
.day-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.day-tab {
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: 0.3s;
}

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

/* Data List Styles */
.data-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.data-card.negative { border-left-color: var(--accent); }

.data-content h4 { margin: 0 0 5px 0; color: var(--primary); }
.data-content .meta { font-size: 0.8rem; color: #888; margin-bottom: 10px; display: block;}
.data-content .snippet { color: #555; font-size: 0.95rem; line-height: 1.5; }
.detected-badge { 
    background: #ffecec; color: #e74c3c; padding: 2px 8px; 
    border-radius: 4px; font-size: 0.8rem; font-weight: bold; 
}

.btn-visit {
    background: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}
.btn-visit:hover { background: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); width: 0; }
    .main-content { margin-left: 0; }
    /* Nanti bisa ditambah tombol toggle sidebar buat mobile */
}
}