﻿    /* Enhanced Dark Theme Scoped to Saved Lotto V2 Container */
    .saved-lotto-v2-container {
        background-color: #1a1a1a;
        color: #e0e0e0;
        padding: 20px;
        border-radius: 8px;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        max-width: 100%;
        margin: 20px 0;
    }
    
    .saved-lotto-v2-title {
        color: #ffffff;
        border-bottom: 2px solid #333;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    
    .saved-lotto-v2-filters {
        background-color: #2d2d2d;
        padding: 20px;
        border-radius: 6px;
        margin-bottom: 20px;
    }
    
    .saved-lotto-v2-filter-form {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        align-items: end;
    }
    
    .filter-group label {
        display: block;
        color: #b0b0b0;
        margin-bottom: 5px;
        font-weight: 500;
    }
    
    .filter-group select,
    .filter-group input[type="text"],
    .filter-group input[type="date"] {
        width: 100%;
        padding: 8px 12px;
        background-color: #404040;
        border: 1px solid #555;
        border-radius: 4px;
        color: #e0e0e0;
        font-size: 14px;
    }
    
    .filter-group select:focus,
    .filter-group input:focus {
        outline: none;
        border-color: #0073aa;
        box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
    }
    
    .saved-lotto-v2-btn-primary {
        background-color: #0073aa;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: background-color 0.2s;
    }
    
    .saved-lotto-v2-btn-primary:hover {
        background-color: #005a87;
    }
    
    .saved-lotto-v2-btn-secondary {
        background-color: #404040;
        color: #e0e0e0;
        text-decoration: none;
        border: 1px solid #555;
        padding: 9px 19px;
        border-radius: 4px;
        display: inline-block;
        font-size: 14px;
        margin-left: 10px;
        transition: background-color 0.2s;
    }
    
    .saved-lotto-v2-btn-secondary:hover {
        background-color: #505050;
        color: #e0e0e0;
        text-decoration: none;
    }
    
    .saved-lotto-v2-summary {
        color: #b0b0b0;
        margin-bottom: 15px;
    }

    /* Draw Results Display Styles */
    .saved-draw-results-display {
        background-color: #2d2d2d;
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
        border-left: 4px solid #4a90e2;
    }

    .saved-draw-results-display h3 {
        color: #4a90e2;
        margin: 0 0 15px 0;
        font-size: 18px;
        font-weight: 600;
    }

    .saved-winning-numbers-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 15px;
    }

    .saved-game-draw-result {
        background-color: #1a1a1a;
        border-radius: 6px;
        padding: 15px;
        border: 1px solid #404040;
    }

    .saved-game-draw-title {
        color: #ffffff;
        margin: 0 0 12px 0;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
    }

    .saved-draw-numbers-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .saved-main-numbers,
    .saved-bonus-numbers {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .saved-draw-ball {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: bold;
        color: white;
        position: relative;
    }

    .saved-main-ball {
        background: linear-gradient(135deg, #27ae60, #2ecc71);
        border: 2px solid #1e8449;
    }

    .saved-bonus-ball {
        background: linear-gradient(135deg, #8e44ad, #9b59b6);
        border: 2px solid #6c3483;
    }

    .saved-bonus-ball::before {
        content: attr(data-label);
        position: absolute;
        top: -20px;
        font-size: 10px;
        font-weight: bold;
        color: #b0b0b0;
        white-space: nowrap;
    }

    .saved-no-draw-data {
        background-color: #2d2d2d;
        border-radius: 6px;
        padding: 15px;
        margin-bottom: 20px;
        text-align: center;
        color: #888;
        border: 1px solid #404040;
    }

    /* PowerBall specific styling */
    .saved-game-draw-result:has(.saved-bonus-ball[data-label="PowerBall"]) .saved-bonus-ball {
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        border: 2px solid #a93226;
    }
    
    .saved-lotto-v2-table-container {
        overflow-x: auto;
        background-color: #2d2d2d;
        border-radius: 6px;
    }
    
    .saved-lotto-v2-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }
    
    .saved-lotto-v2-table th {
        background-color: #404040;
        color: #ffffff;
        padding: 12px 8px;
        text-align: left;
        font-weight: 600;
        border-bottom: 2px solid #555;
        position: sticky;
        top: 0;
    }
    
    .saved-lotto-v2-table td {
        padding: 10px 8px;
        border-bottom: 1px solid #404040;
        vertical-align: top;
    }
    
    /* Alternating row styles */
    .saved-line-data-row-v2 {
        background-color: #262626;
    }
    
    .saved-line-data-row-v2:hover {
        background-color: #333;
    }
    
    .saved-match-stats-row-v2 {
        background-color: #1f1f1f;
        border-top: 2px solid #0073aa;
    }
    
    .saved-match-stats-cell-v2 {
        padding: 15px !important;
    }
    
    /* Match Statistics Styling */
    .saved-match-statistics-v2 h4 {
        color: #4a90e2;
        margin: 0 0 15px 0;
        font-size: 16px;
        font-weight: 600;
    }
    
    .saved-match-results-grid-v2 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .saved-match-result-item-v2 {
        background-color: #2d2d2d;
        border-radius: 8px;
        padding: 12px;
        border-left: 4px solid #555;
    }
    
    .saved-match-result-item-v2.has-matches {
        border-left-color: #27ae60;
        background-color: rgba(39, 174, 96, 0.1);
    }
    
    .saved-match-result-item-v2.low-matches {
        border-left-color: #666;
        opacity: 0.7;
    }
    
    .saved-match-game-info-v2 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .saved-game-name-v2 {
        font-weight: 600;
        color: #4a90e2;
        font-size: 14px;
    }
    
    .saved-match-date-v2 {
        color: #b0b0b0;
        font-size: 12px;
    }
    
    .saved-match-details-v2 {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-bottom: 8px;
    }
    
    .saved-match-count-v2 {
        background-color: #0073aa;
        color: white;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: bold;
    }
    
    .saved-bonus-indicator-v2 {
        background-color: #f39c12;
        color: white;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: bold;
    }
    
    .saved-matched-numbers-v2 {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .saved-matched-ball-v2 {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background-color: #27ae60;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: bold;
    }
    
    .saved-matched-powerball-v2 {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background-color: #e74c3c;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: bold;
        border: 2px solid #c0392b;
        position: relative;
    }

    .saved-matched-powerball-v2::before {
        content: "PB";
        position: absolute;
        top: -18px;
        font-size: 8px;
        font-weight: bold;
        color: #e74c3c;
        white-space: nowrap;
    }
    
    .saved-matched-bonus-v2 {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background-color: #f39c12;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: bold;
        border: 2px solid #d68910;
        position: relative;
    }

    .saved-matched-bonus-v2::before {
        content: "B";
        position: absolute;
        top: -18px;
        font-size: 8px;
        font-weight: bold;
        color: #f39c12;
        white-space: nowrap;
    }
    
    .saved-no-match-data-v2 {
        text-align: center;
        padding: 20px;
        color: #888;
        font-style: italic;
    }
    
    .saved-no-data-text-v2 {
        background-color: #333;
        padding: 8px 16px;
        border-radius: 4px;
        display: inline-block;
    }
    
    /* Saved lines specific styling */
    .saved-numbers-cell-v2 {
        max-width: 150px;
    }
    
    .saved-lotto-numbers-v2 {
        font-family: 'Courier New', monospace;
        background-color: #1a1a1a;
        padding: 4px 8px;
        border-radius: 3px;
        font-weight: bold;
        color: #00ff88;
        display: inline-block;
        word-break: break-all;
    }
    
    .saved-game-type-badge-v2 {
        background-color: #d63638;
        color: white;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: bold;
    }
    
    .saved-range-badge-v2 {
        background-color: #f0b849;
        color: #1a1a1a;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: bold;
    }
    
    .saved-anonymous-user {
        color: #888;
        font-style: italic;
    }
    
    .saved-no-data-small {
        color: #888;
        font-style: italic;
        font-size: 12px;
    }
    
    .saved-notes-cell-v2 {
        max-width: 200px;
        min-width: 150px;
    }
    
    .saved-notes-content-v2 {
        font-size: 13px;
    }
    
    .saved-notes-preview-v2,
    .saved-notes-full-v2 {
        margin-bottom: 5px;
        line-height: 1.4;
    }
    
    .saved-notes-toggle-v2 {
        background-color: #0073aa;
        color: white;
        border: none;
        padding: 2px 8px;
        border-radius: 3px;
        font-size: 11px;
        cursor: pointer;
        transition: background-color 0.2s;
    }
    
    .saved-notes-toggle-v2:hover {
        background-color: #005a87;
    }
    
    .saved-no-notes {
        color: #888;
        font-style: italic;
        font-size: 12px;
    }
    
    .saved-no-data-v2 {
        text-align: center;
        color: #888;
        font-style: italic;
        padding: 40px;
    }
    
    .saved-lotto-v2-pagination {
        margin-top: 20px;
        text-align: center;
    }
    
    .saved-lotto-v2-page-btn {
        display: inline-block;
        padding: 8px 12px;
        margin: 0 2px;
        background-color: #404040;
        color: #e0e0e0;
        text-decoration: none;
        border-radius: 4px;
        border: 1px solid #555;
        transition: all 0.2s;
    }
    
    .saved-lotto-v2-page-btn:hover {
        background-color: #505050;
        color: #e0e0e0;
        text-decoration: none;
    }
    
    .saved-lotto-v2-page-btn.active {
        background-color: #0073aa;
        color: white;
        border-color: #0073aa;
    }
    
    /* Responsive Design */
    @media (max-width: 768px) {
        .saved-lotto-v2-filter-form {
            grid-template-columns: 1fr;
        }
        
        .saved-winning-numbers-grid {
            grid-template-columns: 1fr;
        }
        
        .saved-match-results-grid-v2 {
            grid-template-columns: 1fr;
        }
        
        .saved-lotto-v2-table {
            font-size: 12px;
        }

        .saved-draw-ball {
            width: 35px;
            height: 35px;
            font-size: 12px;
        }
        
        .saved-main-numbers,
        .saved-bonus-numbers {
            gap: 6px;
        }
        
        .saved-notes-cell-v2 {
            max-width: 120px;
            min-width: 100px;
        }
    }