/* CRYPTO TEK AI - Monthly Report Styles (Web App - Desktop Modal) */

/* ==================== Modal Overlay ==================== */
.report-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: reportFadeIn 0.25s ease;
}

@keyframes reportFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.report-modal-container {
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    background: linear-gradient(180deg, #0a0e1a 0%, #1a1f35 100%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: 20px;
}

.report-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.report-modal-header h1 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 800;
}

.report-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    transition: background 0.2s;
}

.report-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.report-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 22px;
}

/* Month Selector */
.report-month-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.report-month-selector button {
    background: rgba(249, 195, 0, 0.15);
    border: 1px solid rgba(249, 195, 0, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    color: #f9c300;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: background 0.2s;
}

.report-month-selector button:hover:not(:disabled) {
    background: rgba(249, 195, 0, 0.3);
}

.report-month-selector button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.report-month-selector span {
    color: white;
    font-weight: 600;
    font-size: 15px;
    min-width: 120px;
    text-align: center;
}

/* Loading & Error States */
.report-loading-state,
.report-error-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.report-spinner {
    border: 3px solid rgba(249, 195, 0, 0.15);
    border-top: 3px solid #f9c300;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: report-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes report-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.report-error-state button {
    margin-top: 12px;
    padding: 10px 20px;
    background: rgba(249, 195, 0, 0.2);
    border: 1px solid rgba(249, 195, 0, 0.4);
    border-radius: 8px;
    color: #f9c300;
    cursor: pointer;
    font-weight: 600;
}

/* Plan Badge */
.report-plan-badge {
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.report-plan-badge.free {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.report-plan-badge.pro {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
}

.report-plan-badge.premium {
    background: linear-gradient(135deg, #f9c300 0%, #ff6b35 100%);
    color: #1a1a2e;
}

.report-plan-badge.diamond {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
}

.report-plan-badge.trial {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.report-plan-badge h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.report-plan-badge p {
    margin: 6px 0 0;
    opacity: 0.85;
    font-size: 13px;
}

/* Summary Cards */
.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.report-summary-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
}

.report-summary-card.accent {
    border-color: rgba(249, 195, 0, 0.3);
    background: rgba(249, 195, 0, 0.08);
}

.report-summary-card.success {
    border-color: rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.08);
}

.report-summary-value {
    font-size: 26px;
    font-weight: 800;
    color: #f9c300;
    line-height: 1.2;
}

.report-summary-card.success .report-summary-value {
    color: #4CAF50;
}

.report-summary-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    margin-top: 4px;
    line-height: 1.3;
}

/* Section */
.report-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
}

.report-section h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: white;
}

/* Feature Usage Bars */
.report-feature-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.report-feature-label {
    width: 90px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.report-feature-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.report-feature-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.report-feature-count {
    width: 30px;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

/* Trade Performance */
.report-perf-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.report-perf-header span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.report-perf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.report-perf-row:last-child {
    border-bottom: none;
}

.report-perf-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
    min-width: 80px;
}

.report-perf-stats {
    display: flex;
    gap: 16px;
}

.report-perf-stats span {
    font-size: 12px;
    min-width: 30px;
    text-align: center;
}

.report-perf-total {
    color: rgba(255, 255, 255, 0.6);
}

.report-perf-confirmed {
    color: #4CAF50;
    font-weight: 600;
}

.report-perf-not {
    color: #FF6B35;
}

.report-perf-accuracy {
    font-weight: 700;
}

.report-perf-accuracy.high {
    color: #4CAF50;
}

.report-perf-accuracy.mid {
    color: #FF9800;
}

.report-perf-accuracy.low {
    color: #f44336;
}

.report-no-data {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    padding: 16px 0;
}

/* Top Coins */
.report-coin-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.report-coin-row:last-child {
    border-bottom: none;
}

.report-coin-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(249, 195, 0, 0.15);
    color: #f9c300;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.report-coin-symbol {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.report-coin-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Trend */
.report-trend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.report-trend-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 12px;
}

.report-trend-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.report-trend-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-trend-values > span:first-child {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.report-trend-change {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.report-trend-change.positive {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.report-trend-change.negative {
    color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

/* Plan Limits */
.report-plan-limited {
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(255, 107, 53, 0.06);
}

.report-plan-limited p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    margin: 0 0 10px;
    line-height: 1.5;
}

.report-plan-success {
    border-color: rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.06);
}

.report-plan-success p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    margin: 0;
}

.report-upgrade-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f9c300 0%, #ff6b35 100%);
    border: none;
    border-radius: 10px;
    color: #1a1a2e;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
}

/* Disclaimer */
.report-disclaimer {
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.report-disclaimer p {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
    .report-modal-container {
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .report-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-trend-grid {
        grid-template-columns: 1fr;
    }

    .report-feature-label {
        width: 70px;
        font-size: 11px;
    }

    .report-perf-stats {
        gap: 10px;
    }
}
