/* Full Page FX Monitor Styles - No Container */
.fx-full-page {
    display: flex;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    color: #e0e0e0;
    margin: 0;
    padding: 10px;
    gap: 10px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.2;
}

.fx-main-content {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    max-width: 75%;
}

.fx-log-sidebar {
    width: 400px;
    min-width: 400px;
    background: rgba(20, 20, 20, 0.95);
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header */
.fx-header {
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ff3366;
    padding-bottom: 0.8rem;
}

.fx-title {
    color: #ff3366;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.fx-subtitle {
    color: #32cd32;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

/* Parameters Panel */
.fx-parameters {
    background: rgba(25, 25, 25, 0.8);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #444;
}

.parameters-title {
    color: #ffaa00;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.parameter-group {
    display: flex;
    flex-direction: column;
}

.parameter-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    cursor: help;
    color: #ccc;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.tooltip-icon {
    font-size: 0.7rem;
    opacity: 0.7;
}

.parameter-input {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid #555;
    border-radius: 4px;
    padding: 0.4rem;
    color: #ffecb3;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.parameter-input:focus {
    outline: none;
    border-color: #ff3366;
}

.parameter-help {
    color: #888;
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.parameter-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.option-input {
    margin: 0;
}

.option-label {
    color: #ccc;
    font-size: 0.85rem;
}

/* Process Controls */
.fx-controls {
    background: rgba(30, 30, 30, 0.9);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #444;
}

.control-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.fx-btn {
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.fx-btn.primary { background: linear-gradient(to right, #4776E6, #8E54E9); }
.fx-btn.success { background: linear-gradient(to right, #11998e, #38ef7d); }
.fx-btn.danger { background: linear-gradient(to right, #EB3349, #F45C43); }
.fx-btn.secondary { background: linear-gradient(to right, #667eea, #764ba2); }

.fx-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.fx-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.process-status {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 0.8rem;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid #444;
}

.status-indicator {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.status-online { background: rgba(0, 255, 0, 0.2); color: #00ff00; border: 1px solid #00ff00; }
.status-offline { background: rgba(255, 0, 0, 0.2); color: #ff4444; border: 1px solid #ff4444; }
.status-scanning { background: rgba(255, 170, 0, 0.2); color: #ffaa00; border: 1px solid #ffaa00; animation: pulse 1.5s infinite; }

@keyframes pulse {
    0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; }
}

.scan-time {
    color: #888;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    text-align: center;
}

#next-scan-time { color: #ffaa00; }
#last-scan-time { color: #32cd32; }

/* Market Data Display */
.fx-status {
    background: rgba(25, 25, 25, 0.8);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #32cd32;
}

.fx-price {
    font-size: 2rem;
    font-weight: bold;
    color: #ffecb3;
    text-align: center;
    margin: 0.8rem 0;
}

.fx-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.fx-indicator {
    background: rgba(40, 40, 40, 0.8);
    padding: 0.8rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #444;
}

.fx-indicator-label {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.fx-indicator-value {
    color: #ffecb3;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* Signal Display */
.fx-signal {
    background: rgba(30, 30, 30, 0.9);
    border-radius: 6px;
    padding: 1rem;
    margin: 0.8rem 0;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.fx-signal.active {
    border-color: #32cd32;
}

.fx-signal.inactive {
    border-color: #666;
    opacity: 0.8;
}

.signal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #444;
}

.signal-timestamp {
    color: #888;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.signal-pair {
    color: #ff3366;
    font-weight: bold;
    font-size: 0.9rem;
}

.signal-title {
    color: #32cd32;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.signal-type {
    color: #ffaa00;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.signal-levels, .signal-stats, .signal-ev, .signal-rationale, .signal-lots {
    color: #e0e0e0;
    margin-bottom: 0.6rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.signal-levels {
    color: #ffecb3;
    font-weight: bold;
}

.signal-message {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

.signal-hint {
    color: #ffaa00;
    text-align: center;
    margin-top: 0.8rem;
    font-size: 0.85rem;
}

/* Weekend Warning */
.weekend-warning {
    background: rgba(255, 170, 0, 0.2);
    border: 1px solid #ffaa00;
    color: #ffaa00;
    padding: 0.8rem;
    border-radius: 4px;
    margin: 0.8rem 0;
    text-align: center;
    font-weight: bold;
    font-size: 0.85rem;
}

/* Process Log Sidebar - UPDATED FOR ACCORDION */
.fx-log-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #333;
    background: rgba(25, 25, 25, 0.9);
}

.log-title {
    color: #ffaa00;
    font-size: 1rem;
    margin: 0;
}

.log-clear {
    background: rgba(255, 68, 68, 0.2);
    color: #ff8888;
    border: 1px solid #ff4444;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
}

.log-clear:hover {
    background: rgba(255, 68, 68, 0.3);
}

.log-content {
    flex: 1;
    padding: 0.8rem;
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.8);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.2;
}

/* Accordion Styles */
.scan-group {
    margin-bottom: 0.8rem;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.scan-header {
    background: rgba(40, 40, 40, 0.8);
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid #32cd32;
    color: #d4d4d4;
    font-weight: bold;
}

.scan-header:hover {
    background: rgba(50, 50, 50, 0.8);
}

.scan-header .toggle-icon {
    font-size: 0.7rem;
    color: #888;
    transition: transform 0.3s ease;
}

.scan-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.scan-details {
    background: rgba(30, 30, 30, 0.6);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.scan-details.expanded {
    max-height: 1000px;
}

.scan-messages {
    padding: 0.4rem 0.8rem;
}

/* All log entries now white */
.log-entry {
    color: white;
    margin-bottom: 0.4rem;
    padding: 0.4rem;
    white-space: pre-wrap;
    word-break: break-all;
    border-left: 2px solid #444;
    padding-left: 0.8rem;
}

.log-entry.start-scan {
    border-left-color: #32cd32;
}

.log-entry.info {
    border-left-color: #32cd32;
}

.log-entry.warning {
    border-left-color: #ffaa00;
}

.log-entry.error {
    border-left-color: #ff4444;
}

.log-entry.calculation {
    border-left-color: #4776E6;
}

.log-entry.analysis {
    border-left-color: #ff3366;
}

/* Loading States */
.fx-loading {
    text-align: center;
    color: #ffaa00;
    font-size: 1rem;
    padding: 2rem;
}

.loading-spinner {
    border: 3px solid rgba(255, 170, 0, 0.3);
    border-left: 3px solid #ffaa00;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 0.8rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fx-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4444;
    color: #ff8888;
    padding: 0.8rem;
    border-radius: 4px;
    text-align: center;
    margin: 0.8rem 0;
    font-size: 0.9rem;
}

/* Analysis Details */
.analysis-details {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 4px;
    padding: 0.8rem;
    margin: 0.8rem 0;
    border: 1px solid #444;
}

.analysis-section {
    margin-bottom: 0.8rem;
}

.analysis-section:last-child {
    margin-bottom: 0;
}

.analysis-title {
    color: #ffaa00;
    font-weight: bold;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.analysis-data {
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Indicator colors */
.bullish { color: #32cd32; }
.bearish { color: #ff4444; }
.weekend { color: #ffaa00; }

/* Mobile responsiveness */
@media (max-width: 1200px) {
    .fx-full-page {
        flex-direction: column;
    }
    
    .fx-main-content {
        max-width: 100%;
    }
    
    .fx-log-sidebar {
        width: 100%;
        min-width: 100%;
        height: 300px;
    }
    
    .parameters-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .fx-full-page {
        padding: 5px;
    }
    
    .fx-main-content {
        padding: 5px;
    }
    
    .fx-title {
        font-size: 1.5rem;
    }
    
    .parameters-grid {
        grid-template-columns: 1fr;
    }
    
    .control-buttons {
        flex-direction: column;
    }
    
    .fx-btn {
        width: 100%;
    }
    
    .process-status {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        text-align: center;
    }
}