/* Main Container */
.vgf-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Header */
.vgf-header {
    background: linear-gradient(135deg, #0c2461 0%, #1e3799 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    color: white;
}

.vgf-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.vgf-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Input Section */
.vgf-input-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.vgf-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 576px) {
    .vgf-input-group {
        flex-direction: column;
    }
}

.vgf-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #0c2461;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.vgf-input:focus {
    outline: none;
    border-color: #1e3799;
    box-shadow: 0 0 0 3px rgba(30, 55, 153, 0.2);
}

.vgf-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #0c2461 0%, #1e3799 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.vgf-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(12, 36, 97, 0.3);
}

.vgf-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.vgf-button-icon {
    font-size: 20px;
}

.vgf-hint {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

/* Loading State */
.vgf-loading {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.vgf-loading-content {
    max-width: 400px;
    margin: 0 auto;
}

.vgf-loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1e3799;
    border-radius: 50%;
    animation: vgf-spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

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

.vgf-loading p {
    margin: 0 0 5px 0;
    color: #0c2461;
    font-size: 18px;
    font-weight: 600;
}

.vgf-loading-details {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Prediction Card */
.vgf-prediction-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.vgf-prediction-header {
    background: linear-gradient(135deg, #0c2461 0%, #1e3799 100%);
    padding: 20px;
    color: white;
}

.vgf-prediction-header h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    text-align: center;
}

.vgf-prediction-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.vgf-meta-item {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* Prediction Body */
.vgf-prediction-body {
    padding: 30px;
}

.vgf-prediction-main {
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.vgf-result-1 {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.2) 100%);
    border: 3px solid #28a745;
}

.vgf-result-X {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.2) 100%);
    border: 3px solid #ffc107;
}

.vgf-result-2 {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.2) 100%);
    border: 3px solid #dc3545;
}

.vgf-prediction-value {
    font-size: 80px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1;
	color: #333;
}

.vgf-prediction-label {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.vgf-prediction-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vgf-prediction-percentage,
.vgf-prediction-score {
    background: rgba(255,255,255,0.7);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
	color: #333;
}

.vgf-prediction-confidence {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
}

.confidence-high {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 2px solid rgba(40, 167, 69, 0.3);
}

.confidence-medium {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.confidence-low {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 2px solid rgba(220, 53, 69, 0.3);
}

.vgf-confidence-icon {
    font-size: 20px;
}

/* Reason & Context */
.vgf-prediction-reason,
.vgf-historical-context {
    margin-bottom: 30px;
}

.vgf-reason-content,
.vgf-context-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #0c2461;
}

.vgf-reason-content h5,
.vgf-context-content h5 {
    margin: 0 0 15px 0;
    color: #0c2461;
    font-size: 18px;
}

.vgf-strategy-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(30, 55, 153, 0.1);
    color: #0c2461;
    border-radius: 20px;
    font-weight: 600;
    border: 2px solid rgba(30, 55, 153, 0.3);
    margin-top: 15px;
}

.vgf-strategy-icon {
    font-size: 18px;
}

/* Summary Section */
.vgf-summary {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.vgf-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.vgf-section-header h4 {
    margin: 0;
    color: #0c2461;
    font-size: 18px;
    font-weight: 600;
}

.vgf-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.vgf-summary-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.vgf-summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.vgf-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.vgf-summary-icon {
    font-size: 24px;
}

.vgf-summary-header h5 {
    margin: 0;
    color: #0c2461;
    font-size: 16px;
}

.vgf-summary-content p {
    margin: 8px 0;
    font-size: 14px;
    color: #2c3e50;
}

/* Full Progression Section */
.vgf-full-progression {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.vgf-progression-info {
    display: flex;
    gap: 15px;
}

.vgf-info-item {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #0c2461;
}

/* Progression Controls */
.vgf-progression-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.vgf-control-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #0c2461;
}

.vgf-control-btn:hover,
.vgf-control-btn.active {
    background: #0c2461;
    color: white;
    border-color: #0c2461;
}

.vgf-search-container {
    margin-left: auto;
}

.vgf-search-input {
    padding: 10px 15px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}

/* Chart View */
.vgf-chart-view {
    width: 100%;
}

.vgf-chart-container {
    width: 100%;
    height: 400px;
    position: relative;
    margin-bottom: 20px;
}

.vgf-chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Table View */
.vgf-table-view {
    width: 100%;
}

.vgf-table-container {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.vgf-full-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.vgf-full-table th {
    background: #f8f9fa;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: #0c2461;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.vgf-full-table td {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
}

.vgf-full-table tr:hover {
    background-color: #f8f9fa;
}

/* Cell Styles */
.vgf-cell-number {
    font-weight: 600;
    color: #0c2461;
}

.vgf-cell-date,
.vgf-cell-time {
    font-size: 12px;
    color: #666;
}

.vgf-cell-result {
    font-weight: 700;
    font-size: 16px;
    text-align: center;
}

.result-1 { color: #28a745; }
.result-X { color: #ffc107; }
.result-2 { color: #dc3545; }

.vgf-cell-score {
    font-family: monospace;
    font-weight: 600;
}

.vgf-cell-percent {
    text-align: center;
    font-weight: 600;
}

.trend-stable { color: #28a745; }
.trend-moderate { color: #ffc107; }
.trend-volatile { color: #dc3545; }

.vgf-cell-total {
    text-align: center;
    font-weight: 700;
    color: #0c2461;
}

.vgf-cell-trend {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Pagination */
.vgf-table-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.vgf-page-btn {
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #0c2461;
}

.vgf-page-btn:hover:not(.disabled) {
    background: #e9ecef;
}

.vgf-page-btn.active {
    background: #0c2461;
    color: white;
    border-color: #0c2461;
}

.vgf-page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vgf-page-info {
    margin-left: 15px;
    color: #666;
    font-size: 14px;
}

.vgf-search-results {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #0c2461;
    font-weight: 600;
}

.vgf-results-icon {
    margin-right: 10px;
}

/* Trends View */
.vgf-trends-view {
    width: 100%;
}

.vgf-trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.vgf-trend-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.vgf-trend-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.vgf-trend-icon {
    font-size: 20px;
}

.vgf-trend-header h5 {
    margin: 0;
    color: #0c2461;
    font-size: 16px;
}

.vgf-trend-content p {
    margin: 8px 0;
    font-size: 14px;
    color: #2c3e50;
}

/* Evolutionary Analysis */
.vgf-evolutionary {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.vgf-evolutionary-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.vgf-evolutionary-phase {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.vgf-phase-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.vgf-phase-icon {
    font-size: 24px;
}

.vgf-phase-header h5 {
    margin: 0;
    color: #0c2461;
    font-size: 16px;
    flex: 1;
}

.vgf-phase-range {
    font-size: 12px;
    color: #666;
    background: rgba(0,0,0,0.05);
    padding: 4px 8px;
    border-radius: 10px;
}

.vgf-phase-content p {
    margin: 8px 0;
    font-size: 14px;
    color: #2c3e50;
}

/* Patterns Analysis */
.vgf-patterns {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.vgf-patterns-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.vgf-pattern-category {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.vgf-pattern-category h5 {
    margin: 0 0 15px 0;
    color: #0c2461;
    font-size: 16px;
    border-bottom: 2px solid #0c2461;
    padding-bottom: 8px;
}

.vgf-pattern-list p {
    margin: 8px 0;
    font-size: 14px;
    color: #2c3e50;
}

/* Prediction Strategy */
.vgf-prediction {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.vgf-prediction-strategy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.vgf-strategy-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.vgf-strategy-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.vgf-strategy-icon {
    font-size: 24px;
}

.vgf-strategy-header h5 {
    margin: 0;
    color: #0c2461;
    font-size: 16px;
}

.vgf-strategy-content p {
    margin: 8px 0;
    font-size: 14px;
    color: #2c3e50;
}

.vgf-factors-breakdown p,
.vgf-uncertainty-list li {
    margin: 5px 0;
    font-size: 13px;
    color: #2c3e50;
}

.vgf-uncertainty-list {
    padding-left: 20px;
}

.vgf-weighting-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vgf-weighting-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vgf-weighting-label {
    width: 120px;
    font-size: 13px;
    color: #2c3e50;
}

.vgf-weighting-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.vgf-weighting-fill {
    height: 100%;
    background: linear-gradient(90deg, #0c2461 0%, #1e3799 100%);
    border-radius: 4px;
}

.vgf-weighting-value {
    width: 40px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #0c2461;
}

/* Export Section */
.vgf-export {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.vgf-export-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.vgf-export-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #0c2461;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #0c2461;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vgf-export-btn:hover {
    background: #0c2461;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(12, 36, 97, 0.3);
}

.vgf-export-icon {
    font-size: 18px;
}

/* Footer */
.vgf-footer {
    text-align: center;
    padding: 15px;
    color: #666;
    font-size: 13px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .vgf-container {
        padding: 15px;
    }
    
    .vgf-header {
        padding: 20px;
    }
    
    .vgf-header h2 {
        font-size: 20px;
    }
    
    .vgf-input-section,
    .vgf-prediction-card,
    .vgf-summary,
    .vgf-full-progression,
    .vgf-evolutionary,
    .vgf-patterns,
    .vgf-prediction,
    .vgf-export {
        padding: 20px;
    }
    
    .vgf-prediction-value {
        font-size: 60px;
    }
    
    .vgf-prediction-label {
        font-size: 20px;
    }
    
    .vgf-progression-controls {
        flex-direction: column;
    }
    
    .vgf-search-container {
        margin-left: 0;
        width: 100%;
    }
    
    .vgf-search-input {
        width: 100%;
    }
    
    .vgf-chart-container {
        height: 300px;
    }
    
    .vgf-table-container {
        max-height: 400px;
    }
    
    .vgf-summary-grid,
    .vgf-trends-grid,
    .vgf-evolutionary-analysis,
    .vgf-patterns-analysis,
    .vgf-prediction-strategy {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .vgf-prediction-value {
        font-size: 50px;
    }
    
    .vgf-prediction-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .vgf-progression-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .vgf-full-table {
        font-size: 12px;
    }
    
    .vgf-full-table th,
    .vgf-full-table td {
        padding: 8px 6px;
    }
    
    .vgf-chart-container {
        height: 250px;
    }
    
    .vgf-export-buttons {
        flex-direction: column;
    }
    
    .vgf-export-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .vgf-container {
        box-shadow: none;
        margin: 0;
        padding: 10px;
    }
    
    .vgf-input-section,
    .vgf-loading,
    .vgf-export,
    .vgf-progression-controls {
        display: none !important;
    }
    
    .vgf-prediction-card,
    .vgf-summary,
    .vgf-full-progression,
    .vgf-evolutionary,
    .vgf-patterns,
    .vgf-prediction {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}