.gradient-text {
    background: linear-gradient(to right, #10b981, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-subtitle {
    background: linear-gradient(to right, #C22B66, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom hamburger menu button - Bootstrap doesn't have an unstyled toggle */
.navbar-toggler-custom {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler-custom:focus,
.navbar-toggler-custom:active {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-custom:hover .hamburger-icon {
    opacity: 1;
}

.hamburger-icon {
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0.7;
    transition: opacity 0.15s ease-in-out;
}

/* Hide scrollbar while keeping scroll functionality */
.scroll-no-bar {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-no-bar::-webkit-scrollbar {
    display: none;
}

/* Market asset rows on the market show page */
.market-asset-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.market-asset-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 1rem;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.market-asset-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.market-asset-symbol-wrapped {
    display: none;
}

.market-asset-row.is-wrapped {
    flex-wrap: wrap;
    align-items: flex-end;
}

.market-asset-row.is-wrapped .market-asset-main,
.market-asset-row.is-wrapped .market-asset-side {
    width: 100%;
    justify-content: flex-end;
    text-align: right;
}

.market-asset-row.is-wrapped .market-asset-symbol-wrapped {
    display: block;
    margin-right: 1rem;
}

.market-asset-row.is-wrapped .market-asset-symbol-inline {
    display: none;
}

/* Dark mode customizations */
[data-bs-theme="dark"] {
    --bs-body-color: #adb5bd;
}

[data-bs-theme="dark"] .table {
    --bs-table-color: #adb5bd;
    --bs-table-striped-color: #adb5bd;
    --bs-table-active-color: #adb5bd;
    --bs-table-hover-color: #adb5bd;
}

[data-bs-theme="dark"] .card {
    --bs-card-bg: #2a2d31;
    background-color: var(--bs-card-bg);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Market status colors - Light theme */
.market-status-closed-header {
    background-color: rgba(219, 234, 254, 1);
}

.market-status-closed-footer {
    background-color: rgba(219, 234, 254, 0.75);
}

.market-status-closed-body {
    background-color: rgba(239, 246, 255, 1);
}

.market-status-resolved-header {
    background-color: rgba(220, 252, 230, 1);
}

.market-status-resolved-footer {
    background-color: rgba(220, 252, 230, 0.75);
}

.market-status-resolved-body {
    background-color: rgba(240, 253, 244, 1);
}

.market-status-resolved-asset {
    background-color: rgba(210, 252, 220, 1);
}

.market-status-refunded-header {
    background-color: rgba(254, 226, 226, 1);
}

.market-status-refunded-footer {
    background-color: rgba(254, 226, 226, 0.75);
}

.market-status-refunded-body {
    background-color: rgba(254, 242, 242, 1);
}

/* Market status colors - Dark theme */
[data-bs-theme="dark"] .market-status-closed-header {
    background-color: rgba(94, 158, 255, 0.14);
}

[data-bs-theme="dark"] .market-status-closed-footer {
    background-color: rgba(94, 158, 255, 0.10);
}

[data-bs-theme="dark"] .market-status-closed-body {
    background-color: rgba(94, 158, 255, 0.06);
}

[data-bs-theme="dark"] .market-status-resolved-header {
    background-color: rgba(74, 222, 128, 0.14);
}

[data-bs-theme="dark"] .market-status-resolved-footer {
    background-color: rgba(74, 222, 128, 0.10);
}

[data-bs-theme="dark"] .market-status-resolved-body {
    background-color: rgba(74, 222, 128, 0.06);
}

[data-bs-theme="dark"] .market-status-resolved-asset {
    background-color: rgba(74, 222, 128, 0.18);
}

[data-bs-theme="dark"] .market-status-refunded-header {
    background-color: rgba(248, 113, 113, 0.14);
}

[data-bs-theme="dark"] .market-status-refunded-footer {
    background-color: rgba(248, 113, 113, 0.10);
}

[data-bs-theme="dark"] .market-status-refunded-body {
    background-color: rgba(248, 113, 113, 0.06);
}

/* Trade form info grid */
.trade-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
    padding: 0.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-weight: 500;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.info-transition {
    color: var(--bs-secondary-color);
}

/* Remove focus outline from trade form inputs */
#buy-form input[type="number"]:focus,
#sell-form input[type="number"]:focus,
[id^="buy-form-"] input[type="number"]:focus,
[id^="sell-form-"] input[type="number"]:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--bs-border-color);
}

/* Back button styling */
.back-button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    color: #6c757d;
}

.back-button:hover {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
    transform: translateX(-2px);
}

.back-button:active {
    transform: translateX(-2px) scale(0.95);
}

[data-bs-theme="dark"] .back-button {
    background-color: #2a2d31;
    border-color: rgba(255, 255, 255, 0.15);
    color: #adb5bd;
}

[data-bs-theme="dark"] .back-button:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #dee2e6;
}

/* Utility classes */
.prevent-select {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Sidebar nav active state - subtle but visible highlight */
.dashboard-sidebar-title {
    margin-bottom: 0.75rem;
    padding-top: 0;
}

.dashboard-sidebar .nav-link {
    border-radius: 0.375rem;
    margin-bottom: 0.125rem;
    color: var(--bs-body-color);
    display: flex;
    align-items: center;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.dashboard-sidebar .nav-link.active {
    background-color: rgba(13, 110, 253, 0.12);
    color: var(--bs-body-color);
    font-weight: 500;
}

[data-bs-theme="dark"] .dashboard-sidebar .nav-link.active {
    background-color: rgba(13, 110, 253, 0.2);
}

.dashboard-sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 1.1em;
    text-align: center;
}

/* Dashboard layout */
.dashboard-sidebar {
    box-sizing: border-box;
    padding-right: 0.75rem;
    width: 180px;
    flex: 0 0 180px;
}

.dashboard-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 767.98px) {
    .dashboard-content {
        margin-left: 0 !important;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 768px) {
    .dashboard-content {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Dashboard markets status tabs */
.dashboard-tabs {
    border-bottom: none;
}

.dashboard-tabs .nav-link {
    color: var(--bs-body-color);
    border-radius: 0.375rem;
    margin-bottom: 0.125rem;
    border: none;
    background: transparent;
}

.dashboard-tabs .nav-link.active {
    background-color: rgba(13, 110, 253, 0.12);
    color: var(--bs-body-color);
    font-weight: 500;
}

[data-bs-theme="dark"] .dashboard-tabs .nav-link.active {
    background-color: rgba(13, 110, 253, 0.2);
}

/* Navbar search input */
.navbar-search {
    max-width: 400px;
    width: 400px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-search .form-control {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
}

.navbar-search .form-control:focus {
    border: 1px solid var(--bs-primary);
    border-radius: 0.375rem;
    outline: none;
    box-shadow: none;
}

/* Public footer */
.site-footer {
    background: rgba(15, 23, 42, 0.03);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.site-footer-inner {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.site-footer-brand {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: -0.65rem;
}

.site-footer-link {
    color: var(--bs-secondary-color);
    font-size: 0.85rem;
    text-decoration: none;
}

.site-footer-link:hover {
    color: var(--bs-secondary-color);
    text-decoration: underline;
}

[data-bs-theme="dark"] .content-page-card {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .site-footer {
    background: rgba(255, 255, 255, 0.03);
    border-top-color: rgba(255, 255, 255, 0.08);
}
