/* Status badges with colors */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge svg {
    width: 16px;
    height: 16px;
    margin-right: 0.25rem;
}

.status-online {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--bs-success);
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.status-offline {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--bs-danger);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Modern Card Design */
.card {
    border: none;
    border-radius: 16px;
    background: var(--bs-dark);
    color: var(--bs-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card-body {
    padding: 1.75rem;
}

.card-header {
    background: linear-gradient(135deg, #374151 0%, #475569 100%);
    border-bottom: 1px solid #475569;
    padding: 1.25rem 1.75rem;
    border-radius: 16px 16px 0 0;
    font-weight: 600;
    color: var(--bs-light);
}

/* Modern Table Design */
.table {
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bs-dark);
    color: var(--bs-light);
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    width: 100%;
    min-width: 900px;
    table-layout: auto;
}

.table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 1rem 0.75rem;
    border: none;
    position: relative;
}

.table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.table tbody td {
    padding: 1rem 0.75rem;
    border: none;
    border-bottom: 1px solid #475569;
    vertical-align: middle;
    font-size: 0.95rem;
    color: var(--bs-light);
    word-wrap: break-word;
    white-space: normal;
    max-width: 200px;
}

.table-hover tbody tr {
    transition: all 0.3s ease;
}

.table-hover tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(248, 147, 251, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.table tbody tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

/* Table Responsive Wrapper */
.table-responsive {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
}

/* Modern Statistics Cards */
.card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card h2 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* Stats Card Variants */
.stats-card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-card-primary .card-title {
    color: rgba(255, 255, 255, 0.9);
}

.stats-card-primary h2 {
    color: white;
    -webkit-text-fill-color: white;
}

.stats-card-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.stats-card-success .card-title {
    color: rgba(255, 255, 255, 0.9);
}

.stats-card-success h2 {
    color: white;
    -webkit-text-fill-color: white;
}

.stats-card-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.stats-card-danger .card-title {
    color: rgba(255, 255, 255, 0.9);
}

.stats-card-danger h2 {
    color: white;
    -webkit-text-fill-color: white;
}

/* Card Icon Styling */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

/* Modern Navigation Design */
.navbar {
    backdrop-filter: blur(20px);
    background: rgba(30, 41, 59, 0.95) !important;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
    -webkit-text-fill-color: transparent;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    color: #e2e8f0 !important;
    text-decoration: none;
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(248, 147, 251, 0.2) 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-link svg {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
    stroke: currentColor;
}

.nav-link:hover svg {
    transform: scale(1.1);
}

/* Navigation Text Colors */
.navbar-nav .nav-link {
    color: #e2e8f0 !important;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

/* User Dropdown Styling */
.navbar .dropdown-toggle {
    color: #e2e8f0 !important;
}

.navbar .dropdown-toggle:hover {
    color: #ffffff !important;
}

.navbar .dropdown-toggle::after {
    color: #e2e8f0;
}

.navbar .badge {
    background-color: #667eea !important;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    background: rgba(30, 41, 59, 0.95);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(248, 147, 251, 0.1) 100%);
    color: #667eea;
    transform: translateX(4px);
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
}

/* Enhanced Typography */
body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #374151 100%);
    color: var(--bs-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--bs-light);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Page Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Modern Form Styles */
.form-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--bs-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modern Input Fields */
.form-control {
    border: 2px solid #475569;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--bs-dark);
    color: var(--bs-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
    outline: none;
    background: var(--bs-dark);
    color: var(--bs-light);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Modern Select Fields */
.form-select {
    border: 2px solid #475569;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--bs-dark) url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 12px center/16px 12px;
    color: var(--bs-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    appearance: none;
    background-size: 16px 12px;
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
    outline: none;
    background-color: var(--bs-dark);
    color: var(--bs-light);
    transform: translateY(-1px);
}

.form-select:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Error States */
.form-control.is-invalid, .form-select.is-invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.form-control.is-invalid:focus, .form-select.is-invalid:focus {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

/* Professional Filter Section */
.filter-section {
    background: linear-gradient(135deg, #374151 0%, #475569 100%);
    border: 1px solid #64748b;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.filter-section .card-body {
    padding: 0;
}

.filter-section .row {
    align-items: end;
}

/* Search Bar Special Styling */
.search-input {
    position: relative;
}

.search-input .form-control {
    padding-left: 45px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='8'/%3e%3cpath d='m21 21-4.35-4.35'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 18px 18px;
}

/* Input Group Styling */
.input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    overflow: hidden;
}

.input-group .form-control {
    border-radius: 0;
    border-right: none;
}

.input-group .btn {
    border-radius: 0;
}

/* Floating Labels Effect */
.floating-label {
    position: relative;
}

.floating-label .form-control:focus + .floating-label-text,
.floating-label .form-control:not(:placeholder-shown) + .floating-label-text {
    transform: translateY(-24px) scale(0.85);
    color: #667eea;
}

.floating-label-text {
    position: absolute;
    top: 12px;
    left: 16px;
    color: #9ca3af;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 4px;
}

/* Modern Checkbox and Radio */
.form-check-input {
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    width: 1.2em;
    height: 1.2em;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

/* Modern Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }
    
    .filter-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    /* Hide less important columns on mobile */
    .table-responsive .d-none-mobile {
        display: none !important;
    }
    
    /* Stack cards instead of columns on small screens */
    .card-body {
        padding: 1rem;
    }
    
    /* Improve button spacing on mobile */
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Better table spacing on mobile */
    .table tbody td {
        padding: 0.5rem 0.25rem;
        font-size: 0.875rem;
    }
    
    .table thead th {
        padding: 0.75rem 0.25rem;
        font-size: 0.8rem;
    }
}

/* Focus Ring for Accessibility */
.form-control:focus, .form-select:focus, .form-check-input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Modern Button Styles */
.btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 101, 101, 0.4);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Modern Pagination */
.pagination .page-link {
    border: none;
    border-radius: 8px;
    margin: 0 2px;
    padding: 0.75rem 1rem;
    color: #64748b;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.loading-shimmer {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.loading-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.5s infinite;
}

/* Current User Highlight */
.table-success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.3) 0%, rgba(56, 161, 105, 0.3) 100%) !important;
    border: 2px solid rgba(72, 187, 120, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(72, 187, 120, 0.2) !important;
}

.table-success td {
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.table-success strong {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.table-success .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.table-success code {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.table-success small {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Smooth Page Transitions */
.page-transition {
    animation: fadeInUp 0.6s ease-out;
}

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

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Primary Button - Modern Blue */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* Secondary Button - Soft Gray */
.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e084f0 0%, #e54b65 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

/* Success Button - Fresh Green */
.btn-success, .btn-outline-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
}

.btn-success:hover, .btn-outline-success:hover {
    background: linear-gradient(135deg, #3b9bfe 0%, #00e6fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
    color: white;
}

/* Warning Button - Warm Orange */
.btn-warning, .btn-outline-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(250, 112, 154, 0.3);
}

.btn-warning:hover, .btn-outline-warning:hover {
    background: linear-gradient(135deg, #f8608f 0%, #fdd835 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 112, 154, 0.4);
    color: white;
}

/* Danger Button - Soft Red */
.btn-danger, .btn-outline-danger {
    background: linear-gradient(135deg, #ff8a80 0%, #ff5722 100%);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(255, 138, 128, 0.3);
}

.btn-danger:hover, .btn-outline-danger:hover {
    background: linear-gradient(135deg, #ff7769 0%, #f4511e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 138, 128, 0.4);
    color: white;
}

/* Info Button - Calm Blue */
.btn-info, .btn-outline-info {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2c3e50;
    border: none;
    box-shadow: 0 6px 20px rgba(168, 237, 234, 0.3);
}

.btn-info:hover, .btn-outline-info:hover {
    background: linear-gradient(135deg, #96e6e2 0%, #fcc9d8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 237, 234, 0.4);
    color: #2c3e50;
}

/* Small Buttons */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Button group improvements */
.btn-group-sm .btn {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.btn-group-sm .btn svg {
    width: 14px;
    height: 14px;
}

/* Dropdown toggle */
.dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Focus states for accessibility */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Empty state styling */
.text-center i[data-feather] {
    opacity: 0.5;
}

/* Code styling for IP addresses */
code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: var(--bs-info);
    background-color: rgba(var(--bs-info-rgb), 0.1);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Badge improvements */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Pagination improvements */
.pagination .page-link {
    color: var(--bs-secondary);
    border-color: var(--bs-border-color);
}

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

/* Card footer improvements */
.card-footer {
    background-color: rgba(var(--bs-secondary-rgb), 0.05);
    border-top: 1px solid var(--bs-border-color);
}

/* Text Logo Styles */
.text-logo-login {
    font-family: 'Arial Black', 'Helvetica', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #0dcaf0 0%, #20c997 50%, #198754 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    animation: textLogoFadeInScale 1.2s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
    line-height: 1.2;
}

.text-logo-navbar {
    font-family: 'Arial Black', 'Helvetica', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #0dcaf0 0%, #20c997 50%, #198754 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    animation: textLogoSlideIn 0.8s ease-out forwards;
    animation-delay: 0.1s;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Text Logo Animation Keyframes */
@keyframes textLogoFadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes textLogoSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Additional responsive improvements */
@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        border-radius: 0.375rem !important;
    }
    
    .text-logo-navbar {
        font-size: 1.1rem !important;
    }
    
    .filter-section .row {
        margin: 0;
    }
    
    .stats-card-primary .card-body,
    .stats-card-success .card-body,
    .stats-card-danger .card-body {
        padding: 1.25rem;
    }
}

/* Modern Actions Container Styling */
.modern-actions-container {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    min-width: 200px;
    padding: 0.25rem;
}

.action-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 45px;
    min-height: 45px;
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #fff;
}

.action-btn i {
    width: 16px;
    height: 16px;
    margin-bottom: 2px;
}

.action-label {
    font-size: 0.65rem;
    line-height: 1;
    margin-top: 2px;
}

/* Specific Action Button Colors */
.action-edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.action-edit:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    color: #fff;
}

.action-fault {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: 1px solid rgba(240, 147, 251, 0.3);
}

.action-fault:hover {
    background: linear-gradient(135deg, #ed64a6 0%, #f093fb 100%);
    color: #fff;
}

.action-connect {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.action-connect:hover {
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
    color: #fff;
}

.action-disconnect {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    border: 1px solid rgba(237, 137, 54, 0.3);
}

.action-disconnect:hover {
    background: linear-gradient(135deg, #dd6b20 0%, #ed8936 100%);
    color: #fff;
}

.action-history {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    border: 1px solid rgba(66, 153, 225, 0.3);
}

.action-history:hover {
    background: linear-gradient(135deg, #3182ce 0%, #4299e1 100%);
    color: #fff;
}

.action-delete {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    border: 1px solid rgba(245, 101, 101, 0.3);
}

.action-delete:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #f56565 100%);
    color: #fff;
}

/* Dropdown Menu Improvements */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 180px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    transform: translateX(3px);
}

.dropdown-item i {
    width: 16px;
    height: 16px;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Mobile Actions Optimization */
@media (max-width: 768px) {
    .modern-actions-container {
        min-width: 150px;
        gap: 0.2rem;
        justify-content: flex-start;
    }
    
    .action-btn {
        min-width: 35px;
        min-height: 35px;
        padding: 0.3rem;
    }
    
    .action-btn i {
        width: 14px;
        height: 14px;
    }
    
    .action-label {
        font-size: 0.6rem;
    }
    
    .table {
        min-width: 800px;
        font-size: 0.85rem;
    }
    
    .table tbody td {
        padding: 0.75rem 0.5rem;
        max-width: 150px;
        word-break: break-word;
    }
    
    .table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .modern-actions-container {
        min-width: 120px;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .action-btn {
        min-width: 30px;
        min-height: 30px;
        padding: 0.2rem;
    }
    
    .action-label {
        display: none; /* Hide text on very small screens */
    }
    
    .action-btn i {
        width: 12px;
        height: 12px;
        margin-bottom: 0;
    }
}

/* Specific column width controls */
.table th:nth-child(1), .table td:nth-child(1) { /* Line Code */
    min-width: 100px;
    max-width: 120px;
}

.table th:nth-child(2), .table td:nth-child(2) { /* Name */
    min-width: 150px;
    max-width: 200px;
}

.table th:nth-child(3), .table td:nth-child(3) { /* Station */
    min-width: 120px;
    max-width: 150px;
}

.table th:nth-child(6), .table td:nth-child(6) { /* IP Address */
    min-width: 130px;
    max-width: 150px;
    word-break: break-all;
}

.table code {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    word-break: break-all;
}

/* Ensure proper text wrapping */
.table td, .table th {
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ========== JAWWAL LOADER ========== */
/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-container {
    text-align: center;
    color: #fff;
}

.jawwal-loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem auto;
}

.loader-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.9;
    animation: jawwalRotate 2s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.circle-1 {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    top: 10px;
    left: 38px;
    animation-delay: 0s;
    box-shadow: 0 0 20px rgba(46, 125, 50, 0.6), 0 0 40px rgba(67, 160, 71, 0.4);
}

.circle-2 {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    top: 65px;
    left: 18px;
    animation-delay: 0.66s;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6), 0 0 40px rgba(102, 187, 106, 0.4);
}

.circle-3 {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #689f38, #8bc34a);
    top: 65px;
    right: 18px;
    animation-delay: 1.33s;
    box-shadow: 0 0 20px rgba(104, 159, 56, 0.6), 0 0 40px rgba(139, 195, 74, 0.4);
}

@keyframes jawwalRotate {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.9;
    }
    33% {
        transform: scale(1.3) rotate(120deg);
        opacity: 1;
    }
    66% {
        transform: scale(0.8) rotate(240deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0.9;
    }
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    animation: loaderPulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.loader-subtitle {
    font-size: 1rem;
    color: #adb5bd;
    font-weight: 400;
    animation: loaderPulse 2s ease-in-out infinite reverse;
    letter-spacing: 1px;
}

@keyframes loaderPulse {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* Loading animation for page transitions */
.page-transition {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Mobile responsiveness for loader */
@media (max-width: 768px) {
    .jawwal-loader {
        width: 90px;
        height: 90px;
    }
    
    .loader-circle {
        width: 32px;
        height: 32px;
    }
    
    .circle-1 {
        top: 8px;
        left: 29px;
        width: 32px;
        height: 32px;
    }
    
    .circle-2 {
        top: 50px;
        left: 12px;
        width: 32px;
        height: 32px;
    }
    
    .circle-3 {
        top: 50px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
    
    .loader-text {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .loader-subtitle {
        font-size: 0.9rem;
    }
}

