/* InveShares Financial Tools - Main Stylesheet */
/* Color Scheme: Professional Investment Theme */

:root {
    --inveshares-primary: #0066cc;
    --inveshares-secondary: #00a86b;
    --inveshares-success: #10b981;
    --inveshares-warning: #f59e0b;
    --inveshares-danger: #ef4444;
    --inveshares-dark: #1e293b;
    --inveshares-light: #f8fafc;
    --inveshares-border: #e2e8f0;
    --inveshares-text: #334155;
}

/* Container Styles */
.inveshares-tool-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.inveshares-tool-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 40px;
    margin-bottom: 30px;
}

.inveshares-tool-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--inveshares-border);
}

.inveshares-tool-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--inveshares-dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.inveshares-tool-subtitle {
    font-size: 16px;
    color: var(--inveshares-text);
    margin: 0;
    line-height: 1.6;
}

/* Form Styles */
.inveshares-form-group {
    margin-bottom: 25px;
}

.inveshares-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--inveshares-dark);
    margin-bottom: 8px;
}

.inveshares-form-input,
.inveshares-form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid var(--inveshares-border);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.inveshares-form-input:focus,
.inveshares-form-select:focus {
    outline: none;
    border-color: var(--inveshares-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.inveshares-form-helper {
    font-size: 13px;
    color: #64748b;
    margin-top: 5px;
    display: block;
}

/* Button Styles */
.inveshares-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.inveshares-btn-primary {
    background: linear-gradient(135deg, var(--inveshares-primary) 0%, #0052a3 100%);
    color: white;
}

.inveshares-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0, 102, 204, 0.5);
}

.inveshares-btn-block {
    width: 100%;
    display: block;
}

/* Results Container */
.inveshares-results {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--inveshares-border);
    display: none;
}

.inveshares-results.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

/* Stats Cards */
.inveshares-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.inveshares-stat-card {
    background: var(--inveshares-light);
    padding: 24px;
    border-radius: 10px;
    border-left: 4px solid var(--inveshares-primary);
    transition: all 0.3s ease;
}

.inveshares-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.1);
}

.inveshares-stat-label {
    font-size: 13px;
    color: var(--inveshares-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.inveshares-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--inveshares-dark);
    line-height: 1;
}

.inveshares-stat-card.success {
    border-left-color: var(--inveshares-success);
}

.inveshares-stat-card.success .inveshares-stat-value {
    color: var(--inveshares-success);
}

.inveshares-stat-card.warning {
    border-left-color: var(--inveshares-warning);
}

.inveshares-stat-card.warning .inveshares-stat-value {
    color: var(--inveshares-warning);
}

.inveshares-stat-card.danger {
    border-left-color: var(--inveshares-danger);
}

.inveshares-stat-card.danger .inveshares-stat-value {
    color: var(--inveshares-danger);
}

/* Alert Boxes */
.inveshares-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.inveshares-alert-success {
    background: #d1fae5;
    border-left: 4px solid var(--inveshares-success);
    color: #065f46;
}

.inveshares-alert-warning {
    background: #fef3c7;
    border-left: 4px solid var(--inveshares-warning);
    color: #92400e;
}

.inveshares-alert-danger {
    background: #fee2e2;
    border-left: 4px solid var(--inveshares-danger);
    color: #991b1b;
}

.inveshares-alert-info {
    background: #dbeafe;
    border-left: 4px solid var(--inveshares-primary);
    color: #1e40af;
}

/* Progress Bars */
.inveshares-progress {
    background: var(--inveshares-border);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

.inveshares-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--inveshares-primary), var(--inveshares-secondary));
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

/* Chart Container */
.inveshares-chart-container {
    margin: 30px 0;
    padding: 20px;
    background: var(--inveshares-light);
    border-radius: 10px;
}

/* Table Styles */
.inveshares-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.inveshares-table th,
.inveshares-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--inveshares-border);
}

.inveshares-table th {
    background: var(--inveshares-light);
    font-weight: 600;
    color: var(--inveshares-dark);
}

.inveshares-table tr:hover {
    background: #f8fafc;
}

/* Quiz Styles */
.inveshares-quiz-question {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--inveshares-light);
    border-radius: 10px;
}

.inveshares-quiz-options {
    margin-top: 15px;
}

.inveshares-quiz-option {
    display: block;
    padding: 15px;
    margin: 10px 0;
    background: white;
    border: 2px solid var(--inveshares-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inveshares-quiz-option:hover {
    border-color: var(--inveshares-primary);
    background: #f0f9ff;
}

.inveshares-quiz-option input[type="radio"] {
    margin-right: 10px;
}

/* Slider Styles */
.inveshares-slider-container {
    margin: 20px 0;
}

.inveshares-slider {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--inveshares-border);
    outline: none;
    -webkit-appearance: none;
}

.inveshares-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--inveshares-primary);
    cursor: pointer;
}

.inveshares-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--inveshares-primary);
    cursor: pointer;
}

.inveshares-slider-value {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--inveshares-primary);
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .inveshares-tool-card {
        padding: 25px 20px;
    }
    
    .inveshares-tool-title {
        font-size: 24px;
    }
    
    .inveshares-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .inveshares-stat-value {
        font-size: 24px;
    }
}

/* Loading Animation */
.inveshares-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 102, 204, 0.3);
    border-radius: 50%;
    border-top-color: var(--inveshares-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltips */
.inveshares-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    color: var(--inveshares-primary);
}

.inveshares-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--inveshares-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    z-index: 1000;
}

/* Badge Styles */
.inveshares-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.inveshares-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.inveshares-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.inveshares-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.inveshares-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Result Summary Box */
.inveshares-summary-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
}

.inveshares-summary-box h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.inveshares-summary-box p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}
