/*
Theme Name: Trading Dashboard Theme
Theme URI:
Author: Jules
Author URI:
Description: A modern, clean trading admin dashboard theme for WordPress.
Version: 1.0.0
License: MIT
Text Domain: trading-dashboard
*/

:root {
    --bg: #0f1115; --card: #181b21; --text: #e0e0e0;
    --green: #00e676; --red: #ff1744; --yellow: #ffea00;
}

body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 100vh;}
.site-content { flex: 1; padding: 20px; }
.dashboard-container { max-width: 1200px; margin: 0 auto; }

/* Custom Header / Footer Styles */
.site-header {
    background-color: #212529; /* dark gray */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.site-branding {
    display: flex;
    align-items: center;
}
.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d2ff;
}
.site-title a { color: inherit; text-decoration: none; }

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
.main-navigation a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.main-navigation a:hover {
    color: #00d2ff;
}

.site-footer {
    background-color: #1a1d24; /* solid gray */
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #aaa;
}
.footer-links a {
    color: #aaa;
    text-decoration: none;
    margin: 0 10px;
}
.footer-links a:hover {
    color: #00d2ff;
}

/* Original Dashboard Styles */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; padding-bottom: 15px; margin-bottom: 20px; }
.price-header { font-size: 1.5rem; font-weight: bold; color: #00d2ff; }
.clock { font-family: monospace; font-size: 1.5rem; }

.card { background: var(--card); padding: 20px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #333; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.card-header h2 { margin: 0; font-size: 1.2rem; }
button { background: #333; color: white; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; transition: 0.2s; }
button:hover { background: #555; }

.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 15px; }
.signal-box { background: #22252b; padding: 15px; border-radius: 6px; text-align: center; border: 1px solid #444; }
.signal-label { font-size: 0.9rem; color: #aaa; margin-bottom: 5px; }
.signal-value { font-size: 1.2rem; font-weight: bold; }

.status-indicator { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; }
.status-green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-red { background: var(--red); box-shadow: 0 0 8px var(--red); }
.status-yellow { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #333; }
th { background: #22252b; color: #aaa; font-weight: 500; }
tr:hover { background: #2a2e35; }

.trend-up { color: var(--green); }
.trend-down { color: var(--red); }

/* Switch Toggle CSS */
.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #555; transition: .4s; border-radius: 20px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #00e676; }
input:checked + .slider:before { transform: translateX(20px); }

.alert-row { animation: flashRow 2s ease-out; }
@keyframes flashRow { 0% { background-color: rgba(0, 230, 118, 0.3); } 100% { background-color: transparent; } }

.loading { text-align: center; color: #aaa; font-style: italic; padding: 20px; }
