/* Filter Interface Styles */
.filter-interface {
    margin-top: 2rem;
}

.filter-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.filter-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.input-section {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.input-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.label-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
}

.label-hint {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 400;
}

.number-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #212529;
}

.number-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.number-input::placeholder {
    color: #adb5bd;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.btn-icon {
    font-size: 1.125rem;
}

/* Results Section */
.results-section {
    padding: 2rem;
    background: #ffffff;
    animation: fadeIn 0.4s ease;
}

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

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.results-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-copy,
.btn-copy-primary {
    padding: 0.625rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #495057;
}

.btn-copy:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.btn-copy-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.btn-copy-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.4);
}

/* Numbers Grid */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.number-group {
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid;
    transition: all 0.3s ease;
}

.even-group {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8ff 100%);
    border-color: #2196f3;
}

.odd-group {
    background: linear-gradient(135deg, #fff3e0 0%, #fff8f0 100%);
    border-color: #ff9800;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.group-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.even-title {
    color: #1976d2;
}

.odd-title {
    color: #f57c00;
}

.title-icon {
    font-size: 1.5rem;
}

.group-count {
    background: rgba(255, 255, 255, 0.8);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #495057;
}

.group-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.numbers-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 60px;
    align-items: flex-start;
}

.number-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s ease;
    cursor: default;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.number-badge.even {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.number-badge.odd {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.number-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.empty-message {
    color: #adb5bd;
    font-style: italic;
    padding: 1rem;
    text-align: center;
    width: 100%;
}

/* Statistics Section */
.stats-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

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

.stat-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #dee2e6;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

.stat-even {
    color: #1976d2;
}

.stat-odd {
    color: #f57c00;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .input-section {
        padding: 1.5rem;
    }

    .results-section {
        padding: 1.5rem;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-actions {
        width: 100%;
    }

    .btn-copy,
    .btn-copy-primary {
        flex: 1;
        min-width: 0;
    }

    .numbers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .number-group {
        padding: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .input-section {
        padding: 1rem;
    }

    .results-section {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .group-header {
        flex-wrap: wrap;
    }

    .group-count {
        width: 100%;
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* Loading and Empty States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Copy Feedback */
.copy-feedback {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #28a745;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    z-index: 1000;
    animation: slideUp 0.3s ease;
    font-weight: 600;
}

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

@media (max-width: 767px) {
    .copy-feedback {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}
