/* Fichier: /public/front/css/banlist.css */

/* Page Header */
.page-header {
    background: var(--gradient);
    padding: 6rem 0 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom right, transparent 50%, var(--light) 50%);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Search Section */
.search-section {
    margin: -2rem auto 2rem;
    position: relative;
    z-index: 10;
}

.search-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.search-wrapper {
    display: flex;
    gap: 1rem;
}

.search-input-group {
    flex: 1;
    position: relative;
}

.search-input-group i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    font-size: 1.125rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Stats Overview */
.stats-overview {
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid var(--gray);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.stat-info {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Data Section */
.data-section {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.data-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.header-title i {
    color: var(--primary);
}

.update-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--success);
    margin-left: 1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
    white-space: nowrap;
}

.data-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray);
    font-size: 0.875rem;
}

.data-table tr:hover {
    background: #f8fafc;
}

/* IP Cell */
.ip-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ip-cell i {
    color: var(--primary);
}

.ip-link {
    color: var(--primary);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.ip-link:hover {
    text-decoration: underline;
}

/* Port Badge */
.port-badge {
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

/* Country Cell */
.country-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.country-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* FAI Badge */
.fai-badge {
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: var(--secondary);
}

/* Threat Level */
.threat-level {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.threat-level.high {
    background: #fee2e2;
    color: #dc2626;
}

.threat-level.medium {
    background: #fef3c7;
    color: #d97706;
}

.threat-level.low {
    background: #dcfce7;
    color: #16a34a;
}

.threat-level i {
    font-size: 0.625rem;
}

/* Detection Info */
.detection-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detection-date {
    color: var(--dark);
    font-weight: 500;
}

.detection-time {
    color: var(--secondary);
    font-size: 0.75rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8fafc;
    color: var(--secondary);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--gray);
    color: var(--primary);
}

/* Pagination */
.pagination-wrapper {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--gray);
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.pagination li {
    display: inline-flex;
}

.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #f1f5f9;
}

.pagination .active span {
    background: var(--primary);
    color: white;
}

/* Info Section */
.info-section {
    margin-top: 3rem;
}

.info-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-header i {
    color: var(--primary);
    font-size: 1.5rem;
}

.info-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.info-card p {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.info-actions {
    display: flex;
    gap: 1.5rem;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .search-wrapper {
        flex-direction: column;
    }

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

    .header-actions {
        display: none;
    }

    .data-table {
        font-size: 0.75rem;
    }

    .info-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 4rem 0 3rem;
    }

    .search-form {
        padding: 1rem;
    }

    .data-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
