/* assets/css/style.css */

/* Reset & Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f7f6; /* Latar belakang utama Anda */
    color: #333;
    /* Menghapus padding-top karena layout dashboard mungkin berbeda dengan fixed-top navbar Bootstrap standar */
}

a {
    color: #007bff; /* Warna link default Anda */
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Auth Pages (Login/Register) - SUDAH ADA */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.auth-container div { /* Ini mungkin terlalu umum, lebih baik targetkan .form-group jika ada */
    margin-bottom: 15px;
}

.auth-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.auth-container button {
    width: 100%;
    padding: 12px;
    background-color: #007bff; /* Biru */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.auth-container button:hover {
    background-color: #0056b3;
}

.auth-container p {
    text-align: center;
    margin-top: 15px;
}

.error { /* Untuk pesan error form */
    color: #dc3545; /* Merah */
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.success { /* Untuk pesan sukses form */
    color: #28a745; /* Hijau */
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}


/* Dashboard Layout - SUDAH ADA */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50; /* Biru tua */
    color: #ecf0f1; /* Putih keabuan */
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
    /* Menambahkan position fixed agar sidebar tetap saat main-content scroll jika diperlukan */
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 100; /* Di bawah mobile-menu-toggle jika toggle ada di header utama */
}

.sidebar.collapsed { /* Jika Anda implementasi collapse/expand sidebar */
    transform: translateX(-100%);
    /* width: 0; Dihapus agar transisi lebih smooth, padding akan menjaganya */
}

.sidebar-header {
    padding: 0 20px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #34495e;
}
.sidebar-header h3 {
    margin: 0;
    font-size: 1.8em;
    color: #f39c12; /* Oranye khas Chanelify */
}

.sidebar-nav ul {
    list-style-type: none;
    padding: 0;
    flex-grow: 1;
}

.sidebar-nav li a {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}
.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background-color: #34495e; /* Sedikit lebih gelap */
    padding-left: 25px;
    color: #f39c12;
}
.sidebar-nav li a i {
    margin-right: 10px;
    width: 20px; /* Jaga alignment ikon */
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #34495e;
    text-align: center;
}
.sidebar-footer a {
    color: #bdc3c7;
}
.sidebar-footer a:hover {
    color: #f39c12;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-left: 250px; /* Memberi ruang untuk sidebar yang fixed */
    transition: margin-left 0.3s ease-in-out; /* Transisi saat sidebar collapse/expand */
}
/* Gaya untuk main-content saat sidebar collapsed */
.sidebar.collapsed + .main-content {
    margin-left: 0;
}


.main-header {
    background-color: #fff;
    padding: 15px 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    position: sticky; /* Membuat header menempel saat scroll di .content-area */
    top: 0;
    z-index: 90; /* Di bawah sidebar jika sidebar overlay */
}
.main-header h1 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.mobile-menu-toggle {
    display: none; /* Sembunyikan di desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    z-index: 1100; /* Di atas sidebar */
}

.content-area {
    padding: 25px;
    flex-grow: 1;
    overflow-y: auto; /* Untuk scroll jika konten panjang */
    background-color: #f4f7f6; /* Sesuaikan dengan body atau biarkan default */
}

/* Tool Cards - SUDAH ADA */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.tool-icon {
    font-size: 2.5em;
    color: #f39c12; /* Oranye */
    margin-bottom: 15px;
    text-align: center;
}

.tool-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.tool-card p {
    font-size: 0.9em;
    color: #555;
    flex-grow: 1; /* Agar tombol tetap di bawah */
    margin-bottom: 15px;
}

.btn-tool {
    display: inline-block;
    background-color: #f39c12; /* Oranye */
    color: #fff !important; /* Menimpa warna default <a> jika .btn-tool adalah <a> */
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.2s ease;
    margin-top: auto; /* Dorong ke bawah */
    text-decoration: none !important; /* Menghilangkan underline dari <a> */
}
.btn-tool:hover {
    background-color: #e67e22; /* Oranye lebih tua */
    color: #fff !important;
    text-decoration: none !important;
}

/* ------------------------------------------------------------------ */
/* PENAMBAHAN/MODIFIKASI: STYLING UNTUK LIST (BULLET POINTS)          */
/* ------------------------------------------------------------------ */
/* Targetkan list di dalam area konten utama, hasil analisis, atau card */
.content-area ul, .content-area ol,
.result-section ul, .result-section ol,
.card-body ul, .card-body ol, /* Jika Anda menggunakan .card-body Bootstrap */
.tool-card ul, .tool-card ol { /* Jika list ada di dalam tool-card */
    padding-left: 30px; /* Indentasi list. Sesuaikan nilainya (misal: 25px, 35px) */
    margin-right: 10px; /* Sedikit ruang di kanan */
    margin-bottom: 1rem; /* Jarak bawah setelah blok list */
}

.content-area ul li, .content-area ol li,
.result-section ul li, .result-section ol li,
.card-body ul li, .card-body ol li,
.tool-card ul li, .tool-card ol li {
    margin-bottom: 0.4em; /* Jarak antar item list */
    line-height: 1.5; /* Keterbacaan item list */
}

/* Kontainer untuk hasil analisis (jika Anda menggunakan kelas spesifik) */
.result-section {
    background-color: #fff; /* Latar belakang putih untuk kontras */
    padding: 20px; /* Padding internal */
    border: 1px solid #eee;
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.result-section h5 { /* Jika ada sub-judul di dalam hasil analisis */
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}
/* ------------------------------------------------------------------ */


/* Responsive - SUDAH ADA */
@media (max-width: 768px) {
    .sidebar {
        /* position: fixed; sudah di atas */
        transform: translateX(-100%); /* Sembunyikan default di mobile */
    }
    .sidebar.open { /* Kelas 'open' ditambahkan via JavaScript */
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0; /* Main content mengambil lebar penuh saat sidebar tersembunyi */
    }
    /* Jika sidebar terbuka di mobile, beri margin ke main-content (opsional, tergantung desain) */
    /*
    .sidebar.open ~ .main-content {
        margin-left: 250px;
    }
    */
    .main-header {
        padding: 15px;
    }
    .mobile-menu-toggle {
        display: block; /* Tampilkan tombol menu di mobile */
    }
    .tools-grid {
        grid-template-columns: 1fr; /* Satu kolom di mobile */
    }

    /* Penyesuaian untuk list di mobile agar tidak terlalu indent */
    .content-area ul, .content-area ol,
    .result-section ul, .result-section ol,
    .card-body ul, .card-body ol,
    .tool-card ul, .tool-card ol {
        padding-left: 20px; /* Kurangi indentasi di mobile */
        margin-right: 5px;
    }
}