/* ===================================
   GSK Staff Firewall Portal - Modern Design
   =================================== */

/* CSS Variables for consistent theming */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --bg-card-hover: #22222e;
    --bg-input: #1e1e28;
    --bg-input-focus: #252532;

    --accent-primary: #7c3aed;
    --accent-primary-hover: #6d28d9;
    --accent-secondary: #fbbf24;
    --accent-secondary-hover: #f59e0b;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: #2d2d3a;
    --border-focus: #7c3aed;

    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse 80% 80% at 50% -20%, rgba(124, 58, 237, 0.15), transparent),
        radial-gradient(ellipse 60% 60% at 100% 100%, rgba(251, 191, 36, 0.08), transparent);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 12px;
    line-height: 1.5;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

header img.logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.3));
    transition: transform var(--transition-normal), filter var(--transition-normal);
}

header img.logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.5));
}

/* Navigation */
nav {
    margin-bottom: 16px;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
}

nav ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

nav ul li a:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(124, 58, 237, 0.2);
}

nav ul li a:hover::before {
    opacity: 0.1;
}

nav ul li a.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md), 0 0 30px rgba(124, 58, 237, 0.4);
}

nav ul li a.active::before {
    display: none;
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
    margin: 12px 0;
    border-radius: 1px;
}

/* Section Headers */
h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

h2::before {
    content: '';
    width: 3px;
    height: 18px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* Cards & Sections */
section {
    margin-bottom: 16px;
}

.quick-access, .rules-list, .activity-summary, .form-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-normal);
}

.quick-access:hover, .rules-list:hover, .activity-summary:hover, .form-section:hover {
    border-color: rgba(124, 58, 237, 0.3);
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.formwithbg {
    background: var(--bg-input);
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

form label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2px;
}

input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    margin-bottom: 4px;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

input::placeholder {
    color: var(--text-muted);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 44px;
}

/* Buttons */
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

form button,
button[type="submit"],
.btn-primary {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-secondary-hover));
    color: #1a1a1a;
    box-shadow: var(--shadow-md), 0 0 20px rgba(251, 191, 36, 0.2);
}

form button:hover,
button[type="submit"]:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(251, 191, 36, 0.4);
}

form button:active,
button[type="submit"]:active,
.btn-primary:active {
    transform: translateY(0);
}

/* Delete Buttons */
.delete-button {
    background: linear-gradient(135deg, var(--error), #dc2626);
    color: white;
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.delete-button:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), 0 0 15px rgba(239, 68, 68, 0.3);
}

.delete-all-button,
.btn-danger {
    background: linear-gradient(135deg, var(--error), #dc2626);
    color: white;
}

.delete-all-button:hover,
.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Secondary Button */
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

/* Tables */
.rules-list {
    text-align: left;
    overflow: hidden;
}

.rules-list h2 {
    text-align: left;
    margin-bottom: 10px;
}

.table-wrapper {
    overflow-x: auto;
    margin: 0 -8px;
    padding: 0 8px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 8px 0;
}

thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

table th {
    background: var(--bg-secondary);
    padding: 8px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

table th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

table th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: background var(--transition-fast);
}

table tbody tr {
    transition: all var(--transition-fast);
}

table tbody tr:hover {
    background: rgba(124, 58, 237, 0.05);
}

table tbody tr:hover td {
    border-color: rgba(124, 58, 237, 0.2);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Sortable Headers */
table th a,
.sort-header {
    color: var(--accent-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

table th a:hover,
.sort-header:hover {
    color: var(--accent-primary);
}

.sort-indicator {
    font-size: 0.7rem;
    opacity: 0.6;
}

.sort-header.active .sort-indicator {
    opacity: 1;
    color: var(--accent-primary);
}

/* Checkboxes for multi-select */
.checkbox-cell {
    width: 36px;
    text-align: center;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 6px 10px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.pagination a.active,
.pagination span.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
    color: white;
    border-color: transparent;
}

/* Messages */
.success-message,
.error-message,
.info-message,
.warning-message {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.success-message {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.error-message {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.info-message {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.warning-message {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Activity Summary */
.activity-summary ul {
    list-style: none;
    padding: 0;
}

.activity-summary ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.activity-summary ul li:hover {
    color: var(--text-primary);
}

.activity-summary ul li:last-child {
    border-bottom: none;
}

.activity-summary ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.activity-summary ul li strong {
    color: var(--accent-secondary);
}

.activity-summary ul li em {
    color: var(--text-muted);
    font-style: normal;
    font-size: 0.7rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: slideIn 0.3s ease;
    min-width: 240px;
    font-size: 0.85rem;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.2rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOut 0.3s ease forwards;
}

/* Search/Filter Bar */
.search-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-input-wrapper input {
    padding-left: 36px;
    margin-bottom: 0;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.filter-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-controls select {
    min-width: 120px;
    margin-bottom: 0;
}

/* Bulk Actions Bar */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.05));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.bulk-actions.hidden {
    display: none;
}

.selected-count {
    font-weight: 600;
    color: var(--accent-primary);
}

.bulk-actions-buttons {
    display: flex;
    gap: 8px;
}

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

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Button with spinner */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Additional Ports Checkboxes */
.additional-ports {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 8px 0 16px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
}

.additional-ports label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0;
}

.additional-ports input[type="checkbox"] {
    margin-bottom: 0;
}

/* IP Badge */
.ip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--accent-primary);
}

/* Protocol Badge */
.protocol-badge {
    display: inline-flex;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.protocol-badge.tcp {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.protocol-badge.udp {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.protocol-badge.icmp {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.protocol-badge.gre {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Rule Badge */
.rule-badge {
    display: inline-flex;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
}

.rule-badge.pass {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.rule-badge.drop {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.rule-badge.other {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
}

/* Stats Cards */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
    flex: 0 0 auto;
}

.stat-card:hover {
    border-color: var(--accent-primary);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-secondary);
    line-height: 1;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.empty-state-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Confirm Dialog */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 8px;
    }

    .container {
        padding: 12px;
        border-radius: var(--radius-md);
    }

    nav ul {
        gap: 6px;
    }

    nav ul li a {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    h2 {
        font-size: 1rem;
    }

    table th,
    table td {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .search-filter-bar {
        flex-direction: column;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .filter-controls {
        width: 100%;
        flex-wrap: wrap;
    }

    .filter-controls select {
        flex: 1;
    }

    .bulk-actions {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .modal-actions button {
        width: 100%;
    }
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Flex utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.font-mono {
    font-family: 'Monaco', 'Consolas', monospace;
}

/* Margin utilities */
.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

/* Action buttons container in table */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* Row highlight for deletion */
tr.deleting {
    opacity: 0.5;
    pointer-events: none;
}

tr.deleted {
    animation: fadeOutRow 0.3s ease forwards;
}

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

/* Attack page specific */
.attack-container {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.attack-list,
.attack-chart {
    flex: 1;
    min-width: 45%;
}

.attack-list {
    max-height: 500px;
    overflow-y: auto;
}

.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.filter-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .attack-container {
        flex-direction: column;
    }

    .attack-list,
    .attack-chart {
        min-width: 100%;
    }
}
