/* General Styles */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --dark-color: #2c3e50;
}

body {
    background-color: #f5f7fa;
    color: #333;
}

.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Card Styling */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

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

.card-header {
    border-bottom: 2px solid #e9ecef;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #495057;
}

.card-header.bg-light {
    background-color: #f8f9fa !important;
}

/* Table Styling */
.table {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody td {
    padding: 0.9rem 1.5rem;
    vertical-align: middle;
}

.table-responsive {
    min-height: 100px;
}

/* IP Address Styling */
.ip-address {
    font-family: 'Courier New', monospace;
    background-color: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: 500;
}

.ip-banned {
    color: #dc3545;
    font-weight: 600;
}

.ip-unbanned {
    color: #28a745;
    font-weight: 600;
}

/* Jail Badge */
.jail-badge {
    display: inline-block;
    background-color: #e7f3ff;
    color: #0066cc;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Message Text */
.log-message {
    color: #555;
    font-size: 0.9rem;
    word-break: break-word;
}

.log-message-auth {
    color: #dc3545;
}

.log-message-fail2ban {
    color: #ff6b6b;
}

/* Datetime Styling */
.log-datetime {
    color: #6c757d;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* Filter Section */
.form-select, .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select:focus, .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Loading Indicator */
#loadingIndicator {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .table thead th, .table tbody td {
        padding: 0.75rem 0.5rem;
    }

    .ip-address {
        font-size: 0.85rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
