/* ==========================================================================
   AETHVION LABS - CRYPTO DCA SIMULATOR STYLESHEET
   ========================================================================== */

/* Layout & Grid Setup */
.simulator-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .simulator-grid {
        grid-template-columns: 1fr;
    }
}

/* Glass Card Base */
.glass-card {
    background: rgba(18, 26, 47, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 240, 255, 0.05);
}

/* Panel Titles */
.panel-title {
    font-size: 1.25rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 12px;
}

.border-bottom-cyan {
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    position: relative;
}

.border-bottom-cyan::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #00F0FF;
    box-shadow: 0 0 8px #00F0FF;
}

/* Controls Styles */
.control-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.control-label-inline {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Form Inputs & Selects */
.select-container {
    position: relative;
    width: 100%;
}

.select-container select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(5, 10, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-container select:focus {
    outline: none;
    border-color: #00F0FF;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.select-container::after {
    content: '▼';
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Input Amount Badge style */
.input-with-badge {
    position: relative;
    display: flex;
    align-items: center;
}

.input-badge {
    position: absolute;
    left: 16px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.input-with-badge input[type="number"] {
    width: 100%;
    padding: 12px 16px 12px 32px;
    background: rgba(5, 10, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-with-badge input[type="number"]:focus {
    outline: none;
    border-color: #00F0FF;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Switches & Toggles */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider.round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: .3s;
    border-radius: 34px;
}

.slider.round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.4);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: #00F0FF;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.toggle-description {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    margin-top: 2px;
}

/* Glow Action Button */
.btn-initialize {
    margin-top: 10px;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glow-cyan {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #00F0FF;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

.btn-glow-cyan:hover {
    background: #00F0FF;
    color: #030712;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    text-shadow: none;
}

.btn-glow-cyan:active {
    transform: translateY(1px);
}

/* Stage Panel & HUD */
.stage-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.telemetry-hud {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: rgba(5, 10, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 16px;
}

@media (max-width: 576px) {
    .telemetry-hud {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.hud-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.hud-item:last-child {
    border-right: none;
}

@media (max-width: 576px) {
    .hud-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 8px;
    }
    .hud-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

.hud-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.hud-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s ease;
}

/* Chart Canvas container */
.chart-container {
    position: relative;
    width: 100%;
    height: 380px;
    background: rgba(5, 10, 20, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dca-chart {
    width: 100% !important;
    height: 100% !important;
}

/* Secondary Dashboard Grid */
.telemetry-dashboard {
    margin-bottom: 24px;
}

.dashboard-title {
    font-size: 1.15rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background: rgba(5, 10, 20, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.metric-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.metric-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.metric-subtitle {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* Ledger Transaction Log */
.log-section {
    margin-bottom: 24px;
}

.log-section h2 {
    font-size: 1.15rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-container {
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: rgba(5, 10, 20, 0.2);
}

/* Custom Scrollbar for Ledger Table */
.table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.table-container::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.4);
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.ledger-table th {
    background: rgba(18, 26, 47, 0.8);
    position: sticky;
    top: 0;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    z-index: 5;
}

.ledger-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.8);
}

.ledger-table tbody tr {
    transition: background 0.2s ease;
}

.ledger-table tbody tr:hover {
    background: rgba(0, 240, 255, 0.03);
}

.ledger-table tr:last-child td {
    border-bottom: none;
}

.empty-row {
    text-align: center;
    color: rgba(255, 255, 255, 0.4) !important;
    padding: 40px 16px !important;
    font-style: italic;
}

/* Info Guide Section */
.info-section {
    margin-bottom: 24px;
}

.info-section h2 {
    font-size: 1.15rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .guide-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.guide-col h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 12px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.guide-col p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Glowing text colors */
.glow-text {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.text-glow-cyan {
    color: #00F0FF;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.glow-text-cyan {
    color: #00F0FF;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
}

.text-glow-purple {
    color: #c084fc;
    text-shadow: 0 0 8px rgba(147, 51, 234, 0.4);
}

.text-glow-green {
    color: #10B981;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.text-glow-red {
    color: #EF4444;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.text-glow-yellow {
    color: #F59E0B;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.positive-return {
    color: #10B981 !important;
    font-weight: 600;
}

.negative-return {
    color: #EF4444 !important;
    font-weight: 600;
}
