/* Apply font to everything */
* {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    /* font-variation-settings: "wdth" 100; */
}

body {
    background-color: #ffffff;
}

:root {
    /* --pcolor: #8b5e4c !important; */
    --pcolor: #456083 !important;
    --left-border: #8b694c !important;
    --left-border-red: #dc3545 !important;
    --left-border-green: green !important;
    --left-border-blue: #5f9ea0 !important;
    --black-color : #000000 !important;
}

.bc-primary{
    background-color: var(--pcolor) !important;
    color: #fff !important;
}

.pr-color {
    color: var(--pcolor);
}

.left-border {
    border-left: 5px solid var(--left-border);
}

.left-border-red {
    border-left: 5px solid var(--left-border-red);
}

.left-border-green {
    border-left: 5px solid var(--left-border-green);
}

.left-border-blue {
    border-left: 5px solid var(--left-border-blue);
}

.black-color {
    background: var(--black-color) !important;
}

/* Sidebar =========*/
.sidebar {
    width: 240px;
    height: 100vh;
    position: fixed;
    background: var(--pcolor);
    color: #fff;
    padding: 12px;
    transition: width 0.25s ease;
    display: flex;
    flex-direction: column;
}

/* Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    margin-left: 16px;
}

/* Toggle button (small icon) */
.toggle-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    margin-left: -6px !important;
}

/* ====== */
.sidebar h4 {
    margin-bottom: 30px;
}

.sidebar a {
    position: relative;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.sidebar a i {
    font-size: 18px;
    min-width: 22px;
    text-align: center;
}

/* Text hide on collapse */
.menu-text {
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

/* Hover & active */
.sidebar a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar a.active {
    background: rgba(255, 255, 255, 0.171) !important;
}

/* Logout */
.logout-btn {
    background: #dc3545;
    margin-top: auto;
}

/* Content spacing */
.content {
    margin-left: 240px;
    transition: margin-left 0.25s ease;
}

/* Footer fix */
.main-footer {
    width: calc(100% - 240px);
    margin-left: 240px;
    transition: all 0.25s ease;
}

/* Main content */
.content {
    margin-left: 260px;
    padding: 40px;
}

.hero {
    background: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.custom-btn {
    background: var(--pcolor);
    border: 1px solid var(--pcolor);
}

.custom-btn:hover {
    background: var(--pcolor);
    border-color: 1px solid var(--pcolor);
}

.custom-btn:focus {
    background-color: var(--pcolor) !important;
    border-color: var(--pcolor) !important;
    box-shadow: none !important;
    /* removes Bootstrap glow */
}

.custom-btn:disabled,
.custom-btn.disabled {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.65;
}

.form-control:focus {
    border-color: var(--pcolor);
    /* Your desired border color */
    box-shadow: 0 0 0 0.10rem #4560832f;
    /* Glow matching the color */
    outline: 0;
    /* Remove browser default outline */
}

.main-footer {
    position: fixed;
    bottom: 0;
    width: calc(100% - 250px); /* adjust 250px to your sidebar width */
    margin-left: 260px;
}

.label {
    font-weight: 600;
    color: #555;
}

.value {
    font-weight: 500;
}

.token-box {
    background: #f1f3f5;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    word-break: break-all;
}

.csr-box {
    white-space: pre-wrap;      /* keep line breaks */
    word-break: break-word;
    font-family: monospace;
    max-height: 3.2em;          /* approx 2 lines */
    line-height: 1.6em;
    overflow-y: auto;           /* ✅ vertical scrollbar */
    overflow-x: hidden;
    padding: 8px;
    border-radius: 6px;
}

.form-check-input:checked + .form-check-label {
    font-weight: 500;
    color: var(--pcolor);
}

.form-check-input:checked {
    background-color: var(--pcolor);
    border-color: var(--pcolor);
}

#loader {
    position: fixed;
    inset: 0;
    background: #ffffff6b;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When SSL Download status ORDER_PLACED  */
.btn.disabled, .btn:disabled, fieldset:disabled .btn{
    background-color:grey;
}

/* Custom pagination primary color */
.pagination .page-link {
    color: var(--pcolor);
    border-radius: 6px;
    margin: 0 3px;
}

.pagination .page-link:hover {
    color: #fff;
    background-color: var(--pcolor);
    border-color: var(--pcolor);
}

.pagination .page-item.active .page-link {
    background-color: var(--pcolor);
    border-color: var(--pcolor);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #999;
}

.custom-thead th {
    background-color: #d7d6d557 !important;
}

/* On focus (click) */
#searchStatus:focus {
    border-color: var(--pcolor);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0); /* remove bootstrap blue glow */
}

.reset-btn:hover{
    background-color: var(--pcolor);
    border-color: var(--pcolor);
}

/* .domain-badge{
    background: #eef2ff;
    color: #000;
} */

.domain-badge{
    background: #eef2ff;          /* soft indigo */
    color: #1e293b;               /* dark slate */
    border: 1px solid #c7d2fe;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.badge{
    background: #eef2ff;          /* soft indigo */
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.dcv-row{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dcv-value{
    font-size: 13px;
    /* font-weight: 500; */
    color: #212529;
    background: #f1f3f5;
    padding: 4px 8px;
    border-radius: 6px;
}

.dcv-change{
    font-size: 12px;
    font-weight: 600;
    color: var(--pcolor);
    cursor: pointer;
    margin-left: 4px;
}

.dcv-change:hover{
    text-decoration: underline;
}

.ranges ul li.active {
    background-color: var(--pcolor) !important;
    color: #ffffff !important;            /* Text color when active */
    border: 1px solid var(--pcolor) !important; 
}

.table-condensed tbody tr td.active {
    background-color: var(--pcolor) !important; 
    color: #ffffff !important;            /* Text color when active */
    border: 1px solid var(--pcolor) !important;
}

.hr-dashed-black {
  border: none;
  border-top: 1px dashed black; /* Adds the desired dashed line */
  height: 1px; /* Ensures the element has the correct thickness */
}

.reSelectEmail {
    cursor: pointer;
}

.reSelectEmail:hover {
    color: var(--pcolor);
}

.token-box {
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-family: monospace;
}

/* Loader Css */
#pageLoader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #ffffff71;
    top: 0;
    left: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid #eee;
    border-top: 5px solid var(--pcolor);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Loader End */

/* Show user */
.sidebar-user{
    position:absolute;
    bottom:70px;
    left:0;
    width:100%;
    padding:15px;
    display:flex;
    align-items:center;
}

.user-avatar img{
    width:40px;
    height:40px;
    border-radius:50%;
    object-fit:cover;
}

.user-info{
    margin-left:10px;
}

.user-name{
    font-weight:600;
    font-size:14px;
}

.user-email{
    font-size:12px;
    color:#888;
}

.user-role{
    font-size:11px;
    color:#fff;
    background:var(--black-color);
    padding:2px 6px;
    border-radius:4px;
    display:inline-block;
    margin-top:5px;
}
/* Show user end */


/* Upload bulk data */
.drop-zone{
    border:2px dashed #cfd3d7;
    padding:40px;
    text-align:center;
    cursor:pointer;
    border-radius:8px;
    background:#fafafa;
}

.drop-zone:hover{
    background:#f1f3f5;
}

.drop-zone input{
    display:none;
}