/* Modern Websocket Page Styles */
.modern-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
    margin: 1rem;
}

.card-header-modern {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 24px 32px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-modern {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-modern:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-filter {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    border: none;
}

.btn-reset {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border: none;
}

.btn-refresh {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
}

.content-section {
    padding: 24px;
}

.search-container {
    margin-bottom: 24px;
}

.search-input {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
}

/* Table Styles */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-modern thead th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 16px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.table-modern thead th i {
    margin-right: 8px;
    opacity: 0.8;
}

.table-modern tbody td {
    border: none;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #374151;
}

.table-modern tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.table-scroll {
    overflow-x: auto;
    border-radius: 12px;
}

.pagination-modern {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-modern .page-link {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination-modern .page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-modern .page-item.active .page-link {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.empty-state h5 {
    margin-bottom: 8px;
    color: #374151;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Animation Enhancements */
.modern-card {
    animation: fadeInUp 0.6s ease-out;
}

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

.btn-modern:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .modern-card {
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .card-header-modern {
        padding: 20px 24px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .table-modern thead th,
    .table-modern tbody td {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .modern-card {
        margin: 0.25rem;
        border-radius: 8px;
    }
    
    .card-header-modern {
        padding: 16px 20px;
    }
    
    .content-section {
        padding: 16px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .btn-modern {
        font-size: 13px;
        padding: 10px 16px;
        border-radius: 8px;
    }
    
    .table-modern thead th,
    .table-modern tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .search-input {
        padding: 10px 16px;
        font-size: 14px;
    }
}
