﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

/*.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}*/

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px !important;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    padding-top: 50px;
    padding-bottom: 10px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}


.support-type {
    font-style: italic;
    color: #3300CC;
}

.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Dark Theme */
.form-control {
    background-color: #e3e3e3;
}

.navbar-lightish {
    background-color: #121212; /* #c7c7c7; */
}

.badge {
    font-size: 100%;
}

.text-on-dark {
    color: white;
}

    .text-on-dark a {
        color: white;
    }

        .text-on-dark a:hover {
            color: #e3e3e3;
        }

body {
    padding-top: 0px;
}

.navbar-nav .nav-link {
    font-size: 1rem;
}

.comment {
    padding-left: 15%;
    padding-right: 15%;
    border: 1px solid #eee;
    margin-bottom: 20px;
    margin-left: 35px;
    margin-right: 10px;
    padding: 10px 20px;
    position: relative;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background: #e3e3e3;
    color: #6b6e80;
    position: relative;
}

.meta {
    color: #000000;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

a {
    color: #4b9fff;
}

    a:hover {
        color: #F39C12;
    }
/* nav-link:hover*/
trix-editor {
    color: #fff;
}

.max-width {
    max-width: 100%;
}

.store-info-container,
.masterdealer-info-container{
    margin: 0 10px;
    padding: 5px;
    background-color: #444444;
    width:100%;
}

.max-width-height {
    height: 100%;
    width: 100%;
}

.center-align {
    text-align: center;
}

.h-90 {
    height: 90% !important;
}

input:disabled {
    background-color: #f0f0f0;
    color: #7a7a7a;
    border: 1px solid #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.master-dealer-container input {
    max-width: 70%;
}

.pagination-controls {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .pagination-controls button {
        padding: 5px 10px;
    }

    .pagination-controls span {
        font-weight: bold;
    }

#overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #212121;
    z-index: 1000;
    top: 0;
    left: 0;
}
.spinner-border{
    margin-top: 20%;
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.permissions {
    margin-left: 25px;
    margin-top: 10px;
}

.role-card {
    background: #444444;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ===== Role Details - Layout (rd- prefix) ===== */

/* Category sidebar */
.rd-category-list {
    height: 480px;
    overflow-y: auto;
    padding: 6px 0;
}

.rd-category-item {
    padding: 11px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin: 2px 6px;
    border-radius: 6px;
}

    .rd-category-item:hover {
        background-color: rgba(75, 159, 255, 0.08);
        color: #4b9fff;
    }

    .rd-category-item.active {
        background-color: rgba(75, 159, 255, 0.1);
        border-left: 3px solid #4b9fff;
        color: #4b9fff;
        font-weight: 700;
    }

.rd-category-count {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    min-width: 46px;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .rd-category-count.has-selected {
        background: #4b9fff;
        color: #fff;
    }

/* Category divider */
.rd-category-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Permissions panel (right side) */
.rd-permissions-panel {
    height: 480px;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.rd-permissions-toolbar {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    flex-shrink: 0;
}

.rd-permissions-toolbar label {
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
    margin-bottom: 0;
    white-space: nowrap;
}

    .rd-permissions-toolbar label:hover {
        background: rgba(255, 255, 255, 0.08);
    }

.rd-search-input {
    width: 200px;
    min-width: 120px;
    margin-left: auto;
    flex-shrink: 1;
}

/* Permissions list */
.rd-permissions-list {
    overflow-y: auto;
    padding: 4px 0;
    flex: 1;
}

    .rd-permissions-list::-webkit-scrollbar {
        width: 8px;
    }

    .rd-permissions-list::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .rd-permissions-list::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 4px;
    }

        .rd-permissions-list::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.45);
        }

/* Category list scrollbar */
.rd-category-list::-webkit-scrollbar {
    width: 8px;
}

.rd-category-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.rd-category-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

    .rd-category-list::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.45);
    }

.rd-permission-item {
    padding: 7px 16px;
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    margin: 1px 6px;
    border-radius: 6px;
    cursor: pointer;
}

    .rd-permission-item:hover {
        background-color: rgba(75, 159, 255, 0.08);
    }

/* Empty state */
.rd-permissions-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 480px;
    opacity: 0.5;
    font-size: 14px;
}

/* Checkbox */
.rd-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 10px;
    width: 100%;
}

    .rd-checkbox input[type="checkbox"] {
        opacity: 0;
        position: absolute;
        cursor: pointer;
        width: 0;
        height: 0;
    }

.rd-checkmark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .rd-checkbox:hover .rd-checkmark {
        border-color: #4b9fff;
    }

    .rd-checkmark.is-checked {
        background: #4b9fff;
        border-color: #4b9fff;
    }

        .rd-checkmark.is-checked::after {
            content: '';
            position: absolute;
            left: 4px;
            top: 0px;
            width: 6px;
            height: 10px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

.rd-permission-name {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

    .rd-permission-name.is-checked {
        color: #4b9fff;
        font-weight: 500;
    }

/* Keep role-multi-select-dropdown for UserEdit pages that still use it */
.role-multi-select-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.role-dropdown-button {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.role-dropdown-content {
    position: absolute;
    background: white;
    border: 2px solid #e1e5e9;
    border-top: none;
    border-radius: 8px;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 250px;
    width: 100%;
}

.role-dropdown-content.show {
    display: block;
}

.role-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
    color: #333;
    font-weight: 500;
}

    .role-dropdown-item:hover {
        background-color: #e3f2fd;
        color: #1976d2;
    }

    .role-dropdown-item span {
        color: inherit;
        font-size: 14px;
    }

    .role-dropdown-item:last-child {
        border-bottom: none;
    }

.selected-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: linear-gradient(135deg, #444444, #222222);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgb(222 225 229 / 20%);
    text-shadow: 0 1px 2px rgb(224 219 219 / 10%);
}

    .role-badge .remove-role {
        margin-left: 8px;
        background: rgba(255,255,255,0.2);
        border: none;
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        transition: background-color 0.2s;
    }

        .role-badge .remove-role:hover {
            background: rgba(255,255,255,0.3);
        }

.role-dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s;
    color: #666;
}

    .role-dropdown-arrow.rotated {
        transform: rotate(180deg);
    }

.non-link {
    color: white !important;
    text-decoration: none !important;
}

/* Copy Store Specific Styles */
.copy-store-page .copy-step {
    color: #3c763d;
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 4px;
}

.copy-store-page .copy-detail {
    color: #31708f;
    background-color: #d9edf7;
    border: 1px solid #bee5eb;
    padding: 6px 10px;
    margin: 1px 0;
    border-radius: 3px;
    font-size: 13px;
}

.copy-store-page .copy-error {
    color: #d9534f;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 4px;
}

/* Copy Store page now uses global toggle styles */

    .copy-store-page .toggle-item:last-child {
        border-bottom: none;
    }

.copy-store-page .toggle-label {
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    flex: 1;
    margin-left: 15px;
}

/* Toggle Switch Styles for Copy Store */
.copy-store-page .toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .copy-store-page .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.copy-store-page .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

    .copy-store-page .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

.copy-store-page input:checked + .slider {
    background-color: #28a745;
}

    .copy-store-page input:checked + .slider:before {
        transform: translateX(26px);
    }

.store-card,
.masterdealer-card {
    border-radius: 10px;
    border: none;
    transition: transform 0.2s;
    margin-bottom: 20px;
}

    .store-card:hover,
    .masterdealer-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
    }

.store-card-header,
.masterdealer-card-header {
    background-color: #6b6d6e;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0 !important;
}

.store-card-body,
.masterdealer-card-body {
    padding: 20px;
}

.store-label,
.masterdealer-label {
    font-weight: 500;
    color: #bdbbbb;
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.store-value,
.masterdealer-value {
    margin-bottom: 12px;
    color: #fff;
}

.store-badge {
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
}

.store-cc-badge{
    width: 100%;
    margin: 5px;
}

.store-section-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.store-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
    margin-right: 8px;
}

.store-contact-card {
    border-left: 4px solid #0d6efd;
    transition: all 0.2s;
}

    .store-contact-card:hover {
        border-left: 4px solid #0b5ed7;
        background-color: #404040;
    }

.store-btn-action {
    min-width: 90px;
}

.store-input-field {
    border-radius: 6px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    width: 100%;
}

    .store-input-field:focus {
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

.store-icon,
.masterdealer-icon {
    margin-right: 8px;
}

.store-contact-badge {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 8px;
}

/* ============================================
   GLOBAL TOGGLE STYLES
   ============================================ */

/* Toggle List Container */
.toggle-list {
    padding: 15px 0;
    list-style: none;
    margin: 0;
}

.toggle-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    list-style: none;
}

.toggle-list li:last-child {
    border-bottom: none;
}

/* Toggle Item (for CopyStore pattern) */
.toggle-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.toggle-item:last-child {
    border-bottom: none;
}

.toggle-label {
    font-weight: 500;
    color: #ffffff;
    margin: 0;
    flex: 1;
    margin-left: 15px;
    cursor: pointer;
}

/* Toggle Switch Styles (for CopyStore slider pattern) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* All toggle switches now use the consistent CopyStore slider pattern */

.login-body {
    background: #222;
    min-height: 80vh;
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background-color: #303030;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    padding: 30px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

    .login-header h2 {
        color: white;
        font-weight: 600;
    }

.btn-login {
    background: linear-gradient(to right, #112bcb, #2575fc);
    border: none;
    border-radius: 5px;
    color: white;
    padding: 12px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
    }

.form-check-input:checked {
    background-color: #2575fc;
    border-color: #2575fc;
}

.forgot-password {
    color: #2575fc;
    text-decoration: none;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

/* Hide when no validation errors */
.login-error-container.validation-summary-valid {
    display: none;
}

/* Show only when there are validation errors */
.login-error-container.validation-summary-errors {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

    .login-error-container.validation-summary-errors ul {
        margin: 0;
        padding-left: 20px;
    }

    .login-error-container.validation-summary-errors li {
        list-style-type: disc;
    }

.login-input-error {
    color: #d9534f;
    display: block;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

    .logo-image:hover {
        transform: scale(1.05);
    }

.home-header {
    background-color: #555454;
    padding: 5px;
    border-radius: 5px;
}
