/*
 * PROBEBAYA - Facebook-Style Stylesheet
 * Teal/Cyan Brand Theme (matching logo.png)
 * v3.0.0 - Facebook Mobile Design
 */

/* CSS Variables - Facebook Style with Teal Brand */
/* CSS Variables - Facebook Style with Teal Brand */
:root {
    /* Primary Colors - Teal Brand (matching logo.png) */
    --primary: #00a8cc;
    --primary-dark: #008ba8;
    --primary-light: #33c4e0;
    --primary-glow: rgba(0, 168, 204, 0.25);

    /* Secondary - Darker shade for gradients */
    --secondary: #007a99;
    --secondary-dark: #005c73;

    /* Background Colors - Facebook Style */
    --background: #f0f2f5;
    --background-white: #ffffff;
    --background-hover: #f2f2f2;

    /* Status Colors - Facebook Standard */
    --success: #31a24c;
    --success-light: #42b72a;
    --warning: #f7b928;
    --warning-light: #ffcc00;
    --danger: #f02849;
    --danger-light: #ff5c5c;
    --info: #1877f2;
    --info-light: #4599ff;

    /* Text Colors - Facebook Style */
    --text-primary: #050505;
    --text-secondary: #65676b;
    --text-muted: #8a8d91;
    --text-link: var(--primary);

    /* Border & Divider */
    --border-color: #dddfe2;
    --divider: #ced0d4;

    /* Card & Surface */
    --card-bg: #ffffff;
    --surface: #e4e6eb;

    /* Shadows - Facebook Style */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.15);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;

    /* Border Radius - Facebook uses subtle rounding */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.1s ease;
    --transition-normal: 0.2s ease;

    /* Layout */
    --header-height: 56px;
    --nav-height: 56px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Custom Font */
@font-face {
    font-family: 'modern-deco';
    src: url('../fonts/modern-deco.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.34;
    -webkit-font-smoothing: antialiased;
    /* Disable text selection globally for app-like experience */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Tighter Card Spacing */
.card {
    margin-bottom: 8px !important;
}

/* Thinner Borders for Profile & Verification */
.avatar {
    border: 1px solid var(--border-color);
}

.verification-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    /* Icon size slightly larger than container to fill it */
    color: #1877f2 !important;
    /* Verified Blue */
    border: 2px solid #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    z-index: 10;
    overflow: hidden;
    /* Ensure icon stays inside if needed */
}

/* Thinner Checkbox/Radio Borders */
.form-check-input {
    border-width: 1px;
}

/* Use custom font for Logo & App Name only */
.header-title h1,
.login-title,
.splash-title {
    font-family: 'modern-deco', sans-serif;
    letter-spacing: 1px;
    font-weight: 800;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
    /* Subtle bold effect */
}

/* Allow text selection for input fields and textareas */
input,
textarea,
.form-control,
[contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Disable text selection for headings and UI titles (App-like feel) */
h1,
h2,
h3,
h4,
h5,
h6,
.header-title,
.card-title,
.list-item-title,
.nav-label,
.badge {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* App Container */
.app-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--header-height) + var(--safe-top));
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}

/* ==================== HEADER - White Background Style ==================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--header-height) + var(--safe-top));
    padding-top: var(--safe-top);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    display: flex;
    align-items: center;
    padding-inline: var(--spacing-md);
    transition: transform var(--transition-normal);
}

.app-header.header-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-logo {
    height: 36px;
    width: auto;
}

.header-title h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), color var(--transition-fast);
    position: relative;
}

.header-btn:hover {
    background: var(--primary);
    color: white;
}

.header-btn:active {
    transform: scale(0.95);
}

.header-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid var(--card-bg);
}

/* ==================== BOTTOM NAV - Facebook Style ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    display: flex;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
    transition: width var(--transition-normal);
}

.nav-item:hover {
    color: var(--primary);
    background: var(--background-hover);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::before {
    width: 100%;
}

.nav-icon {
    font-size: 1.4rem;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 500;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    padding: var(--spacing-md);
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
}

/* ==================== CARDS - Facebook Post Style ==================== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: var(--spacing-md);
}

.card-footer {
    padding: var(--spacing-sm) var(--spacing-md);
    border-top: 1px solid var(--border-color);
    background: var(--background);
}

/* ==================== STATS GRID - Facebook Insights Style ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: box-shadow var(--transition-normal);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-sm);
    background: var(--background);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ==================== BUTTONS - Facebook Style ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-md);
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--divider);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--background-hover);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    height: 48px;
    font-size: 1.0625rem;
    padding: 0 var(--spacing-xl);
}

.btn-sm {
    height: 28px;
    font-size: 0.8125rem;
    padding: 0 var(--spacing-sm);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== FORMS - Facebook Style ==================== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 0 var(--spacing-md);
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    height: auto;
    min-height: 100px;
    padding: var(--spacing-md);
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2365676b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

.form-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: var(--spacing-xs);
}

/* Input Group */
.input-group {
    position: relative;
}

.input-group .input-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.input-group .form-control {
    padding-left: 44px;
}

.input-group .input-action {
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--spacing-xs);
}

/* ==================== BADGES - Facebook Style ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: rgba(255, 102, 0, 0.1);
    color: var(--primary);
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-warning {
    background: rgba(247, 185, 40, 0.1);
    color: #b28704;
}

.badge-danger {
    background: rgba(240, 40, 73, 0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(24, 119, 242, 0.1);
    color: var(--info);
}

.badge-secondary {
    background: var(--surface);
    color: var(--text-secondary);
}

/* ==================== ALERTS - Facebook Style ==================== */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: 0.9375rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning);
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-info {
    background: #cce5ff;
    color: #004085;
    border-left: 4px solid var(--info);
}

/* ==================== TABLES - Facebook Style ==================== */
.table-container {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--background);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover td {
    background: var(--background-hover);
}

/* ==================== LIST ITEMS - Facebook Style ==================== */
.list-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: var(--background-hover);
}

.list-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    flex-shrink: 0;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-weight: 600;
    color: var(--text-primary);
}

.list-item-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== MODALS - Facebook Style ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--divider);
}

.modal-body {
    padding: var(--spacing-md);
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

/* ==================== AVATARS ==================== */
.avatar {
    border-radius: var(--radius-full);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 40px;
    height: 40px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 96px;
    height: 96px;
}

/* ==================== LOGIN STYLES ==================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background: var(--background);
}

.login-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.login-logo {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.login-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary);
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==================== UTILITIES ==================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.d-none {
    display: none;
}

.flex-column {
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 {
    gap: var(--spacing-xs);
}

.gap-2 {
    gap: var(--spacing-sm);
}

.gap-3 {
    gap: var(--spacing-md);
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.p-1 {
    padding: var(--spacing-xs);
}

.p-2 {
    padding: var(--spacing-sm);
}

.p-3 {
    padding: var(--spacing-md);
}

.w-100 {
    width: 100%;
}

.rounded {
    border-radius: var(--radius-md);
}

.rounded-full {
    border-radius: var(--radius-full);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease forwards;
}

/* ==================== RESPONSIVENESS ==================== */
@media (min-width: 768px) {
    .main-content {
        max-width: 800px;
    }
}

@media (min-width: 1024px) {
    .main-content {
        max-width: 900px;
    }

    .login-card {
        padding: 40px;
    }
}

/* ==================== CHART CONTAINER ==================== */
.chart-container {
    position: relative;
    height: 200px;
    width: 100%;
}

/* ==================== PERMISSION OVERLAY ==================== */
.permission-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.permission-modal {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.permission-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.permission-list {
    margin: var(--spacing-lg) 0;
    text-align: left;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--background);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

.permission-icon-small {
    font-size: 1.5rem;
}

.permission-item>div {
    flex: 1;
}

.permission-item strong {
    display: block;
    color: var(--text-primary);
}

.permission-item small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.permission-status {
    font-size: 1.25rem;
}

/* Row layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--spacing-sm) * -1);
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 var(--spacing-sm);
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* ==================== TABS - Facebook Style ==================== */
.tabs {
    display: flex;
    gap: 0;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
    min-width: fit-content;
    cursor: pointer;
}

.tab:hover {
    color: var(--primary);
    background: var(--background-hover);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* Tabs Alternate - Pill Style */
.tabs-pill {
    display: flex;
    gap: var(--spacing-xs);
    background: var(--surface);
    padding: var(--spacing-xs);
    border-radius: var(--radius-full);
    overflow-x: auto;
}

.tabs-pill .tab {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    border-bottom: none;
    font-size: 0.875rem;
}

.tabs-pill .tab.active {
    background: var(--primary);
    color: white;
}

.tabs-pill .tab:hover:not(.active) {
    background: var(--background-hover);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
    opacity: 0.5;
    background: var(--surface);
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.empty-state-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 300px;
}

/* ==================== FLOATING ACTION BUTTON (FAB) ==================== */
.fab {
    position: fixed;
    bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    z-index: 900;
    transition: transform var(--transition-normal), background var(--transition-fast);
}

.fab:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.fab:active {
    transform: scale(0.95);
}

@media (min-width: 768px) {
    .fab {
        right: calc(50% - 400px + 20px);
        bottom: 40px;
    }
}

/* ==================== LOGIN FULLSCREEN (MOBILE) ==================== */
@media (max-width: 767px) {
    .login-container {
        padding: 0 !important;
        align-items: flex-start !important;
        /* Start from top */
    }

    .login-card {
        border-radius: 0 !important;
        min-height: 100vh;
        box-shadow: none !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: var(--spacing-xl) !important;
    }

    /* Sticky Header on Mobile */
    .app-header {
        position: sticky;
        top: 0;
    }

    .app-container {
        padding-top: var(--safe-top);
    }
}

```