/* 
  Module 13: Cost of Electrical Energy, Depreciation Methods & Tariff Types 
  Power Plant Engineering
*/

.m13-card {
    border-top: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card Themes */
.card-economics {
    border-top-color: #facc15; /* Gold - economics/cost */
}

.card-tariff {
    border-top-color: #00ff88; /* Green - tariffs */
}

.m13-card span.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0e2a1d;
}

/* Base custom table for m13 */
.m13-table {
    width: 100%;
    font-size: 0.8rem;
    text-align: left;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 10px;
}
.m13-table th {
    padding: 6px;
    border-bottom: 1px solid #444;
}
.m13-table td {
    padding: 6px;
    border-bottom: 1px solid #222;
}

/* --- D3 Chart SVG Styles --- */
.m13-stacked-bar, .m13-line-chart, .m13-pie-chart {
    font-family: 'Share Tech Mono', 'Orbitron', monospace;
}
.m13-axis path,
.m13-axis line {
    stroke: #444;
}
.m13-axis text {
    fill: #9ca3af;
    font-size: 10px;
}
.m13-grid line {
    stroke: rgba(255, 255, 255, 0.05);
}
.m13-grid path {
    stroke-width: 0;
}

.m13-legend {
    font-size: 10px;
    fill: #d1d5db;
}

/* Typography Helpers */
.text-gold { color: #facc15 !important; }
.text-cyan { color: #00f5ff !important; }
.text-orange { color: #f97316 !important; }
.text-green { color: #00ff88 !important; }
.text-purple { color: #a78bfa !important; }
.text-rose { color: #fb7185 !important; }

/* Interactive Flash Cards */
.flashcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.m13-flashcard {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    perspective: 1000px;
    height: 100px;
}
.m13-flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.m13-flashcard.flipped .m13-flashcard-inner {
    transform: rotateY(180deg);
}
.m13-flashcard-front, .m13-flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 12px;
}
.m13-flashcard-front {
    color: #e2e8f0;
}
.m13-flashcard-back {
    transform: rotateY(180deg);
    background: #0d1117;
    border-radius: 6px;
    color: #facc15;
    font-weight: bold;
}

/* Calculator Wrappers */
.m13-calc-box {
    background: #0d1117;
    padding: 15px;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.m13-calc-box .result-display {
    font-size: 1.5rem;
    font-family: 'Share Tech Mono', monospace;
    text-align: right;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #333;
}

/* Animations */
@keyframes neon-pulse-gold {
    0% { box-shadow: 0 0 5px rgba(250, 204, 21, 0.2); }
    50% { box-shadow: 0 0 15px rgba(250, 204, 21, 0.6); }
    100% { box-shadow: 0 0 5px rgba(250, 204, 21, 0.2); }
}

@keyframes neon-pulse-green {
    0% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.2); }
    50% { box-shadow: 0 0 15px rgba(0, 255, 136, 0.6); }
    100% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.2); }
}

.pulse-gold { animation: neon-pulse-gold 2s infinite; }
.pulse-green { animation: neon-pulse-green 2s infinite; }

/* Dashboard Clock */
.tod-clock-svg text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
}
.tod-segment {
    transition: opacity 0.3s;
    cursor: pointer;
}
.tod-segment:hover {
    opacity: 0.8;
}

/* Multi-step progress tracker */
.tariff-builder-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 10px;
    color: #9ca3af;
}
.tariff-step {
    text-align: center;
    flex: 1;
    border-bottom: 2px solid #374151;
    padding-bottom: 5px;
    transition: all 0.3s;
}
.tariff-step.active {
    color: #00ff88;
    border-bottom-color: #00ff88;
}
