/* Gaya Tampilan Premium Menggunakan CSS Murni */
body { 
    background-color: #0b0f19; 
    color: #f8fafc; 
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
}
.header {
    background-color: #151b2c;
    border-bottom: 1px solid #222d44;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header h1 { color: #38bdf8; font-size: 24px; margin: 0; font-weight: 800; }
.header p { color: #64748b; font-size: 13px; margin: 5px 0 0 0; }
.btn-refresh {
    background-color: transparent;
    color: #38bdf8;
    border: 1px solid #38bdf8;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.btn-refresh:hover { background-color: rgba(56, 189, 248, 0.1); }
.container { max-w: 1200px; margin: 40px auto; padding: 0 20px; }

/* Desain Kotak Pencarian */
.search-input {
    width: 100%;
    max-width: 350px;
    background-color: #151b2c;
    border: 1px solid #222d44;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}
.search-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Layout Pembagi Kolom Otomatis */
.grid-saham {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}
.card-saham {
    background-color: #151b2c;
    border: 1px solid #222d44;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.2s;
}
.card-saham:hover { transform: translateY(-3px); border-color: #38bdf8; box-shadow: 0 15px 30px rgba(56, 189, 248, 0.1); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.ticker { background-color: #0b0f19; border: 1px solid #334155; color: #38bdf8; font-family: monospace; font-weight: bold; padding: 4px 8px; border-radius: 6px; }
.nama-saham { color: #ffffff; font-size: 16px; margin: 10px 0 0 0; font-weight: 700; }

/* Pewarnaan Sinyal Swing */
.badge-buy { background-color: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; }
.badge-sell { background-color: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; }
.badge-mid { background-color: rgba(100, 116, 139, 0.15); color: #cbd5e1; border: 1px solid rgba(100, 116, 139, 0.3); padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; }

.row-data { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.label { color: #64748b; }
.val-now { color: #38bdf8; font-weight: bold; }
.progress-container { background-color: #1e293b; height: 8px; border-radius: 10px; overflow: hidden; margin-top: 15px; }
.progress-bar { background: linear-gradient(to right, #10b981 0%, #f59e0b 50%, #ef4444 100%); height: 100%; border-radius: 10px; }
.hint-click { text-align: center; color: #475569; font-size: 11px; margin-top: 15px; font-weight: 500; }

/* Tampilan Pop-up Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(11, 15, 25, 0.85); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.modal-content { background-color: #151b2c; border: 1px solid #222d44; border-radius: 20px; padding: 30px; width: 90%; max-width: 500px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); animation: popUp 0.25s ease-out; box-sizing: border-box; }
@keyframes popUp { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #222d44; padding-bottom: 15px; margin-bottom: 20px; }
.modal-title { font-size: 18px; font-weight: bold; color: white; margin-top: 8px; }
.close-btn { background: none; border: none; color: #64748b; font-size: 24px; cursor: pointer; }
.close-btn:hover { color: #ef4444; }
.analisa-box { background-color: #0b0f19; border: 1px solid #222d44; border-radius: 12px; padding: 15px; margin-top: 15px; }
.analisa-title { font-size: 14px; margin: 0 0 12px 0; color: #38bdf8; text-transform: uppercase; letter-spacing: 0.05em; }
