/* ========================================================================
 * components.css — Component-Level Styles
 * Robinhood Agentic Algorithmic Trading Platform (v1.4.0)
 * ======================================================================== */

/* --- Glass Card --- */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* --- Mode Toggle Switch --- */
.mode-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.mode-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dc3545;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* --- Pulse Animation --- */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- Navigation Tabs --- */
.nav-tabs {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.nav-item {
    margin-bottom: -2px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    border: none;
    background: none;
    padding: 10px 20px;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid #007bff;
}

.tab-content {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Tables --- */
.table-dark-custom {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.table-dark-custom th {
    border-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.table-dark-custom td {
    border-color: rgba(255, 255, 255, 0.05);
}

/* --- Badges --- */
.badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-risk {
    background-color: #dc3545;
    color: white;
}

/* --- Results Container --- */
.results-container {
    max-height: 400px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 15px;
}

/* --- Check Row --- */
.check-row {
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

/* --- Console Feed --- */
.console-feed {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    max-height: 300px;
    overflow-y: auto;
}

/* --- Status Indicators --- */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-healthy {
    background-color: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.status-warning {
    background-color: #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.status-error {
    background-color: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

/* --- Metric Cards --- */
.metric-card {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.metric-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}
