.hide-phone-number {
    letter-spacing: 0.15em;
}

.btn-text-link {
    border: 0;
    text-decoration: underline;
    font-weight: 700;
}

.no-border-right-rad {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group.send-code-group > .iti--allow-dropdown {
    width: 65%;
}

.input-group.send-code-group > .send-code-btn {
    width: 35%;
}

input.form-control::placeholder {
    color: #d3d3d3;
    opacity: 1;
}

input.form-control::-ms-input-placeholder {
    color:  #d3d3d3;
}

:root[data-bs-theme="moonshinedev"],
:root[data-bs-theme="dark"] {
    input.form-control::placeholder {
        color: var(--bs-gray-700);
        opacity: 1;
    }

    input.form-control::-ms-input-placeholder  {
        color: var(--bs-gray-700);
        opacity: 1;
    }

    input[data-autocompleted] {
        background-color: transparent !important;
    }
}

.v-section-separator {
    border-bottom: solid var(--bs-secondary-bg);
}

:root[data-bs-theme="dark"] input:-webkit-autofill,
:root[data-bs-theme="dark"] input:-webkit-autofill:focus,
:root[data-bs-theme="moonshinedev"] input:-webkit-autofill,
:root[data-bs-theme="moonshinedev"] input:-webkit-autofill:focus {
    transition: background-color 600000s 0s, color 600000s 0s;
}

.sticky-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-color: var(--bs-secondary-bg);
}

.card.login-card {
    max-width: 460px;
    width: 100%;
}

.card.form-card {
    max-width: 550px;
    width: 100%;
}

/* Admin Dashboard Stat Cards */
.admin-stat-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-stat-card.clickable {
    cursor: pointer;
}

.admin-stat-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.admin-stat-primary {
    background-color: #ecf2ff;
    color: #5d87ff;
}

.admin-stat-success {
    background-color: #e6fffa;
    color: #13deb9;
}

.admin-stat-info {
    background-color: #e8f7ff;
    color: #539bff;
}

.admin-stat-danger {
    background-color: #fbf2ef;
    color: #fa896b;
}

.admin-stat-warning {
    background-color: #fef5e5;
    color: #ffae1f;
}

/* Dark mode support for admin cards */
:root[data-bs-theme="moonshinedev"],
:root[data-bs-theme="dark"] {
    .admin-stat-primary {
        background-color: #1d2021;
        color: #5d87ff;
    }

    .admin-stat-success {
        background-color: #004238;
        color: #13deb9;
    }

    .admin-stat-info {
        background-color: #001f33;
        color: #539bff;
    }

    .admin-stat-danger {
        background-color: #3d1410;
        color: #fa896b;
    }

    .admin-stat-warning {
        background-color: #412a02;
        color: #ffae1f;
    }
}

/* Remove max-width restriction for admin pages */
.body-wrapper > .container-fluid {
    max-width: none;
}

/* Notification Dropdown Styles */
.notification-dropdown {
    width: 360px;
    max-height: 500px;
}

.notification-item {
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: rgba(0,0,0,0.05);
}

.notification-item.unread {
    background-color: rgba(93, 135, 255, 0.05);
}

.notification-link {
    color: inherit;
}

.notification-link:hover {
    color: inherit;
}

.notification-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.05);
}

.unread-indicator {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

#notificationBadge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix table hover visibility - prevent white-on-white text */
/* Force proper colors on ALL tables, with and without .table-hover class */
.table tbody tr:hover,
.table-hover tbody tr:hover,
table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075) !important;
}

.table tbody tr:hover td,
.table tbody tr:hover th,
.table-hover tbody tr:hover td,
.table-hover tbody tr:hover th,
table tbody tr:hover td,
table tbody tr:hover th {
    color: var(--bs-body-color) !important;
    background-color: transparent !important;
}

/* Dark theme support for table hover - override Bootstrap completely */
:root[data-bs-theme="moonshinedev"] .table tbody tr:hover,
:root[data-bs-theme="moonshinedev"] .table-hover tbody tr:hover,
:root[data-bs-theme="moonshinedev"] table tbody tr:hover,
:root[data-bs-theme="dark"] .table tbody tr:hover,
:root[data-bs-theme="dark"] .table-hover tbody tr:hover,
:root[data-bs-theme="dark"] table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.075) !important;
}

:root[data-bs-theme="moonshinedev"] .table tbody tr:hover td,
:root[data-bs-theme="moonshinedev"] .table tbody tr:hover th,
:root[data-bs-theme="moonshinedev"] .table-hover tbody tr:hover td,
:root[data-bs-theme="moonshinedev"] .table-hover tbody tr:hover th,
:root[data-bs-theme="moonshinedev"] table tbody tr:hover td,
:root[data-bs-theme="moonshinedev"] table tbody tr:hover th,
:root[data-bs-theme="dark"] .table tbody tr:hover td,
:root[data-bs-theme="dark"] .table tbody tr:hover th,
:root[data-bs-theme="dark"] .table-hover tbody tr:hover td,
:root[data-bs-theme="dark"] .table-hover tbody tr:hover th,
:root[data-bs-theme="dark"] table tbody tr:hover td,
:root[data-bs-theme="dark"] table tbody tr:hover th {
    color: var(--bs-body-color) !important;
    background-color: transparent !important;
}

/* Override any Bootstrap table striped hover conflicts */
.table-striped tbody tr:hover,
.table-hover.table-striped tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

:root[data-bs-theme="moonshinedev"] .table-striped tbody tr:hover,
:root[data-bs-theme="moonshinedev"] .table-hover.table-striped tbody tr:hover,
:root[data-bs-theme="dark"] .table-striped tbody tr:hover,
:root[data-bs-theme="dark"] .table-hover.table-striped tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Ensure modal list-group items are visible in all themes */
.modal .list-group-item {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}

.modal .list-group-item .form-check-label {
    color: var(--bs-body-color);
}

/* Ensure checkboxes are visible */
.modal .form-check-input {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}

/* ================================
 * CONFIG EDITOR STYLES
 * ================================ */

/* Subsection headers in config editor */
.subsection-header {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

.subsection-header:first-child {
    margin-top: 0;
}

.subsection-header .badge {
    font-size: 0.9rem;
}

/* Field group styling */
.field-group {
    margin-bottom: 1.5rem;
}

/* Field group visual separation */
.field-group-container {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    border-left: 3px solid var(--bs-primary);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.25rem;
}

/* Field sizing based on type and content */
.field-group input[type="text"],
.field-group input[type="email"] {
    width: 100%;
    max-width: 400px;
}

.field-group input[type="url"] {
    width: 100%;
    max-width: 100%;
}

.field-group input[type="number"] {
    width: 120px;
}

.field-group select {
    width: 100%;
    max-width: 300px;
}

.field-group .input-group {
    max-width: 100%;
}

.field-group .input-group.api-key-group {
    max-width: 100%;
    flex-wrap: nowrap;
}

.field-group textarea {
    width: 100%;
}

/* Special field types */
.field-group input.api-key-field {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.field-group input.path-field {
    width: 100%;
    max-width: 100%;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.field-group input.sid-field {
    width: 100%;
    max-width: 500px;
    font-family: 'Courier New', monospace;
}

.field-group input.account-id-field {
    width: 150px;
}

/* Modal toggle switches - ensure they match main config styling */
.modal .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.modal .form-check-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* ================================
 * ERROR PAGE STYLES
 * ================================ */

.error-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.error-logo {
    max-height: 80px;
    margin-bottom: 2rem;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: var(--bs-secondary);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.technical-details {
    display: none;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.technical-details.show {
    display: block;
}

.technical-details pre {
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.85rem;
    background: var(--bs-dark);
    padding: 1rem;
    border-radius: 0.5rem;
    color: var(--bs-light);
}

/* Dark theme adjustments for error pages */
:root[data-bs-theme="moonshinedev"] .technical-details pre,
:root[data-bs-theme="dark"] .technical-details pre {
    background: rgba(255, 255, 255, 0.1);
}

/* ================================
 * TERMS OF SERVICE PAGE STYLES
 * ================================ */

.tos-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.tos-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid #dee2e6;
}

.tos-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.tos-content {
    font-size: 14px;
    line-height: 1.6;
}

.tos-content h1 { font-size: 1.75rem; }
.tos-content h2 { font-size: 1.5rem; }
.tos-content h3 { font-size: 1.25rem; }
.tos-content h4 { font-size: 1.1rem; }
.tos-content p { margin-bottom: 1rem; }
.tos-content ul, .tos-content ol { margin-bottom: 1rem; }

.tos-footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 1000;
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 1rem 2rem;
}

/* Dark theme adjustments for ToS pages */
:root[data-bs-theme="moonshinedev"] .tos-header,
:root[data-bs-theme="moonshinedev"] .tos-footer,
:root[data-bs-theme="dark"] .tos-header,
:root[data-bs-theme="dark"] .tos-footer {
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}
