/* ============================================================
   NSVAIR Alumni Portal - Reusable Components
   Buttons, Cards, Forms, Tables, Modals, Navigation
   ============================================================ */

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-decoration: none;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn i {
    font-size: 1em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.45);
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
}

/* Secondary Button */
.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--blue-500);
    transform: translateY(-1px);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--blue-500);
}

/* Danger Button */
.btn-danger {
    background: var(--gradient-danger);
    color: var(--text-inverse);
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Success Button */
.btn-success {
    background: var(--gradient-success);
    color: var(--text-inverse);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Button Sizes */
.btn-sm {
    padding: 8px 18px;
    font-size: var(--text-xs);
}

.btn-lg {
    padding: 16px 36px;
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

.btn-icon {
    padding: 10px;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
}

.btn-icon i {
    font-size: var(--text-lg);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-md);
}

/* Glass Card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: var(--shadow-glow);
}

/* Stat Card */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.2);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.stat-card .stat-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-400);
}

.stat-card .stat-icon.green {
    background: var(--success-bg);
    color: var(--success);
}

.stat-card .stat-icon.orange {
    background: var(--warning-bg);
    color: var(--warning);
}

.stat-card .stat-icon.red {
    background: var(--error-bg);
    color: var(--error);
}

.stat-card .stat-icon.cyan {
    background: var(--info-bg);
    color: var(--info);
}

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-card .stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-card .stat-change {
    font-size: var(--text-xs);
    margin-top: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.stat-card .stat-change.positive {
    color: var(--success);
}

.stat-card .stat-change.negative {
    color: var(--error);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    letter-spacing: 0.02em;
}

.input-field {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    outline: none;
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-field:focus {
    border-color: var(--blue-500);
    box-shadow: var(--shadow-focus);
    background: var(--bg-surface);
}

.input-field:hover:not(:focus) {
    border-color: rgba(148, 163, 184, 0.25);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.input-with-icon .input-field {
    padding-left: 44px;
}

.input-with-icon:focus-within i {
    color: var(--blue-400);
}

textarea.input-field {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

select.input-field {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.937 10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 14px) center;
    padding-right: 36px;
}

.form-error {
    font-size: var(--text-xs);
    color: var(--error);
    margin-top: var(--space-1);
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

/* ============================================================
   DATA TABLES
   ============================================================ */
.data-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-tertiary);
}

.data-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 18px;
    font-size: var(--text-sm);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   TAGS & BADGES
   ============================================================ */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.tag-success {
    background: var(--success-bg);
    color: var(--success);
}

.tag-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.tag-danger {
    background: var(--error-bg);
    color: var(--error);
}

.tag-info {
    background: var(--info-bg);
    color: var(--info);
}

.tag-neutral {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-secondary);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-inverse);
    background: var(--gradient-danger);
    border-radius: var(--radius-full);
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar .progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    animation: fadeIn 0.2s ease;
    padding: var(--space-4);
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--text-lg);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-6);
    border-top: 1px solid var(--border-color);
}

/* ============================================================
   SIDEBAR & NAVIGATION
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-glass-heavy);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: var(--z-fixed);
    transition: transform var(--transition-slow);
}

.sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.sidebar-brand {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-brand small {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-weight: 400;
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--space-4) var(--space-3) var(--space-2);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 11px var(--space-4);
    margin-bottom: 2px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: var(--text-base);
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.14);
    color: var(--blue-400);
    font-weight: 600;
}

.nav-item.active i {
    color: var(--blue-400);
}

.nav-item .nav-badge {
    margin-left: auto;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-color);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.sidebar-user:hover {
    background: var(--bg-surface);
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-inverse);
    font-size: var(--text-sm);
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* ============================================================
   TOP HEADER
   ============================================================ */
.top-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: var(--bg-glass-heavy);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-8);
    z-index: var(--z-sticky);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header-left h2 {
    font-size: var(--text-xl);
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-search {
    position: relative;
}

.header-search .input-field {
    width: 280px;
    padding: 10px 16px 10px 40px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    background: var(--bg-surface);
}

.header-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.hamburger-btn {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--text-xl);
    cursor: pointer;
    border-radius: var(--radius-md);
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
    min-height: 100vh;
}

.page-content {
    padding: var(--space-8);
}

/* ============================================================
   DASHBOARD GRID
   ============================================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.dashboard-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.dashboard-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

/* ============================================================
   ACTIVITY ITEMS
   ============================================================ */
.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.activity-icon.blue {
    background: rgba(59, 130, 246, 0.12);
    color: var(--blue-400);
}

.activity-icon.green {
    background: var(--success-bg);
    color: var(--success);
}

.activity-icon.orange {
    background: var(--warning-bg);
    color: var(--warning);
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.activity-desc {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: 2px;
}

.activity-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
    white-space: nowrap;
    margin-top: 4px;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.35s ease forwards;
    max-width: 400px;
    min-width: 300px;
}

.toast-icon {
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.toast-message {
    font-size: var(--text-sm);
    color: var(--text-primary);
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: var(--text-sm);
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error {
    border-left: 3px solid var(--error);
}

.toast.error .toast-icon {
    color: var(--error);
}

.toast.warning {
    border-left: 3px solid var(--warning);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast.info {
    border-left: 3px solid var(--info);
}

.toast.info .toast-icon {
    color: var(--info);
}

/* ============================================================
   DROPDOWN
   ============================================================ */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    animation: fadeIn 0.2s ease;
    overflow: hidden;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px 16px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    font-size: var(--text-sm);
    flex-shrink: 0;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: var(--text-xl);
}

.avatar-xl {
    width: 80px;
    height: 80px;
    font-size: var(--text-3xl);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-8);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.empty-state h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.empty-state p {
    color: var(--text-tertiary);
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    gap: var(--space-4);
}

.loading-overlay .loading-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--text-secondary);
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.section-header h3 {
    font-size: var(--text-xl);
}

.section-header .section-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 3px;
    margin-bottom: var(--space-6);
}

.tab-item {
    padding: 10px 20px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex: 1;
    text-align: center;
}

.tab-item:hover {
    color: var(--text-primary);
}

.tab-item.active {
    background: var(--bg-surface);
    color: var(--blue-400);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   BOOTSTRAP-LIKE GRID SYSTEM
   Used by Directory, Business Directory, Profile modals
   ============================================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.row>[class*="col"] {
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

/* Base columns (mobile first: full width) */
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

/* SM columns (≥576px) */
@media (min-width: 576px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-sm-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* MD columns (≥768px) */
@media (min-width: 768px) {
    .col-md-2 {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }

    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-md-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-md-5 {
        flex: 0 0 41.666%;
        max-width: 41.666%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-8 {
        flex: 0 0 66.666%;
        max-width: 66.666%;
    }

    .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .mb-md-0 {
        margin-bottom: 0 !important;
    }
}

/* LG columns (≥992px) */
@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-lg-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-8 {
        flex: 0 0 66.666%;
        max-width: 66.666%;
    }
}

/* XL columns (≥1200px) */
@media (min-width: 1200px) {
    .col-xl-2 {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }

    .col-xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-xl-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* ============================================================
   MENTORSHIP GRID
   ============================================================ */
.mentorship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

.mentorship-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mentorship-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   BOOTSTRAP-LIKE UTILITY CLASSES
   ============================================================ */
/* Display */
.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-none {
    display: none;
}

.d-inline-block {
    display: inline-block;
}

.d-grid {
    display: grid;
}

/* Flexbox */
.flex-between,
.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.align-items-end {
    align-items: flex-end;
}

.align-items-start {
    align-items: flex-start;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1,
.flex-fill {
    flex: 1;
}

/* Text */
.text-center {
    text-align: center;
}

.text-right,
.text-md-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-muted {
    color: var(--text-tertiary);
}

.text-primary {
    color: var(--blue-400);
}

.text-danger {
    color: var(--error);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-white {
    color: #fff !important;
}

.text-sm {
    font-size: var(--text-sm);
}

.text-xs {
    font-size: var(--text-xs);
}

/* Font */
.font-weight-bold {
    font-weight: 700;
}

.font-weight-500 {
    font-weight: 500;
}

/* Spacing: margin */
.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-auto {
    margin-top: auto;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 1rem;
}

.mr-4 {
    margin-right: 1.5rem;
}

/* Spacing: padding */
.p-0 {
    padding: 0;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 3rem;
}

.pb-0 {
    padding-bottom: 0;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.pb-3 {
    padding-bottom: 1rem;
}

.pt-0 {
    padding-top: 0;
}

.pt-3 {
    padding-top: 1rem;
}

.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Width / Height */
.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

/* Border / Rounded */
.border {
    border: 1px solid var(--border-color);
}

.border-top {
    border-top: 1px solid var(--border-color);
}

.border-bottom {
    border-bottom: 1px solid var(--border-color);
}

.border-0 {
    border: 0 !important;
}

.rounded {
    border-radius: var(--radius-md);
}

.rounded-circle {
    border-radius: 50%;
}

/* Shadow */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Position */
.position-absolute {
    position: absolute;
}

.position-relative {
    position: relative;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Gap */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

/* Flex actions row */
.flex-actions {
    display: flex;
    gap: 0.5rem;
}

/* Hover-lift */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   FORM CONTROLS (BOOTSTRAP-LIKE)
   Used by Directory filter, Business Directory search/filter
   ============================================================ */
.form-control {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--blue-500);
    box-shadow: var(--shadow-focus);
    background: var(--bg-surface);
}

.form-control-lg {
    padding: 14px 18px;
    font-size: var(--text-base);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: var(--blue-500);
    cursor: pointer;
}

.form-check-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
}

/* Input Group */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .input-group-text {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-right: 0;
}

.input-group .form-control {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ============================================================
   BADGES (EXTENDED)
   ============================================================ */
.badge-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.badge-success,
.badge.badge-success {
    background: var(--gradient-success);
    color: #fff;
}

.badge-warning,
.badge.badge-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.badge-danger,
.badge.badge-danger {
    background: var(--gradient-danger);
    color: #fff;
}

.badge-pill {
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 11px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
}

.page-item {
    display: inline-flex;
}

.page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.page-link:hover {
    background: var(--bg-tertiary);
    color: var(--blue-400);
    border-color: var(--blue-400);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    line-height: 1.5;
    border: 1px solid;
}

.alert-info {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--blue-400);
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

/* ============================================================
   GLASS PANEL
   ============================================================ */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

/* ============================================================
   MODAL (BOOTSTRAP-LIKE EXTENSIONS)
   ============================================================ */
.modal.overlay,
.modal.overlay.show {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    width: 100%;
    max-width: 540px;
    margin: 1rem;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 2rem);
}

.modal-lg {
    max-width: 800px;
}

.modal .modal-content {
    max-width: 100%;
    width: 100%;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-close:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* ============================================================
   EMPTY STATE ICON
   ============================================================ */
.empty-state-icon {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.animate-fade-up {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease forwards;
}

/* Staggered fade-in for grid items */
.animate-fade-up:nth-child(1) {
    animation-delay: 0.05s;
}

.animate-fade-up:nth-child(2) {
    animation-delay: 0.1s;
}

.animate-fade-up:nth-child(3) {
    animation-delay: 0.15s;
}

.animate-fade-up:nth-child(4) {
    animation-delay: 0.2s;
}

.animate-fade-up:nth-child(5) {
    animation-delay: 0.25s;
}

.animate-fade-up:nth-child(6) {
    animation-delay: 0.3s;
}

.animate-fade-in:nth-child(1) {
    animation-delay: 0.05s;
}

.animate-fade-in:nth-child(2) {
    animation-delay: 0.1s;
}

.animate-fade-in:nth-child(3) {
    animation-delay: 0.15s;
}

.animate-fade-in:nth-child(4) {
    animation-delay: 0.2s;
}

/* Background helpers */
.bg-light {
    background: var(--bg-tertiary);
}

.bg-transparent {
    background: transparent !important;
}

/* Outline button variant */
.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--blue-400);
    color: var(--blue-400);
}

/* ============================================================
   PAGE HEADER TEXT
   ============================================================ */
.page-header-text h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.page-header-text p {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    margin: 0;
}