﻿/*
 * (c) 2026 guardfolio.live / David Purand. All rights reserved.
 * Unauthorized copying, modification, distribution, or sale of this file is strictly prohibited.
 * Proprietary and confidential.
 */

/* ===================================
   Progress Module Styles
   =================================== */

.progress-container {
    display: none;
    /* Toggled by JS */
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.progress-stats-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.progress-year-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.progress-year-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.year-card-body {
    padding: var(--space-lg) var(--space-lg);
}

.year-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gtj-border);
    padding-bottom: var(--space-sm);
}

.year-header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gtj-text-primary);
}

.year-header-stats {
    text-align: right;
}

.header-label {
    font-size: 11px;
    color: var(--gtj-text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.header-value {
    font-size: 16px;
}

.year-stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-box {
    background: #f9fafb;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--gtj-border);
}

.stat-label {
    font-size: 11px;
    color: var(--gtj-text-secondary);
    margin-bottom: 2px;
}

.stat-value {
    font-weight: 700;
    color: var(--gtj-text-primary);
}

.year-chart-wrapper {
    margin-top: 12px;
    height: 150px;
}

/* Modal Styling */
.progress-modal-content {
    max-width: 900px;
}

.progress-modal-header {
    padding: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gtj-border);
}

.progress-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--gtj-text-primary);
}

.progress-modal-body {
    padding: 0 30px 30px 30px;
}

/* Month Table In Modal */
.progress-month-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.progress-month-row:hover {
    background-color: #f9fafb;
}

/* Utility Helpers specific to Progress */
#guardfolio-content-progress .text-h4-imp {
    font-size: var(--fs-h4);
}

#guardfolio-content-progress .kpi-linear-profit {
    font-size: var(--fs-h4);
}

.font-bold {
    font-weight: 700;
}

.font-600 {
    font-weight: 600;
}

.mb-4 {
    margin-bottom: 1rem;
}

.m-0 {
    margin: 0;
}

.w-100 {
    width: 100%;
}

.mt {
    margin-top: 1rem;
}

.mb-small {
    margin-bottom: 0.5rem;
}

.overall-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--gtj-border);
}