/* --- Global & Typography --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    color: #333;
}

h3, h4, h5 {
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: color 0.2s;
}

/* --- Navigation --- */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%) !important; /* Dark Blue Theme */
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- Cards & Containers --- */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    overflow: hidden; /* Keeps header corners rounded */
}

.card-header-custom {
    background: linear-gradient(45deg, #4e73df, #224abe);
    color: white;
    font-weight: 600;
    padding: 15px 20px;
}

.login-container {
    max-width: 420px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Status Cards (The Top Row) --- */
.status-scroll-container {
    display: flex;
    gap: 15px; /* Space between cards */
    overflow-x: auto; /* Horizontal scroll on mobile */
    padding-bottom: 10px;
    margin-bottom: 20px;
    scrollbar-width: thin; /* Firefox thin scrollbar */
}

.status-card {
    flex: 1; /* Grow to fill space */
    min-width: 140px; /* Don't get too small */
    padding: 15px 10px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none !important;
    border: 2px solid transparent;
}

.status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    filter: brightness(105%); /* Slight highlight */
}

.status-card h4 {
    font-size: 1.8rem;
    margin-bottom: 0;
    font-weight: 700;
}

.status-card small {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Active State Border */
.active-filter {
    border-color: #333 !important;
    transform: scale(1.02);
}

/* Colors for Status Cards */
.bg-gradient-dark { background: linear-gradient(135deg, #343a40, #212529); }
.bg-gradient-warning { background: linear-gradient(135deg, #ffc107, #e0a800); color: #212529 !important; }
.bg-gradient-danger { background: linear-gradient(135deg, #dc3545, #c82333); }
.bg-gradient-success { background: linear-gradient(135deg, #28a745, #218838); }
.bg-gradient-info { background: linear-gradient(135deg, #17a2b8, #138496); }
.bg-gradient-primary { background: linear-gradient(135deg, #007bff, #0069d9); }
.bg-gradient-secondary { background: linear-gradient(135deg, #6c757d, #5a6268); }

/* --- Table Styling --- */
.table thead th {
    background-color: #2c3e50;
    color: white;
    font-weight: 500;
    border: none;
    white-space: nowrap;
}

.table-hover tbody tr:hover {
    background-color: #f1f3f5;
}

/* Status Borders for Rows */
.status-border-Pending { border-left: 4px solid #ffc107; }
.status-border-Connected { border-left: 4px solid #28a745; }
.status-border-Not.Connected { border-left: 4px solid #dc3545; }

/* --- Forms & Modals --- */
.form-control:focus, .form-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.highlight-status {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

/* --- Badges --- */
.badge {
    font-weight: 500;
    padding: 6px 10px;
}