/* Custom Variables and Global Typography */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Theme Light Variables */
    --bg-primary: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.85);

    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-inverse: #f8fafc;

    /* Sidebar colors - Light theme (light bg, dark text) */
    --sidebar-text: #475569;
    --sidebar-text-muted: #94a3b8;
    --sidebar-text-hover: #0f172a;
    --sidebar-hover-bg: rgba(79, 70, 229, 0.06);
    --sidebar-brand-color: #0f172a;

    --border-color: #e2e8f0;
    --sidebar-border: #e2e8f0;

    /* Accent Colors */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-rgb: 79, 70, 229;

    --secondary: #64748b;
    --secondary-hover: #475569;

    --success: #10b981;
    --success-rgb: 16, 185, 129;

    --danger: #ef4444;
    --danger-rgb: 239, 68, 68;

    --warning: #f59e0b;
    --info: #06b6d4;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);

    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1.25rem;

    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --navbar-height: 70px;
}

[data-theme="dark"] {
    --bg-primary: #0b0f19;
    --bg-card: #151c2c;
    --bg-sidebar: #0f1322;
    --bg-navbar: rgba(21, 28, 44, 0.85);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-light: #64748b;
    --text-inverse: #0f172a;

    /* Sidebar colors - Dark theme (dark bg, light text) */
    --sidebar-text: #94a3b8;
    --sidebar-text-muted: #475569;
    --sidebar-text-hover: #ffffff;
    --sidebar-hover-bg: rgba(255, 255, 255, 0.04);
    --sidebar-brand-color: #ffffff;

    --border-color: #1e293b;
    --sidebar-border: rgba(255, 255, 255, 0.05);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
    --bs-text-opacity: 1 !important;
}

[data-theme="dark"] .text-secondary {
    color: var(--text-secondary) !important;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

/* Premium Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Social Media Page Styles */
.social_image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
}

/* Dropdown Item Styling overrides for theme compatibility */
.dropdown-item {
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--text-primary);
    background-color: rgba(79, 70, 229, 0.08);
}

.dropdown-item.text-danger {
    color: var(--danger) !important;
}

.dropdown-item.text-danger:hover,
.dropdown-item.text-danger:focus {
    color: var(--danger) !important;
    background-color: rgba(239, 68, 68, 0.08);
}