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

/* Header */
.vgss-header {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    color: white;
}

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

.vgss-subtitle {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* Target Stats */
.vgss-target-stats {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 5px solid #667eea;
}

.vgss-target-stats h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.vgss-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.vgss-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.vgss-stat-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.vgss-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

/* Results Section */
.vgss-results {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

/* Table */
.vgss-table-container {
    overflow-x: auto;
    margin-bottom: 25px;
}

.vgss-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.vgss-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;
}

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

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

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

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

/* Current code row */
.vgss-current-code {
    background-color: #e7f3ff !important;
    border-left: 4px solid #4a90e2;
}

.vgss-current-code:hover {
    background-color: #d0e7ff !important;
}

.vgss-code-cell {
    font-weight: 600;
    color: #2c3e50;
}

.vgss-current-badge {
    display: block;
    font-size: 11px;
    color: #4a90e2;
    font-weight: 500;
    margin-top: 2px;
}

/* Latest score column */
.vgss-latest-score {
    font-weight: 600;
    background-color: #f9f9f9;
    border-left: 2px solid #dee2e6;
    border-right: 2px solid #dee2e6;
}

.vgss-current-code .vgss-latest-score {
    background-color: #e0f0ff;
}

/* Αγώνες και Σύνολο Γκολ - Λευκό φόντο με #333 χρώμα γραμμάτων */
.vgss-games-count,
.vgss-total-goals {
    background-color: white !important;
    color: #333 !important;
    font-weight: 600;
    border: 1px solid #e9ecef !important;
}

/* Percent match classes */
.vgss-exact-match {
    background-color: #d4edda !important;
    color: #155724 !important;
    font-weight: 700;
    border: 1px solid #c3e6cb !important;
    border-radius: 4px;
}

.vgss-close-match {
    background-color: #fff3cd !important;
    color: #856404 !important;
    font-weight: 600;
    border: 1px solid #ffeaa7 !important;
    border-radius: 4px;
}

.vgss-good-match {
    background-color: #cce5ff !important;
    color: #004085 !important;
    border: 1px solid #b8daff !important;
    border-radius: 4px;
}

.vgss-fair-match {
    background-color: #f8f9fa !important;
    color: #333 !important;
    border: 1px solid #e9ecef !important;
    border-radius: 4px;
}

/* Column widths for better readability */
.vgss-table th:nth-child(1),
.vgss-table td:nth-child(1) {
    width: 120px; /* Κωδικός */
}

.vgss-table th:nth-child(2),
.vgss-table td:nth-child(2) {
    width: 120px; /* Νέο Σκορ */
    font-weight: 600;
    background-color: #f8f9fa;
}

.vgss-table th:nth-child(3),
.vgss-table td:nth-child(3) {
    width: 100px; /* Αγώνες */
}

.vgss-table th:nth-child(4),
.vgss-table td:nth-child(4),
.vgss-table th:nth-child(5),
.vgss-table td:nth-child(5),
.vgss-table th:nth-child(6),
.vgss-table td:nth-child(6),
.vgss-table th:nth-child(7),
.vgss-table td:nth-child(7),
.vgss-table th:nth-child(8),
.vgss-table td:nth-child(8) {
    width: 110px; /* Ποσοστά */
}

.vgss-table th:nth-child(9),
.vgss-table td:nth-child(9) {
    width: 120px; /* Σύνολο Γκολ */
}

/* Legend */
.vgss-legend {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.vgss-legend h5 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.vgss-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.vgss-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vgss-legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.1);
}

.vgss-legend-color.vgss-exact-match {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.vgss-legend-color.vgss-close-match {
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.vgss-legend-color.vgss-good-match {
    background-color: #cce5ff;
    border-color: #b8daff;
}

.vgss-legend-color.vgss-badge-current {
    background-color: #e7f3ff;
    border-color: #4a90e2;
    border-width: 2px;
}

/* Messages */
.vgss-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #f5c6cb;
}

.vgss-error p {
    margin: 0;
    font-weight: 500;
}

.vgss-no-data {
    background: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 30px 0;
}

.vgss-no-data p {
    margin: 0;
    font-size: 16px;
}

/* Instructions */
.vgss-instructions {
    background: #e7f3ff;
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 5px solid #4a90e2;
}

.vgss-instructions h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 20px;
}

.vgss-instructions p {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
}

.vgss-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.vgss-info h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.vgss-info ol,
.vgss-info ul {
    margin: 10px 0 10px 20px;
    padding: 0;
}

.vgss-info li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.vgss-info li:last-child {
    margin-bottom: 0;
}

/* Highlight for latest scores */
.vgss-latest-score.highlight {
    background-color: #fff3cd;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { background-color: #fff3cd; }
    50% { background-color: #ffeaa7; }
    100% { background-color: #fff3cd; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .vgss-container {
        padding: 15px;
    }
    
    .vgss-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .vgss-table th,
    .vgss-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .vgss-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vgss-container {
        padding: 10px;
    }
    
    .vgss-header {
        padding: 20px;
    }
    
    .vgss-header h3 {
        font-size: 20px;
    }
    
    .vgss-results {
        padding: 15px;
    }
    
    .vgss-table {
        min-width: 800px;
    }
    
    .vgss-table th,
    .vgss-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .vgss-legend-items {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .vgss-instructions {
        padding: 15px;
    }
    
    .vgss-instructions p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .vgss-header {
        padding: 15px;
    }
    
    .vgss-header h3 {
        font-size: 18px;
    }
    
    .vgss-subtitle {
        font-size: 14px;
    }
    
    .vgss-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .vgss-stat-item {
        padding: 10px;
    }
    
    .vgss-stat-value {
        font-size: 18px;
    }
    
    .vgss-info {
        padding: 15px;
    }
}