/**
 * Career Hub - Unified Blue-Themed Styles
 * Professional recruitment system design
 */

/* ============================================================================
   CSS VARIABLES & RESET
   ============================================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    --dark: #1e293b;
    --text: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-light);
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================================================
   ADMIN LAYOUT (Sidebar + Main)
   ============================================================================ */

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--dark);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.sidebar-brand i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.15);
    color: white;
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.25);
    color: white;
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-light);
}

.nav-item i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.nav-item .badge {
    margin-left: auto;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 1.5rem;
}

/* Main Content Area */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    font-weight: 700;
}

.admin-content {
    flex: 1;
    padding: 2rem;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
    height: 35px;              /* pick whatever matches your design */
    min-width: 100px;  
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-view:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-view {
    background: var(--primary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ============================================================================
   BADGES
   ============================================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-primary { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-info { background: rgba(6, 182, 212, 0.1); color: var(--info); }
.badge-secondary { background: rgba(100, 116, 139, 0.1); color: var(--secondary); }

/* Status Badges */
.badge-new { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.badge-reviewing { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-interview { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.badge-accepted { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-rejected { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

/* ============================================================================
   CARDS & PANELS
   ============================================================================ */

.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
}

/* ============================================================================
   DASHBOARD STATS
   ============================================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1.5rem;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card.stat-primary { border-color: var(--primary); }
.stat-card.stat-success { border-color: var(--success); }
.stat-card.stat-warning { border-color: var(--warning); }
.stat-card.stat-info { border-color: var(--info); }
.stat-card.stat-danger { border-color: var(--danger); }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.stat-primary .stat-icon { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.stat-success .stat-icon { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.stat-warning .stat-icon { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.stat-info .stat-icon { background: rgba(6, 182, 212, 0.1); color: var(--info); }
.stat-danger .stat-icon { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

.stat-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.stat-change {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

/* ============================================================================
   TABLES
   ============================================================================ */

.table-container {
    overflow-x: auto;
    margin: -1.5rem;
    padding: 1.5rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table thead {
    background: var(--bg-light);
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: var(--bg-light);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================================================ 
   FORMS
   ============================================================================ */
form {
    text-align: left; /* Ensure all text aligns left */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* left-align labels and inputs */
    width: 100%;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text);
}

.form-label.required::after {
    content: ' *';
    color: var(--danger);
}

/* Inputs */
.form-control, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text);
    background: white;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Textarea specific */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox / Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Help text / error messages */
.form-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}


/* ============================================================================
   MODALS
   ============================================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   FLASH MESSAGES
   ============================================================================ */

.flash-message {
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideDown 0.5s ease;
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.flash-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.flash-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--info);
}

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: 1.25rem;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================================================
   CHARTS (CSS-based)
   ============================================================================ */

.chart-container {
    padding: 1rem 0;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chart-label {
    min-width: 120px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
}

.chart-bar-track {
    flex: 1;
    height: 32px;
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    transition: width 1s ease;
}

/* ============================================================================
   PUBLIC PAGES (Jobs Board)
   ============================================================================ */

.public-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.public-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.public-brand i {
    font-size: 1.75rem;
}

.public-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.public-links a {
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s ease;
}

.public-links a:hover {
    color: var(--primary);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.jobs-section {
    padding: 3rem 0;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.job-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.job-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-meta-item i {
    color: var(--primary);
}

.job-description {
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.job-footer {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Sidebar */
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .mobile-sidebar-toggle {
        display: block;
    }
    
    /* Content */
    .admin-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        margin: -1rem;
        padding: 1rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Public Pages */
    .hero-title {
        font-size: 2rem;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .public-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .modal {
        width: 95%;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .admin-sidebar,
    .admin-topbar,
    .btn,
    .table-actions,
    .modal-overlay {
        display: none !important;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================================================
   CANDIDATES TAB – SCOPED FIXES (no global overrides)
   ============================================================================ */

/* 1) Filters: override global form column layout for this specific form */
form.cand-filters {
  display: flex !important;            /* override global 'form { display:flex }' */
  flex-direction: row !important;      /* override global 'form { flex-direction:column }' */
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}

/* Make fields fit side-by-side, but wrap when narrow */
form.cand-filters > * {
  flex: 0 1 auto;
  min-width: 180px;
}
@media (max-width: 640px) {
  form.cand-filters > * {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* 2) Scoped helpers so we don't alter global components */
.ch-form-center { 
  max-width: 760px; 
  margin: 0 auto; 
  padding: 1rem; 
}
.ch-form-center .form-group { 
  margin-bottom: 1rem; 
}

.ch-table-wrap { 
  overflow-x: auto; 
}

/* 3) Namespaced lightweight modals to avoid clashing with your modal system */
.ch-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  padding: 1rem;
  z-index: 9000;
}
.ch-modal-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 0 auto;
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
  max-width: 800px;
}

/* Optional close button for the new modals */
.ch-modal .modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.35rem;
  color: var(--text-light);
}
.ch-modal .modal-close:hover {
  color: var(--danger);
}
.notif-popup {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 260px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    padding: 1rem;
    z-index: 9999;
}

.notif-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.notif-item:hover {
    background: #f5f5f5;
}

.notif-popup h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}
.card-header .form-label {
  font-weight: 600; 
  color: var(--text-light, #6b7280);
}
.card-title { 
  margin: 0; 
}


 @media (max-width: 576px) {
.card-header .input-group {
flex-wrap: wrap;
}
.card-header .input-group .form-select {
flex: 1 1 100%;
margin-bottom: .5rem;
}
}
/* === Public Footer with Social Icons === */
.public-footer {
  background:#2563eb;/* deep slate/navy */
  color: #e5e7eb;
  padding: 2rem 0;
  margin-top: 3rem;
}
.public-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.public-footer-copy {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}
.public-footer-social {
  display: inline-flex;
  gap: 10px;
}
.public-footer-social .soc {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  color: #e5e7eb;
  background: rgba(255,255,255,.06);
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  text-decoration: none;
  font-size: 1rem;
}
.public-footer-social .soc:hover {
  transform: translateY(-2px);
  color: #fff;
}

/* Brand hover tints */
.public-footer-social .fb:hover { background: #1877f2; border-color: #1877f2; }
.public-footer-social .ig:hover { background: #d6249f; border-color: #d6249f; }
.public-footer-social .li:hover { background: #0a66c2; border-color: #0a66c2; }
.public-footer-social .wa:hover { background: #25d366; border-color: #25d366; }
.public-footer-social .em:hover { background: #2563eb; border-color: #2563eb; }

/* Small screens: center stack */
@media (max-width: 640px) {
  .public-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
/* Prevent wrapping and extra lines in the Actions column */
.actions-cell { 
  white-space: nowrap; 
  vertical-align: middle; 
}

.actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;          /* space between buttons */
  flex-wrap: nowrap;    /* keep them on one line */
}

/* Keep the form inline with no extra space */
.actions-wrap .inline-delete {
  display: inline-flex; /* sit next to the Edit <a> */
  margin: 0;            /* remove default margins */
  padding: 0;
}

.actions-wrap .inline-delete button {
  margin: 0;
}
/* In style.css */
.badge-outline {
  display:inline-flex;align-items:center;gap:.5rem;
  border:1px solid #c7d2fe;color:#3730a3;background:#fff;
  padding:.35rem .65rem;border-radius:999px;font-size:.9rem;
}
.badge-outline a { color:#1f2937; text-decoration:none; }