* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #0f172a;
    --dark-bg-light: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240, 147, 251, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(102, 126, 234, 0.3) 0%, transparent 50%);
    animation: bgShift 15s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Animated Background */
.login-bg-animation {
    display: none;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: white;
    border-radius: 16px;
    padding: 45px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

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

/* Login Sides */
.login-side {
    display: none;
}

.login-branding {
    display: none;
}

/* Right Side - Form */
.login-form-side {
    display: block;
}

.login-form-container {
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo {
    max-width: 180px;
    height: auto;
    margin: 0 auto 25px;
    display: block;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.login-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Login Form */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-form label svg {
    display: none;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    font-size: 15px;
    margin-top: 25px;
}

.btn-login svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-login:hover svg {
    transform: translateX(4px);
}

.login-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.login-security svg {
    width: 14px;
    height: 14px;
    color: var(--success-color);
    flex-shrink: 0;
}

.login-security p {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.login-credits {
    margin-top: 8px;
}

.login-credits p {
    margin: 0;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.login-credits a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-credits a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Alert */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    animation: slideDown 0.4s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

.alert-error {
    background: linear-gradient(135deg, #fee 0%, #fdd 100%);
    border: 2px solid #fcc;
    color: #c33;
}

.alert-error svg {
    color: #ef4444;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #86efac;
    color: #065f46;
}

.alert-success svg {
    color: #10b981;
}

/* Form */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    color: white;
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color)) 1;
}

/* Header Top Bar - Logo ve User Bilgisi */
.header-topbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.header-topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.header-logo {
    max-width: 160px;
    height: auto;
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.header-logo:hover {
    transform: translateY(-2px);
    filter: brightness(1.2) drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.header-brand-text {
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 20px;
}

.header-brand-text h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-brand-text p {
    font-size: 12px;
    margin: 2px 0 0 0;
    opacity: 0.7;
    font-weight: 300;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 20px 8px 8px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.user-role {
    font-size: 11px;
    opacity: 0.7;
    line-height: 1;
}

/* Navigation Menu */
.header-navigation {
    padding: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 24px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: var(--primary-color);
}

.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: var(--primary-color);
    box-shadow: inset 0 -3px 0 0 var(--primary-color);
}

.nav-link svg {
    width: 18px;
    height: 18px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.header-actions .btn {
    margin: 0;
    font-size: 13px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions .btn svg {
    width: 16px;
    height: 16px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Table Container */
.table-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    margin-top: 30px;
    margin-bottom: 40px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    border: 1px solid var(--border-color);
}

.ip-table, .users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ip-table thead, .users-table thead {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-bg-light));
    color: white;
    position: relative;
}

.ip-table thead::after, .users-table thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.ip-table thead th, .users-table thead th {
    padding: 20px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.ip-table thead th:not(:last-child)::after, .users-table thead th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.ip-table tbody td, .users-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    vertical-align: middle;
}

.ip-table tbody tr, .users-table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.ip-table tbody tr::before, .users-table tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ip-table tbody tr:hover, .users-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(2px);
}

.ip-table tbody tr:hover::before, .users-table tbody tr:hover::before {
    opacity: 1;
}

.ip-table tbody tr:last-child td, .users-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table cell specific styles */
.ip-table tbody td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

/* Badge */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.badge-success, .status-badge.badge-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.badge-danger, .status-badge.badge-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.badge-secondary, .status-badge.badge-secondary {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
}

/* Status Cell */
.status-cell {
    position: relative;
}

.checking-status {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Spinner Animation */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

/* IP Row Checking */
.ip-row.checking {
    background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover,
.close:focus {
    color: var(--danger-color);
    background: #fee;
    transform: rotate(90deg);
}

/* Filter Section */
.filter-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 30px 0;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--border-color);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

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

.filter-title svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    stroke-width: 2.5;
}

.filter-title h3 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.filter-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.filter-badge svg {
    width: 18px;
    height: 18px;
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group label svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: var(--shadow-sm);
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.filter-group select:hover,
.filter-group input[type="text"]:hover {
    border-color: var(--primary-light);
}

.filter-actions {
    display: flex;
    align-items: flex-end;
}

.filter-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
}

.filter-actions .btn svg {
    width: 16px;
    height: 16px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.loading-spinner {
    border: 5px solid #f3f4f6;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

.loading-text {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .header-title h1 {
        font-size: 26px;
    }

    .ip-table thead th, .ip-table tbody td,
    .users-table thead th, .users-table tbody td {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .login-box {
        flex-direction: column;
        padding: 35px 30px;
    }

    .login-side {
        padding: 40px 30px;
    }

    .login-branding {
        padding: 50px 30px;
    }

    .brand-logo {
        max-width: 150px;
    }

    .login-logo {
        max-width: 150px;
        margin-bottom: 20px;
        padding: 16px 24px;
    }

    .branding-content h2 {
        font-size: 26px;
    }

    .branding-content > p {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .feature-list {
        margin-bottom: 30px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-header p {
        font-size: 13px;
    }

    .login-form-container {
        max-width: 100%;
    }

    .login-security {
        flex-direction: column;
        gap: 6px;
    }

    .login-credits p {
        font-size: 10px;
    }

    .header-topbar {
        padding: 12px 0;
    }

    .header-topbar-content {
        flex-direction: column;
        gap: 15px;
    }

    .header-brand {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .header-logo {
        max-width: 140px;
    }

    .header-brand-text {
        border-left: none;
        padding-left: 0;
        text-align: center;
    }

    .header-brand-text h1 {
        font-size: 18px;
    }

    .header-brand-text p {
        font-size: 11px;
    }

    .header-user-info {
        width: 100%;
        justify-content: space-between;
    }

    .user-profile {
        padding: 6px 15px 6px 6px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .user-name {
        font-size: 13px;
    }

    .user-role {
        font-size: 10px;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 14px 20px;
        justify-content: center;
        font-size: 13px;
    }

    .header-actions {
        flex-direction: column;
        padding: 12px 0;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .table-container {
        margin-top: 20px;
        border-radius: 12px;
    }

    .ip-table, .users-table {
        font-size: 12px;
    }

    .ip-table thead th, .ip-table tbody td,
    .users-table thead th, .users-table tbody td {
        padding: 10px 8px;
    }

    .badge, .status-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 11px;
    }

    .modal-content {
        margin: 10% auto;
        padding: 30px 25px;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .filter-group select,
    .filter-group input[type="text"] {
        min-width: 100%;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .login-logo {
        max-width: 130px;
        margin-bottom: 18px;
        padding: 14px 20px;
    }

    .login-header h1 {
        font-size: 22px;
    }

    .login-header p {
        font-size: 12px;
    }

    .login-box {
        padding: 30px 25px;
    }

    .login-security p {
        font-size: 11px;
    }

    .login-credits p {
        font-size: 9px;
    }

    .header-title h1 {
        font-size: 20px;
    }

    .header-logo {
        max-width: 120px;
    }

    .ip-table, .users-table {
        font-size: 11px;
    }

    .ip-table thead th, .ip-table tbody td,
    .users-table thead th, .users-table tbody td {
        padding: 8px 5px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .btn-sm {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color)) 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    flex: 1;
    min-width: 280px;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(1.1);
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex: 2;
    justify-content: center;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: white;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-column ul li a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-column ul li a svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-column ul li a:hover svg {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.footer-credits {
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.8;
}

.footer-credits svg {
    width: 16px;
    height: 16px;
    color: #ef4444;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

.footer-credits strong {
    color: var(--primary-light);
    font-weight: 700;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}
