/* Main Container */
.vgs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

/* Input Section */
.vgs-input-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.vgs-input-section h3 {
    margin: 0 0 20px 0;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.vgs-form {
    width: 100%;
}

.vgs-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.vgs-input {
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    font-size: 16px;
    width: 300px;
    max-width: 100%;
    background: rgba(255,255,255,0.95);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.vgs-input:focus {
    outline: none;
    border-color: #fff;
    background: white;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.vgs-button {
    padding: 14px 30px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 150px;
}

.vgs-button:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.vgs-help-text {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-top: 10px;
}

.vgs-help-text p {
    margin: 0;
    font-style: italic;
}

.vgs-error {
    color: #ff6b6b;
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
    font-weight: 500;
    display: block;
}

/* Results Section */
.vgs-results-section {
    margin-top: 30px;
}

.vgs-results-header {
    background: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 2px;
}

.vgs-results-title {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 600;
}

.vgs-results-info {
    color: #666;
    font-size: 14px;
    font-style: italic;
    margin: 0;
}

/* Table Container */
.vgs-table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.vgs-table-wrapper h4 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: 600;
}

.vgs-table-container {
    overflow-x: auto;
    max-width: 100%;
}

.vgs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

.vgs-table th {
    background: #f8f9fa;
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border-bottom: 3px solid #dee2e6;
    font-size: 14px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.vgs-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
}

.vgs-table tbody tr {
    transition: background-color 0.2s ease;
}

.vgs-table tbody tr:hover {
    background-color: #f8f9fa;
}

.vgs-table tbody tr:last-child td {
    border-bottom: none;
}

/* Specific column styles */
.vgs-date,
.vgs-code,
.vgs-home,
.vgs-away,
.vgs-odd,
.vgs-total {
    color: #333;
}

.vgs-date,
.vgs-code {
    font-weight: 500;
}

.vgs-home,
.vgs-away {
    text-align: left;
    font-weight: 500;
    min-width: 120px;
}

.vgs-score {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    min-width: 70px;
}

.vgs-total {
    font-weight: 700;
}

/* Ειδικό στυλ για τα odds που είναι μέσα σε span */
.vgs-odd span {
    display: inline-block;
    text-align: center;
}

/* Χρώματα για odds και αποτελέσματα */
.low-odd, .medium-odd, .high-odd, .no-odd,
.result-1, .result-X, .result-2, .result-na,
.btts-yes, .btts-no,
.over-result, .under-result,
.no-color {
    padding: 8px 12px !important;
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
    font-size: 13px;
    min-width: 55px;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    transition: all 0.2s ease;
}

/* Κλάση για odds χωρίς χρώμα (όχι νικηφόρα) */
.no-color {
    background: none !important;
    color: #333 !important;
    border: none !important;
    font-weight: normal;
    padding: 0 !important;
    min-width: auto !important;
}

/* Odds colors (μόνο για νικηφόρα) */
.low-odd {
    background-color: #d4edda !important;
    color: #155724 !important;
    border: 2px solid #c3e6cb !important;
}

.medium-odd {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border: 2px solid #ffeaa7 !important;
}

.high-odd {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 2px solid #f5c6cb !important;
}

.no-odd {
    background-color: #e2e3e5 !important;
    color: #383d41 !important;
    border: 2px solid #d6d8db !important;
}

/* Result colors */
.result-1 {
    background-color: #28a745 !important;
    color: white !important;
    border: 2px solid #1e7e34 !important;
}

.result-X {
    background-color: #ffc107 !important;
    color: #333 !important;
    border: 2px solid #e0a800 !important;
}

.result-2 {
    background-color: #dc3545 !important;
    color: white !important;
    border: 2px solid #bd2130 !important;
}

.result-na {
    background-color: #6c757d !important;
    color: white !important;
    border: 2px solid #545b62 !important;
}

/* BTTS colors */
.btts-yes {
    background-color: #28a745 !important;
    color: white !important;
    border: 2px solid #1e7e34 !important;
}

.btts-no {
    background-color: #dc3545 !important;
    color: white !important;
    border: 2px solid #bd2130 !important;
}

/* Over/Under colors */
.over-result {
    background-color: #17a2b8 !important;
    color: white !important;
    border: 2px solid #117a8b !important;
}

.under-result {
    background-color: #6c757d !important;
    color: white !important;
    border: 2px solid #545b62 !important;
}

/* Legend */
.vgs-legend {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 25px;
}

.vgs-legend h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.vgs-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.vgs-legend-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex: 1;
    min-width: 250px;
}

.vgs-legend-group span {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .vgs-container {
        padding: 15px;
    }
    
    .vgs-table th,
    .vgs-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .low-odd, .medium-odd, .high-odd, .no-odd,
    .result-1, .result-X, .result-2, .result-na,
    .btts-yes, .btts-no,
    .over-result, .under-result,
    .no-color {
        padding: 6px 10px !important;
        font-size: 12px;
        min-width: 50px;
    }
}

@media (max-width: 768px) {
    .vgs-container {
        padding: 10px;
    }
    
    .vgs-input-section {
        padding: 20px;
    }
    
    .vgs-input-section h3 {
        font-size: 20px;
    }
    
    .vgs-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vgs-input {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px 15px;
    }
    
    .vgs-button {
        width: 100%;
        padding: 12px 20px;
    }
    
    .vgs-results-header {
        padding: 15px;
    }
    
    .vgs-results-title {
        font-size: 18px;
    }
    
    .vgs-results-info {
        font-size: 13px;
    }
    
    .vgs-table-wrapper h4 {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .vgs-table {
        min-width: 1000px;
    }
    
    .vgs-table th,
    .vgs-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .vgs-score {
        font-size: 14px;
    }
    
    .vgs-legend {
        padding: 20px;
    }
    
    .vgs-legend h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .vgs-legend-items {
        gap: 15px;
    }
    
    .vgs-legend-group {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .vgs-input-section {
        padding: 15px;
    }
    
    .vgs-input-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .vgs-results-title {
        font-size: 16px;
    }
    
    .vgs-table th,
    .vgs-table td {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    .low-odd, .medium-odd, .high-odd, .no-odd,
    .result-1, .result-X, .result-2, .result-na,
    .btts-yes, .btts-no,
    .over-result, .under-result,
    .no-color {
        padding: 4px 8px !important;
        font-size: 11px;
        min-width: 45px;
    }
    
    .vgs-legend-group span {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Print styles */
@media print {
    .vgs-input-section {
        display: none;
    }
    
    .vgs-container {
        padding: 0;
    }
    
    .vgs-table-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .vgs-legend {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}