/* ===========================================================================
   VIRTUAL GAMES ALGORITHM TRACKER - MAIN STYLESHEET
   Version: 2.0.0
   Author: Algorithm Investigator
   Description: Στυλ για το plugin παρακολούθησης αλγορίθμου
=========================================================================== */

:root {
    /* Χρώματα Θέματος */
    --vg-primary: #2563eb;
    --vg-primary-dark: #1d4ed8;
    --vg-secondary: #7c3aed;
    --vg-success: #10b981;
    --vg-warning: #f59e0b;
    --vg-danger: #ef4444;
    --vg-info: #3b82f6;
    --vg-light: #f8fafc;
    --vg-dark: #1e293b;
    --vg-gray: #64748b;
    --vg-gray-light: #e2e8f0;
    
    /* Αναγνωριστικά χρώματα */
    --vg-color-1: #3b82f6;      /* 1 - Μπλε */
    --vg-color-X: #10b981;      /* X - Πράσινο */
    --vg-color-2: #ef4444;      /* 2 - Κόκκινο */
    --vg-color-balanced: #8b5cf6; /* Ισορροπημένο - Μωβ */
    
    /* Επιπλέον */
    --vg-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --vg-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --vg-radius: 8px;
    --vg-radius-lg: 12px;
    --vg-transition: all 0.3s ease;
}

/* ===========================================================================
   ΒΑΣΙΚΑ ΣΤΥΛ
=========================================================================== */
.vg-algorithm-tracker {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--vg-dark);
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
}

/* Κεφαλίδα */
.vg-tracker-header {
    background: white;
    border-radius: var(--vg-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--vg-shadow);
    border: 1px solid var(--vg-gray-light);
    position: relative;
    overflow: hidden;
}

.vg-tracker-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--vg-primary), var(--vg-secondary));
}

.vg-tracker-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--vg-dark);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vg-tracker-icon {
    font-size: 32px;
    animation: pulse 2s infinite;
}

.vg-tracker-beta {
    background: var(--vg-secondary);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 12px;
}

.vg-tracker-subtitle {
    color: var(--vg-gray);
    font-size: 16px;
    margin: 0;
}

/* Πάνελ Κατάστασης */
.vg-tracker-status-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--vg-gray-light);
}

.vg-tracker-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--vg-light);
    border-radius: var(--vg-radius);
    border-left: 4px solid var(--vg-primary);
}

.vg-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.vg-status-active {
    background: var(--vg-success);
    animation: blink 1.5s infinite;
}

.vg-status-text {
    font-weight: 500;
    font-size: 14px;
}

/* ===========================================================================
   ΠΑΝΕΛ ΕΛΕΓΧΟΥ
=========================================================================== */
.vg-tracker-control-panel {
    background: white;
    border-radius: var(--vg-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--vg-shadow);
    border: 1px solid var(--vg-gray-light);
}

.vg-tracker-control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 1024px) {
    .vg-tracker-control-grid {
        grid-template-columns: 1fr;
    }
}

.vg-control-icon {
    font-size: 20px;
    margin-right: 8px;
}

.vg-control-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--vg-dark);
}

.vg-control-select {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--vg-gray-light);
    border-radius: var(--vg-radius);
    font-size: 14px;
    transition: var(--vg-transition);
    background: white;
    cursor: pointer;
}

.vg-control-select:focus {
    outline: none;
    border-color: var(--vg-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.vg-control-range {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vg-control-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--vg-gray-light);
    border-radius: 3px;
    outline: none;
}

.vg-control-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--vg-primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: var(--vg-shadow);
}

.vg-control-value {
    font-weight: 700;
    color: var(--vg-primary);
    min-width: 40px;
}

/* Κουμπιά Ελέγχου */
.vg-control-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.vg-control-button {
    padding: 12px 20px;
    border: none;
    border-radius: var(--vg-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--vg-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}

.vg-control-primary {
    background: var(--vg-primary);
    color: white;
}

.vg-control-primary:hover {
    background: var(--vg-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--vg-shadow-lg);
}

.vg-control-secondary {
    background: var(--vg-light);
    color: var(--vg-dark);
    border: 2px solid var(--vg-gray-light);
}

.vg-control-secondary:hover {
    background: white;
    border-color: var(--vg-primary);
}

.vg-control-warning {
    background: var(--vg-warning);
    color: white;
}

.vg-control-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.vg-control-info {
    background: var(--vg-info);
    color: white;
}

.vg-control-info:hover {
    background: #2563eb;
}

/* Ζωντανή Μέτρηση */
.vg-live-counter {
    margin-top: 24px;
    padding: 16px;
    background: var(--vg-light);
    border-radius: var(--vg-radius);
    border: 1px solid var(--vg-gray-light);
}

.vg-counter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.vg-counter-item:last-child {
    border-bottom: none;
}

.vg-counter-value {
    font-weight: 700;
    font-size: 16px;
    color: var(--vg-primary);
}

.vg-counter-highlight {
    color: var(--vg-danger);
    animation: pulse 1.5s infinite;
}

/* ===========================================================================
   ΚΑΡΤΕΛΕΣ ΑΝΙΧΝΕΥΣΗΣ
=========================================================================== */
.vg-detection-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.vg-detection-card {
    background: white;
    border-radius: var(--vg-radius-lg);
    box-shadow: var(--vg-shadow);
    border: 1px solid var(--vg-gray-light);
    overflow: hidden;
    transition: var(--vg-transition);
}

.vg-detection-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vg-shadow-lg);
}

.vg-detection-card-header {
    padding: 20px;
    background: linear-gradient(90deg, var(--vg-light) 0%, white 100%);
    border-bottom: 1px solid var(--vg-gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vg-detection-card h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--vg-dark);
}

.vg-detection-icon {
    font-size: 24px;
}

.vg-detection-badge {
    background: var(--vg-primary);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.vg-detection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--vg-gray);
}

.vg-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vg-success);
}

.active .vg-status-dot {
    animation: blink 2s infinite;
}

/* Περιεχόμενο Καρτέλας */
.vg-detection-content {
    padding: 20px;
}

.vg-detection-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--vg-gray-light);
}

.vg-metric {
    text-align: center;
}

.vg-metric-label {
    display: block;
    font-size: 12px;
    color: var(--vg-gray);
    margin-bottom: 4px;
}

.vg-metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--vg-dark);
}

/* Λίστα Ανιχνεύσεων */
.vg-detection-list {
    min-height: 100px;
}

.vg-detection-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--vg-gray);
    text-align: center;
}

.vg-placeholder-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ===========================================================================
   ΠΙΝΑΚΑΣ ΠΑΡΑΚΟΛΟΥΘΗΣΗΣ
=========================================================================== */
.vg-tracking-table-container {
    background: white;
    border-radius: var(--vg-radius-lg);
    box-shadow: var(--vg-shadow);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--vg-gray-light);
}

.vg-tracking-table-header {
    padding: 20px;
    background: linear-gradient(90deg, var(--vg-primary) 0%, var(--vg-secondary) 100%);
    color: white;
}

.vg-tracking-table-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vg-table-icon {
    font-size: 24px;
}

.vg-table-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-left: 10px;
    font-weight: normal;
}

/* Φίλτρα και Αναζήτηση */
.vg-table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
}

.vg-table-search {
    flex: 1;
}

.vg-search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: none;
    border-radius: var(--vg-radius);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}

.vg-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.vg-table-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vg-filter-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: var(--vg-transition);
}

.vg-filter-btn:hover,
.vg-filter-btn.active {
    background: white;
    color: var(--vg-primary);
}

/* Κύριος Πίνακας */
.vg-tracking-table-wrapper {
    overflow-x: auto;
}

.vg-tracking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.vg-tracking-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--vg-dark);
    background: var(--vg-light);
    border-bottom: 2px solid var(--vg-gray-light);
    position: sticky;
    top: 0;
    z-index: 10;
}

.vg-tracking-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--vg-gray-light);
    vertical-align: middle;
}

.vg-tracking-table tbody tr {
    transition: var(--vg-transition);
}

.vg-tracking-table tbody tr:hover {
    background: var(--vg-light);
}

/* Στυλ ανά στήλη */
.vg-th-code { width: 80px; }
.vg-th-status { width: 120px; }
.vg-th-current { width: 200px; }
.vg-th-target { width: 150px; }
.vg-th-deviation { width: 100px; }
.vg-th-interventions { width: 100px; }
.vg-th-last-correction { width: 150px; }
.vg-th-next-expected { width: 150px; }
.vg-th-prediction { width: 120px; }
.vg-th-actions { width: 150px; }

/* Στυλ για κελιά */
.vg-code-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vg-code-value {
    font-weight: 700;
    font-size: 16px;
    color: var(--vg-dark);
}

.vg-code-badge {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.vg-badge-balanced {
    background: var(--vg-color-balanced);
    color: white;
}

.vg-badge-no-data {
    background: var(--vg-warning);
    color: white;
}

/* Κατανομή */
.vg-distribution-cell {
    min-width: 120px;
}

.vg-distribution-chart {
    display: flex;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.vg-distribution-segment {
    height: 100%;
    transition: var(--vg-transition);
}

.vg-dist-1 { background: var(--vg-color-1); }
.vg-dist-X { background: var(--vg-color-X); }
.vg-dist-2 { background: var(--vg-color-2); }

.vg-distribution-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
}

.vg-dist-label {
    color: var(--vg-dark);
}

/* Τάσεις */
.vg-trend-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.vg-trend-balanced {
    background: rgba(139, 92, 246, 0.1);
    color: var(--vg-color-balanced);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.vg-trend-1 {
    background: rgba(59, 130, 246, 0.1);
    color: var(--vg-color-1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.vg-trend-X {
    background: rgba(16, 185, 129, 0.1);
    color: var(--vg-color-X);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.vg-trend-2 {
    background: rgba(239, 68, 68, 0.1);
    color: var(--vg-color-2);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.vg-trend-icon {
    font-size: 14px;
}

.vg-trend-difference {
    font-size: 10px;
    opacity: 0.8;
}

/* Ενέργειες */
.vg-actions-cell {
    display: flex;
    gap: 8px;
}

.vg-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vg-transition);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.vg-action-details {
    background: var(--vg-primary);
    color: white;
}

.vg-action-details:hover {
    background: var(--vg-primary-dark);
}

.vg-action-compare {
    background: var(--vg-light);
    color: var(--vg-dark);
    border: 1px solid var(--vg-gray-light);
}

.vg-action-compare:hover {
    background: white;
    border-color: var(--vg-primary);
}

/* Στατιστικά Πίνακα */
.vg-tracking-stats {
    padding: 20px;
    background: var(--vg-light);
    border-top: 1px solid var(--vg-gray-light);
}

.vg-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.vg-stat-card {
    background: white;
    padding: 16px;
    border-radius: var(--vg-radius);
    border: 1px solid var(--vg-gray-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.vg-stat-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: var(--vg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vg-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--vg-primary);
    display: block;
}

.vg-stat-label {
    font-size: 12px;
    color: var(--vg-gray);
}

/* ===========================================================================
   ΧΡΟΝΟΔΙΑΓΡΑΜΜΑ
=========================================================================== */
.vg-corrections-timeline {
    background: white;
    border-radius: var(--vg-radius-lg);
    box-shadow: var(--vg-shadow);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--vg-gray-light);
}

.vg-corrections-timeline h3 {
    padding: 20px;
    margin: 0;
    background: linear-gradient(90deg, var(--vg-light) 0%, white 100%);
    border-bottom: 1px solid var(--vg-gray-light);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--vg-dark);
}

.vg-timeline-container {
    padding: 20px;
    min-height: 200px;
}

.vg-timeline {
    position: relative;
    padding-left: 40px;
}

.vg-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--vg-gray-light);
}

/* Λεπτομέρειες Χρονοδιαγράμματος */
.vg-timeline-details {
    padding: 20px;
    background: var(--vg-light);
    border-top: 1px solid var(--vg-gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.vg-timeline-controls {
    display: flex;
    gap: 8px;
}

.vg-timeline-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--vg-gray-light);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--vg-transition);
}

.vg-timeline-btn:hover,
.vg-timeline-btn.active {
    background: var(--vg-primary);
    color: white;
    border-color: var(--vg-primary);
}

.vg-timeline-stats {
    display: flex;
    gap: 20px;
}

.vg-timeline-stat {
    text-align: center;
}

.vg-timeline-stat-label {
    display: block;
    font-size: 12px;
    color: var(--vg-gray);
}

.vg-timeline-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--vg-dark);
}

/* ===========================================================================
   ΑΝΑΛΥΤΙΚΗ ΟΘΟΝΗ
=========================================================================== */
.vg-analytics-panel {
    background: white;
    border-radius: var(--vg-radius-lg);
    box-shadow: var(--vg-shadow);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--vg-gray-light);
}

.vg-analytics-tabs {
    display: flex;
    background: var(--vg-light);
    border-bottom: 1px solid var(--vg-gray-light);
    overflow-x: auto;
}

.vg-analytics-tab {
    padding: 16px 24px;
    background: none;
    border: none;
    border-right: 1px solid var(--vg-gray-light);
    font-weight: 600;
    color: var(--vg-gray);
    cursor: pointer;
    transition: var(--vg-transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vg-analytics-tab:hover {
    background: white;
    color: var(--vg-primary);
}

.vg-analytics-tab.active {
    background: white;
    color: var(--vg-primary);
    border-bottom: 3px solid var(--vg-primary);
}

.vg-analytics-content {
    padding: 20px;
}

.vg-analytics-tab-content {
    display: none;
}

.vg-analytics-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Κάρτες Ανάλυσης */
.vg-patterns-analysis {
    display: grid;
    gap: 16px;
}

.vg-pattern-card {
    background: var(--vg-light);
    border-radius: var(--vg-radius);
    border: 1px solid var(--vg-gray-light);
    overflow: hidden;
}

.vg-pattern-header {
    padding: 16px;
    background: white;
    border-bottom: 1px solid var(--vg-gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vg-pattern-title {
    font-weight: 600;
    color: var(--vg-dark);
    flex: 1;
}

.vg-pattern-confidence {
    background: var(--vg-success);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.vg-pattern-body {
    padding: 16px;
}

.vg-pattern-body p {
    margin: 0 0 12px 0;
    color: var(--vg-dark);
}

.vg-pattern-evidence {
    background: rgba(255, 255, 255, 0.5);
    padding: 12px;
    border-radius: var(--vg-radius);
    border-left: 3px solid var(--vg-primary);
}

.vg-pattern-evidence ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.vg-pattern-evidence li {
    margin-bottom: 4px;
    color: var(--vg-gray);
}

/* ===========================================================================
   ΕΙΔΟΠΟΙΗΣΕΙΣ
=========================================================================== */
.vg-notifications-panel {
    background: white;
    border-radius: var(--vg-radius-lg);
    box-shadow: var(--vg-shadow);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--vg-gray-light);
}

.vg-notifications-header {
    padding: 20px;
    background: linear-gradient(90deg, var(--vg-primary) 0%, var(--vg-secondary) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vg-notifications-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.vg-notifications-badge {
    background: white;
    color: var(--vg-primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.vg-notifications-clear {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--vg-transition);
}

.vg-notifications-clear:hover {
    background: white;
    color: var(--vg-primary);
}

.vg-notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.vg-notification-placeholder {
    padding: 40px 20px;
    text-align: center;
    color: var(--vg-gray);
    font-style: italic;
}

/* ===========================================================================
   ΕΞΑΓΩΓΗ
=========================================================================== */
.vg-export-panel {
    background: white;
    border-radius: var(--vg-radius-lg);
    box-shadow: var(--vg-shadow);
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid var(--vg-gray-light);
}

.vg-export-panel h4 {
    margin: 0 0 16px 0;
    color: var(--vg-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.vg-export-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vg-export-btn {
    padding: 12px 20px;
    background: var(--vg-light);
    border: 2px solid var(--vg-gray-light);
    border-radius: var(--vg-radius);
    font-weight: 600;
    color: var(--vg-dark);
    cursor: pointer;
    transition: var(--vg-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vg-export-btn:hover {
    background: var(--vg-primary);
    color: white;
    border-color: var(--vg-primary);
    transform: translateY(-2px);
}

/* ===========================================================================
   ΥΠΟΣΕΛΙΔΑ
=========================================================================== */
.vg-tracker-footer {
    background: white;
    border-radius: var(--vg-radius-lg);
    box-shadow: var(--vg-shadow);
    padding: 20px;
    border: 1px solid var(--vg-gray-light);
    margin-top: 24px;
}

.vg-footer-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--vg-gray-light);
}

.vg-footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--vg-gray);
    font-size: 14px;
}

.vg-footer-copyright {
    text-align: center;
    color: var(--vg-gray);
    font-size: 12px;
}

/* ===========================================================================
   ΑΝΙΜΑΣΙΕΣ
=========================================================================== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===========================================================================
   RESPONSIVE ΣΧΕΔΙΑΣΜΟΣ
=========================================================================== */
@media (max-width: 768px) {
    .vg-algorithm-tracker {
        padding: 10px;
    }
    
    .vg-tracker-title {
        font-size: 22px;
    }
    
    .vg-detection-cards {
        grid-template-columns: 1fr;
    }
    
    .vg-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vg-table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vg-timeline-details {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vg-timeline-stats {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .vg-control-buttons {
        flex-direction: column;
    }
    
    .vg-control-button {
        width: 100%;
    }
    
    .vg-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .vg-export-options {
        flex-direction: column;
    }
    
    .vg-export-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================================================
   ΒΟΗΘΗΤΙΚΕΣ ΚΛΑΣΕΙΣ
=========================================================================== */
.vg-hidden {
    display: none !important;
}

.vg-text-success { color: var(--vg-success); }
.vg-text-warning { color: var(--vg-warning); }
.vg-text-danger { color: var(--vg-danger); }
.vg-text-info { color: var(--vg-info); }

.vg-bg-success { background: var(--vg-success); }
.vg-bg-warning { background: var(--vg-warning); }
.vg-bg-danger { background: var(--vg-danger); }
.vg-bg-info { background: var(--vg-info); }

/* Loading Spinner */
.vg-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--vg-gray-light);
    border-top: 4px solid var(--vg-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Tooltip */
.vg-tooltip {
    position: relative;
    cursor: help;
}

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

/* Modal */
.vg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.vg-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.vg-modal-content {
    background: white;
    border-radius: var(--vg-radius-lg);
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--vg-shadow-lg);
}

.vg-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--vg-gray-light);
}

.vg-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--vg-gray);
    transition: var(--vg-transition);
}

.vg-modal-close:hover {
    color: var(--vg-danger);
}