/* 
 * SocialHub - Modern Design System
 * A clean, minimal, and beautiful interface
 */

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
    /* Primary Colors */
    --primary-50: #f0f4ff;
    --primary-100: #e0eaff;
    --primary-200: #c7d7fe;
    --primary-300: #a5b8fc;
    --primary-400: #8692f8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Accent Colors */
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-rose: #f43f5e;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #06b6d4;
    --info-light: #cffafe;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    --font-mono: 'Menlo', 'Monaco', 'Courier New', monospace;
}

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-700);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

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

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: white;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--gray-100);
    color: var(--gray-700);
    border-color: var(--gray-200);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--gray-200);
    color: var(--gray-800);
}

/* Outline Button */
.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-600);
    border-color: var(--primary-300);
}

.btn-outline-primary:hover:not(:disabled) {
    background-color: var(--primary-50);
    border-color: var(--primary-400);
    color: var(--primary-700);
}

/* Success Button */
.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    color: white;
}

/* Info Button */
.btn-info {
    background: var(--info);
    color: white;
}

.btn-info:hover:not(:disabled) {
    background: #0891b2;
    color: white;
}

/* Warning Button */
.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: #d97706;
    color: white;
}

/* Danger Button */
.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    color: white;
}

/* Button Sizes */
.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-xl);
}

.btn-icon {
    padding: 0.625rem;
    width: 2.5rem;
    height: 2.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    transition: all 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-control::placeholder {
    color: var(--gray-400);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
}

.form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--gray-50);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

/* ============================================
   TABLES
   ============================================ */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    padding: 0.875rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

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

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.badge-primary {
    background-color: var(--primary-100);
    color: var(--primary-700);
}

.badge-success {
    background-color: var(--success-light);
    color: #065f46;
}

.badge-warning {
    background-color: var(--warning-light);
    color: #92400e;
}

.badge-danger {
    background-color: var(--danger-light);
    color: #991b1b;
}

.badge-info {
    background-color: var(--info-light);
    color: #155e75;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: var(--success-light);
    border-color: #86efac;
    color: #065f46;
}

.alert-danger,
.alert-error {
    background-color: var(--danger-light);
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background-color: var(--warning-light);
    border-color: #fde68a;
    color: #92400e;
}

.alert-info {
    background-color: var(--info-light);
    border-color: #a5f3fc;
    color: #155e75;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary { color: var(--primary-600) !important; }
.text-secondary { color: var(--gray-600) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--gray-500) !important; }

.bg-primary { background-color: var(--primary-600) !important; }
.bg-secondary { background-color: var(--gray-100) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-info { background-color: var(--info) !important; }

.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-2xl { border-radius: var(--radius-2xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ============================================
   RESPONSIVE UTILITIES & MOBILE OPTIMIZATION
   ============================================ */

/* Touch-Optimized Interactions - All Breakpoints */
.btn,
.form-control,
.form-select,
.dropdown-item,
.page-link,
.nav-link,
button,
a.btn {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.btn-sm {
    min-height: 38px;
}

.btn-lg {
    min-height: 52px;
}

/* Ensure proper spacing between interactive elements */
.btn-group .btn,
.pagination .page-item {
    margin: 0 2px;
}

/* Mobile-First Grid Adjustments */
@media (max-width: 1200px) {
    .container,
    .content-wrapper {
        max-width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 992px) {
    /* Typography Adjustments */
    h1 { font-size: 2.25rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.625rem; }
    h4 { font-size: 1.375rem; }
    
    /* Container Adjustments */
    .container,
    .content-wrapper {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1.25rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.125rem;
    }
    
    /* Tables - Make horizontal scrollable */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
    h6 { font-size: 1rem; }
    
    /* Buttons - Larger for touch */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
        min-height: 48px;
    }
    
    .btn-sm {
        padding: 0.5rem 1rem;
        min-height: 40px;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 1rem 1.75rem;
        font-size: 1.0625rem;
        min-height: 56px;
    }
    
    /* Full-width buttons on mobile */
    .btn-block,
    .mobile-full-width {
        width: 100%;
        display: block;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header,
    .card-footer {
        padding: 0.875rem 1rem;
    }
    
    /* Forms - Larger for better touch targets */
    .form-control,
    .form-select {
        min-height: 48px;
        padding: 0.75rem 1rem;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .form-label {
        font-size: 0.9375rem;
        margin-bottom: 0.625rem;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    /* Form Check (Checkboxes/Radio) */
    .form-check-input {
        width: 1.5rem;
        height: 1.5rem;
        margin-top: 0;
    }
    
    .form-check-label {
        margin-left: 0.75rem;
        font-size: 0.9375rem;
    }
    
    /* Tables - Convert to card layout */
    .mobile-table-cards .table {
        display: block;
    }
    
    .mobile-table-cards thead {
        display: none;
    }
    
    .mobile-table-cards tbody,
    .mobile-table-cards tr {
        display: block;
    }
    
    .mobile-table-cards tr {
        margin-bottom: 1rem;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-lg);
        background: white;
        padding: 1rem;
    }
    
    .mobile-table-cards td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.625rem 0;
        border: none;
    }
    
    .mobile-table-cards td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-600);
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    /* Alerts */
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    /* Badges */
    .badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .page-link {
        min-width: 44px;
        height: 44px;
        font-size: 0.875rem;
    }
    
    /* Dropdowns */
    .dropdown-menu {
        min-width: 100%;
        max-width: calc(100vw - 2rem);
    }
    
    .dropdown-item {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        min-height: 48px;
    }
    
    /* Modal Adjustments */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: var(--radius-xl);
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Utility Classes */
    .mobile-hide {
        display: none !important;
    }
    
    .mobile-show {
        display: block !important;
    }
    
    .mobile-text-center {
        text-align: center !important;
    }
    
    /* Spacing Adjustments */
    .g-4 {
        gap: 1rem !important;
    }
    
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.9375rem;
    }
    
    /* Typography - Even smaller for phones */
    h1 { font-size: 1.625rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9375rem; }
    
    /* Container */
    .container,
    .content-wrapper {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        border-radius: var(--radius-lg) !important;
        margin-bottom: 0.5rem;
    }
    
    /* Cards */
    .card {
        border-radius: var(--radius-lg);
    }
    
    .card-body {
        padding: 0.875rem;
    }
    
    .card-header,
    .card-footer {
        padding: 0.75rem 0.875rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 0.875rem 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group > * {
        width: 100%;
        border-radius: var(--radius-lg) !important;
    }
    
    .input-group > *:not(:last-child) {
        margin-bottom: 0.5rem;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Grid - Single column on mobile */
    .row > .col,
    .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Spacing */
    .g-4 {
        gap: 0.75rem !important;
    }
    
    .mb-4, .my-4 {
        margin-bottom: 1rem !important;
    }
    
    .mt-4, .my-4 {
        margin-top: 1rem !important;
    }
    
    .p-4 {
        padding: 0.875rem !important;
    }
}

/* ============================================
   MOBILE-SPECIFIC UTILITIES
   ============================================ */

/* Safe Area Insets (for notched phones) */
@supports (padding: max(0px)) {
    .safe-area-bottom {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    .safe-area-top {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
}

/* Mobile-optimized scrolling */
.mobile-scroll-container {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
}

/* Hide scrollbar but keep functionality */
.mobile-scroll-container::-webkit-scrollbar {
    display: none;
}

.mobile-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Touch-friendly list items */
.mobile-list-item {
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    transition: background-color 0.15s ease;
}

.mobile-list-item:active {
    background-color: var(--gray-50);
}

/* Mobile FAB (Floating Action Button) */
@media (max-width: 768px) {
    .mobile-fab {
        position: fixed;
        bottom: calc(64px + 1rem);
        right: 1rem;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 900;
    }
}

/* Mobile sticky header */
.mobile-sticky-header {
    position: sticky;
    top: 60px;
    background: white;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Mobile-optimized images */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .img-fluid {
        width: 100%;
    }
}

/* Prevent zoom on input focus (iOS) */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Mobile horizontal scroll indicator */
.mobile-scroll-indicator {
    position: relative;
}

.mobile-scroll-indicator::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2rem;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* ============================================
   DROPDOWN
   ============================================ */
.dropdown-menu {
    min-width: 12rem;
    padding: 0.5rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--gray-900);
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--gray-200);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    background-color: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    transition: all 0.15s ease;
}

.page-link:hover {
    background-color: var(--gray-50);
    border-color: var(--primary-400);
    color: var(--primary-600);
}

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

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 1rem;
    list-style: none;
}

.breadcrumb-item {
    font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
    color: var(--gray-400);
}

.breadcrumb-item a {
    color: var(--gray-600);
}

.breadcrumb-item a:hover {
    color: var(--primary-600);
}

.breadcrumb-item.active {
    color: var(--gray-900);
    font-weight: 600;
}

/* ============================================
   TRANSITIONS
   ============================================ */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth transitions for interactive elements */
button,
a,
input,
select,
textarea,
.btn,
.card,
.table tbody tr {
    transition-duration: 200ms;
}
