/* ============================================
   COMPOUNDING CALCULATOR CUSTOM STYLES
   Additional styles specific to the calculator
   ============================================ */

.cc-wrapper {
    font-family: var(--genivest-font-family);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--genivest-space-8) var(--genivest-space-4);
}

.cc-main-title {
    font-size: var(--genivest-text-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--genivest-space-2);
    background: var(--genivest-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cc-subtitle {
    text-align: center;
    color: var(--genivest-text-secondary);
    margin-bottom: var(--genivest-space-8);
    font-size: var(--genivest-text-lg);
}

.cc-form-group {
    margin-bottom: var(--genivest-space-6);
}

.cc-form-group .gv-input,
.cc-form-group .gv-select {
    width: 100%;
    box-sizing: border-box;
}

.cc-error {
    color: var(--genivest-error);
    font-size: var(--genivest-text-sm);
    margin-top: var(--genivest-space-2);
    display: none;
}

.cc-error.active {
    display: block;
}

.cc-button-group {
    display: flex;
    gap: var(--genivest-space-4);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--genivest-space-8);
}

.cc-results {
    margin-top: var(--genivest-space-8);
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cc-results.active {
    display: block;
    opacity: 1;
}

.cc-headline {
    text-align: center;
    padding: var(--genivest-space-8);
    background: var(--genivest-gradient-dark);
    border-radius: var(--genivest-radius-lg);
    border: 2px solid var(--genivest-primary);
    margin-bottom: var(--genivest-space-6);
}

.cc-headline h2 {
    font-size: var(--genivest-text-3xl);
    margin: 0;
    color: var(--genivest-text-primary);
}

.cc-headline .amount {
    font-size: var(--genivest-text-4xl);
    font-weight: 700;
    background: var(--genivest-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin: var(--genivest-space-4) 0;
}

.cc-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--genivest-space-4);
    margin-bottom: var(--genivest-space-6);
}

.cc-summary-item {
    background: var(--genivest-dark-tertiary);
    padding: var(--genivest-space-6);
    border-radius: var(--genivest-radius-md);
    border: 1px solid var(--genivest-border);
    text-align: center;
    transition: var(--genivest-transition-base);
}

.cc-summary-item:hover {
    border-color: var(--genivest-primary);
    transform: translateY(-2px);
    box-shadow: var(--genivest-shadow-md);
}

.cc-summary-label {
    font-size: var(--genivest-text-sm);
    color: var(--genivest-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--genivest-space-2);
}

.cc-summary-value {
    font-size: var(--genivest-text-2xl);
    font-weight: 700;
    color: var(--genivest-primary);
}

.cc-chart-container {
    position: relative;
    height: 400px;
    margin-bottom: var(--genivest-space-6);
    padding: var(--genivest-space-6);
    background: var(--genivest-dark-secondary);
    border-radius: var(--genivest-radius-lg);
    border: 1px solid var(--genivest-border);
}

.cc-table-container {
    overflow-x: auto;
    background: var(--genivest-dark-secondary);
    border-radius: var(--genivest-radius-lg);
    border: 1px solid var(--genivest-border);
    margin-bottom: var(--genivest-space-6);
}

.cc-table {
    width: 100%;
    border-collapse: collapse;
}

.cc-table thead {
    background: var(--genivest-dark-tertiary);
}

.cc-table th {
    padding: var(--genivest-space-4);
    text-align: left;
    font-weight: 600;
    color: var(--genivest-primary);
    border-bottom: 2px solid var(--genivest-border);
    white-space: nowrap;
}

.cc-table td {
    padding: var(--genivest-space-4);
    color: var(--genivest-text-secondary);
    border-bottom: 1px solid var(--genivest-border);
}

.cc-table tbody tr:hover {
    background: var(--genivest-dark-tertiary);
}

.cc-table tbody tr:last-child td {
    border-bottom: none;
    font-weight: 700;
    color: var(--genivest-primary);
}

.cc-loading {
    display: none;
    text-align: center;
    padding: var(--genivest-space-4);
}

.cc-loading.active {
    display: block;
}

.cc-spinner {
    border: 3px solid var(--genivest-dark-tertiary);
    border-top: 3px solid var(--genivest-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cc-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@media (max-width: 768px) {
    .cc-main-title {
        font-size: var(--genivest-text-2xl);
    }
    
    .cc-subtitle {
        font-size: var(--genivest-text-base);
    }
    
    .cc-headline h2 {
        font-size: var(--genivest-text-xl);
    }
    
    .cc-headline .amount {
        font-size: var(--genivest-text-3xl);
    }
    
    .cc-button-group {
        flex-direction: column;
    }
    
    .cc-button-group button {
        width: 100%;
    }
    
    .cc-chart-container {
        height: 300px;
        padding: var(--genivest-space-4);
    }
    
    .cc-table {
        font-size: var(--genivest-text-sm);
    }
    
    .cc-table th,
    .cc-table td {
        padding: var(--genivest-space-2);
    }
}
