/* static/assets/css/custom.css */

/* ================================================================== */
/* 1. ROOT VARIABLES                                                  */
/* Centralizes theme colors and values for easy updates.              */
/* ================================================================== */
:root {
    --text-primary: #FFFFFF;
    --text-secondary: #c1c1c1;
    --text-muted: #525f7f;
    --text-dark: #344675;

    --primary-accent-color: #e14eca;
    --highlight-blue-color: #007bff;
    --success-color: #2dce89;
    --bullish-color: #4ade80;
    /* Brighter green for bullish */
    --bearish-color: #f87171;
    /* Softer red for bearish */

    --bg-dark-primary: #1e1e2d;
    --bg-dark-secondary: #2c3e50;
    --bg-dark-tertiary: #34495e;

    --font-body: "Poppins", sans-serif;
    --font-special: 'Pacifico', cursive;
}


/* ================================================================== */
/* 2. GLOBAL & LAYOUT STYLES                                          */
/* ================================================================== */

/* --- Navbar --- */
.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--text-primary) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* --- Sidebar --- */
.sidebar .nav p,
.sidebar .nav button p {
    color: var(--text-primary) !important;
}

.sidebar .nav li.active>a p {
    color: var(--primary-accent-color) !important;
}

/* --- Footer --- */
.footer {
    left: 0;
    width: 100%;
}


/* ================================================================== */
/* 3. CUSTOM COMPONENT STYLES                                         */
/* ================================================================== */

/* --- Homepage Hero Title --- */
.hero-title {
    font-family: var(--font-body);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.highlight-blue {
    color: var(--highlight-blue-color) !important;
}

/* --- Progress Bars (Bullish/Bearish) --- REFACTORED --- */
.progress-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.8em;
}

.label-bullish {
    color: var(--bullish-color) !important;
}

.label-bearish {
    color: var(--bearish-color) !important;
}

/* This is the container for the bar */
.progress {
    height: 35px;
    /* Set a single, consistent height */
    font-size: 1rem;
    background-color: var(--bg-dark-primary);
    border-radius: .4285rem;
    overflow: hidden;
    /* Ensures bar corners are rounded */
}

/* This styles the bar itself and ANY text inside it */
.progress-bar {
    /* 1. Text Styling */
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);

    /* 2. Centering Content (Flexbox) */
    display: flex;
    justify-content: center;
    align-items: center;

    /* 3. Smooth animation for width changes */
    transition: width 0.6s ease;
}

/* These classes just set the color, keeping logic separate */
.progress-bar-bullish {
    background-color: var(--bullish-color);
}

.progress-bar-bearish {
    background-color: var(--bearish-color);
}


/* --- Form Elements --- */
select.form-control {
    color: #ecf0f1;
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--bg-dark-tertiary);
    border-radius: 5px;
    padding: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ECF0F1%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: .65em auto;
}

.custom-checkbox-container label {
    position: relative;
    cursor: pointer;
    padding-left: 30px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.custom-checkbox-container input[type="checkbox"]:checked+label::before {
    background-color: var(--success-color);
    border-color: var(--success-color);
}


/* --- Portfolio Card Text Fix --- */
.card .list-group-item {
    color: var(--text-muted) !important;
    background-color: var(--text-primary) !important;
}

.card .list-group-item strong {
    color: var(--text-dark) !important;
}