body {
    font-family: 'Poppins', sans-serif;
    padding: 20px 0;
    background: #eceaea;
    font-size: 14px;
}
th, td {
  padding: 5px 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}
table.sortable.domains-table th,
table.sortable.domains-table td {
    padding: 0px 12px;
    height: 28.762px;
}
table.sortable.domains-table {
  font-size: 14px;
  line-height: 1.2513;
}

/* Truncate long text in specific columns*/
td.two a {
  max-width: 202px;
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
}
td.five {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  padding-top: 7.5px !important;
}
td.two {
    max-width: 164px;
    position: relative;
}
td.zero {
  max-width: 88px !important;
}
.domain-link.cname-link {
  max-width: 149px;
  display: block;
  overflow: hidden;
  position: absolute;
  padding-top: 3px;
  text-overflow: ellipsis;
}
.domains-table td.three {
  position: relative;
  max-width: 100px;
}
.domains-table td.three a {
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    padding-top: 0;
    top: 0;
}
.domains-table td.four a {
    max-width: 135px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    padding-top: 0;
    top: 0;
}
.domains-table td.four {
  max-width: 177px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
}
.domains-table td.two:hover::after {
    content: attr(data-full);
    position: absolute;
    left: 4%;
    top: 70%;
    background: #333;
    color: white;
    padding: 8px 19px;
    border-radius: 4px;
    white-space: normal;
    z-index: 1000;
    min-width: max-content;
    max-width: max-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 13px;
    word-break: break-all;
    margin-top: 5px;
}
.domains-table td.three:hover::after {
    content: attr(data-full);
    position: absolute;
    left: 4%;
    top: 70%;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: normal;
    z-index: 1000;
    min-width: max-content;
    max-width: max-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    word-break: break-all;
    margin-top: 5px;
}
.domains-table td.four:hover::after {
    content: attr(data-full);
    position: absolute;
    left: 4%;
    top: -11%;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: normal;
    z-index: 1000;
    min-width: 200px;
    max-width: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    word-break: break-all;
    margin-top: 5px;
}
.domains-table td.four:hover::after {
    display: none;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.wrapper {
  width: 1280px;
  margin: 0 auto;
  padding: 0 11px 100px;
}
h1 { margin-bottom: 30px; color: #333; }
h2 { margin: 30px 0 15px 0; color: #555; font-size: 20px; }
.section-count {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* Header Bar */
.header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; position: relative; }
.header-bar h1 { margin-bottom: 0; display: flex; align-items: center; gap: 15px; }
.header-login { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.header-login input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-family: 'Poppins', sans-serif; font-size: 14px; }
.header-login input[type="email"] { width: 200px; }
.header-login input[type="password"] { width: 250px; }
.header-login button { padding: 8px 16px; background: #667eea; color: white; border: none; border-radius: 4px; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 14px; }
.header-login button:hover { background: #5568d3; }
.header-error {
    position: relative;
    right: 33px;
    top: 50%;
    transform: translateY(0%);
    background: #ffebee;
    color: #c62828;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
}
.api-key-link { position: absolute; right: 0; bottom: -20px; font-size: 11px; }
.api-key-link a { color: #667eea; text-decoration: none; }
.api-key-link a:hover { text-decoration: underline; }

/* Unauthenticated shading */
.wrapper.not-authenticated { opacity: 1; pointer-events: none; }
.wrapper.not-authenticated .header-bar { opacity: 1; pointer-events: all; }

/* Loading */
.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.95); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.loading-overlay.hidden { display: none; }
.spinner { border: 4px solid #f3f3f3; border-top: 4px solid #333; border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Summary Cards */
.summary-cards { display: flex; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.summary-card { flex: 1; min-width: 200px; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.summary-card h3 { font-size: 14px; color: #666; font-weight: 400; margin-bottom: 8px; }
.summary-card .value { font-size: 32px; font-weight: 600; color: #333; }
.summary-card.servers .value { color: #2196F3; }
.summary-card.apps .value { color: #4CAF50; }
.summary-card.domains .value { color: #FF9800; }

/* Domain stats two-column layout */
.domain-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}
.domain-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}
.domain-details div {
    white-space: nowrap;
}

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    background: #f5f5f5;
    z-index: 100;
    padding: 11px 22px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 7px rgba(0,0,0,0.1);
}
.sticky-header.stuck { box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* Search and Export */
.controls { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
input { padding: 8px; border: 1px solid #ddd; border-radius: 4px; flex: 1; min-width: auto; font-family: 'Poppins', sans-serif; }
.export-btn { padding: 8px 16px; background: #333; color: white; border: none; border-radius: 4px; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 14px; white-space: nowrap; }
.export-btn:hover { background: #555; }
.timestamp {
    font-size: 12px;
    color: #999;
    margin-left: auto;
    margin-right: 10px;
}
.projects-grid { display: flex; gap: 20px; margin-bottom: 30px; transition: opacity 0.3s ease; }
.projects-grid.single-project { display: block; }
.projects-grid.single-project .projects-table[data-side="right"] { display: none; }
.projects-grid.single-project .projects-table[data-side="left"] { width: 100%; }
.projects-table {
    flex: 1;
    margin-bottom: 0;
    border-radius: 10px;
    box-shadow: 0 2px 9px rgba(0,0,0,.32);
}
table.sortable.domains-table {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 10px;
}
table { width: 100%; border-collapse: collapse; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.1); margin-bottom: 30px; }
th { background: #f8f9fa; font-weight: 600; cursor: pointer; user-select: none; position: relative; }
th:hover { background: #e9ecef; }
th:after { content: '⇅'; position: absolute; right: 8px; opacity: 0.3; }
th.sort-asc:after { content: '↑'; opacity: 1; }
th.sort-desc:after { content: '↓'; opacity: 1; }
tr:hover { background: #f8f9fa; }
.project-row { cursor: pointer; transition: opacity 0.3s ease; }
.project-row:hover { background: #c8e6c9 !important; }
.project-row.active { background: #c8e6c9 !important; }
.project-row.hidden { opacity: 0; pointer-events: none; }

/* Status Colors */
.status { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.status.live { background: #c8e6c9; color: #2e7d32; }
.status.stopped { background: #ffcdd2; color: #c62828; }
.status.other { background: #e0e0e0; color: #666; }

/* Status Circles */
.status-circle {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid;
}
.status-circle.live {
    border-color: #1fb026;
    background: #1dce26;
}
.status-circle.stopped {
    border-color: #c62828;
    background: #c62828;
}
.status-circle.other {
    border-color: #666;
    background: #666;
}
.status-col {
    width: 30px;
    text-align: center;
}
.status-col:after {
    content: '';
}

/* Subdomain Column and Indicator */
.subdomain-col {
    width: 30px;
    text-align: center;
}
.subdomain-col:after {
    content: '';
}
.subdomain-circle {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid #1fb026;
    background: #1dce26;
    margin-right: 10px;
}

/* Alias Row Styling */
.domain-row.alias-row {
  background: #edcdcd33;
}
.domain-row.alias-row:hover {
    background: #e8e8e8 !important;
}

/* Domain Links */
.domain-link {
  color: #2196F3;
  text-decoration: none;
  position: relative;
  top: 6.25px;
}
.domain-link:hover { text-decoration: underline; }

/* SSL Status */
.ssl-status {
  display: block;
  padding: 0;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  margin-left: 8px;
  position: relative;
  width: 100%;
  text-align: center;
  max-width: 22px;
  top: -8px;
  left: -36px;
}
.ssl-status.active { background: #c8e6c9; color: #2e7d32; }
.ssl-status.inactive { background: #ffcdd2; color: #c62828; }

/* Project Badges */
.project-badge {
    display: inline-block;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    margin: 7px 0;
}
.domain-row { transition: opacity 0.3s ease; }
.domain-row.hidden { opacity: 0; pointer-events: none; }
.db-icon { cursor: pointer; font-size: 14px; user-select: none; font-weight: bold; color: #666; }
.db-icon:hover { color: #333; }
.db-row { background: #f8f9fa; }
.db-row td { padding: 8px 12px; border-bottom: 1px solid #e0e0e0; }
.db-info { font-size: 12px; color: #666; font-weight: 300; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.db-info strong { color: #333; font-weight: 600; }
.db-info .copy-btn { background: #333; color: white; border: none; padding: 4px 8px; border-radius: 3px; cursor: pointer; font-size: 11px; font-family: 'Poppins', sans-serif; }
.db-info .copy-btn:hover { background: #555; }
.db-info .copy-btn.copied { background: #4CAF50; }
.domains-table th:last-child { width: 50px; text-align: center; }
.domains-table th:last-child:after { content: ''; }
.domains-table td:last-child { text-align: center; }
.server-table th:last-child { width: 50px; text-align: center; }
.server-table th:last-child:after { content: ''; }
.server-table td:last-child { text-align: center; }
.server-table tbody tr.server-row { cursor: pointer; transition: opacity 0.3s ease; }
.server-table tbody tr.server-row:hover { background: #c8e6c9 !important; }
.server-table tbody tr.server-row.active { background: #c8e6c9 !important; }
.clickable-count { color: #2196F3; cursor: pointer; text-decoration: underline; font-weight: 600; }
.clickable-count:hover { color: #1976D2; }
.clickable-count.active-pill { background: #2196F3; color: white; padding: 2px 8px; border-radius: 12px; text-decoration: none; }

@media (max-width: 1280px) {
    .wrapper { max-width: 100%; }
}

@media (max-width: 1200px) {
    body { padding: 15px; }
    h1 { font-size: 24px; margin-bottom: 20px; }
    h2 { font-size: 18px; margin: 20px 0 10px 0; }
    .summary-cards { gap: 15px; }
    .summary-card { padding: 15px; }
    .summary-card .value { font-size: 28px; }
    .domain-details { font-size: 10px; }
    table { font-size: 14px; }
    th, td { padding: 10px 8px; }
    .controls { gap: 10px; }
    input {
      width: 100%;
      max-width: max-content;
    }
    .domains-table td:not(:last-child) {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    body { padding: 10px; }
    h1 { font-size: 20px; margin-bottom: 15px; }
    h2 { font-size: 16px; margin: 15px 0 8px 0; }
    .summary-cards { gap: 10px; }
    .summary-card { padding: 12px; min-width: 150px; }
    .summary-card .value { font-size: 24px; }
    .domain-stats { gap: 10px; }
    .domain-details { font-size: 9px; gap: 1px; }
    .projects-grid { flex-direction: column; gap: 10px; }
    table { font-size: 12px; }
    th, td { padding: 8px 6px; }
    th:after { right: 4px; font-size: 12px; }
    .db-info { font-size: 11px; gap: 10px; }
    .controls { flex-direction: column; align-items: stretch; }
    input {
      padding: 6px;
      font-size: 14px;
      min-width: max-content;
    }
    .export-btn { width: 100%; }
    .timestamp { margin-left: 0; margin-top: 5px; }
    .domains-table td:not(:last-child) {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .header-bar { flex-direction: column; gap: 10px; align-items: flex-start; }
    .header-login { width: 100%; }
    .header-login input[type="email"], .header-login input[type="password"] { flex: 1; min-width: 120px; }
    .header-error { position: static; transform: none; margin-top: 5px; }
    .api-key-link { position: static; margin-top: 5px; }
    .domain-filter-bar {
        padding: 11px 15px;
    }
    .filter-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    .filter-label {
        width: 100%;
        margin-bottom: 5px;
    }
    .filter-option {
      width: calc(50% - 22px);
      min-width: 0;
      float: left;
      display: block !important;
    }
}

@media (max-width: 480px) {
    body { padding: 8px; }
    h1 { font-size: 18px; margin-bottom: 12px; }
    h2 { font-size: 14px; margin: 12px 0 6px 0; }
    .summary-cards { flex-direction: column; }
    .summary-card { min-width: 100%; }
    .domain-stats { gap: 8px; }
    .domain-details { font-size: 8px; }
    table { font-size: 11px; }
    th, td { padding: 6px 4px; }
    .db-info { font-size: 10px; }
    input { padding: 5px; font-size: 13px; }
    .domains-table td:not(:last-child) {
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .header-login input { font-size: 12px; padding: 6px 8px; }
    .header-login button { font-size: 12px; padding: 6px 12px; }
}




.original { filter: brightness(1) contrast(1) saturate(1); }
.brighter{ filter:brightness(1.2) contrast(1.16) saturate(1.5); }
.brightest{ filter:brightness(1.5) contrast(1.16) saturate(1.5); }
.little { filter: brightness(1.06) contrast(1.01) saturate(1.09); }
.blur { filter: blur(1px); }
.dark { filter: brightness(0.65) contrast(1.05); }
.grayscale { filter: grayscale(100%); }
.grayscale-half { filter: grayscale(50%); }
.grayscale-88 { filter: grayscale(88%); }
.opacity { filter: opacity(50%); }
.opacity-light { filter: opacity(75%); }
.drop-shadow { filter: drop-shadow(8px 8px 12px rgba(0,0,0,0.79)); }
.drop-shadow-color { filter: drop-shadow(4px 4px 10px #aaf30066); }
.sepia { filter: sepia(100%); }


.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper input { padding-right: 35px; }
.toggle-password { position: absolute; right: 8px; cursor: pointer; user-select: none; font-size: 16px; opacity: 0.6; }
.toggle-password:hover { opacity: 1; }

.login-spinner-wrapper { position: relative; display: flex; align-items: center; }
.login-spinner { display: none; width: 16px; height: 16px; border: 2px solid #f3f3f3; border-top: 2px solid #667eea; border-radius: 50%; position: absolute; left: -24px; animation: spin 0.8s linear infinite; opacity: 0; transition: opacity 0.3s ease; }
.login-spinner.active { display: block; opacity: 1; }
.login-spinner.fade-out { opacity: 0; }

.connected-status { color: #4CAF50; font-size: 14px; font-weight: 600; margin-right: 15px; }
svg.hang {
  display: inline;
  position: relative;
  top: -4px;
}


body#Authenticate .header-bar .tooltip {
  bottom: calc(100% - 85px);
}
body#Authenticate .header-bar .tooltip::after {
  bottom: 100%;
  left: 48%;
  transform: rotate(180deg);
  top: -16px;
}
body#Authenticate .switch_3_container.switch_6_container .tooltip {
  top: calc(100% + 22px);
  height: max-content;
}
body#Authenticate .switch_3_container.switch_6_container .tooltip-container {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
}
body#Authenticate .switch_3_container.switch_6_container .help-button {
  background: none;
  color: white;
  border: none;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.2s ease,
        box-shadow 0.2s ease;
  max-width: 40px;
  max-height: 40px;
}


body#Authenticate .switch_3_container.switch_6_container .help-button svg {
  margin: -2px 0 0 -3.5px;
}
/* Index Column */
.index-col {
    width: 35px;
    text-align: center;
    font-size: 11px;
    color: #999;
    font-weight: 400;
}
th.index-col {
    font-size: 12px;
    color: #666;
}
th.index-col:after {
    content: '';
}

/* Domain Filter Bar */
.domain-filter-bar {
    position: sticky;
    top: 0;
    background: #f5f5f5;
    z-index: 100;
    padding: 11px 22px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 7px rgba(0,0,0,0.1);
}
.filter-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}
.filter-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}
.filter-option input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin: 0;
}
.filter-option:hover {
    color: #333;
}
.filter-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #667eea;
}
.totalNoDomains {
  font-weight: bold;
  color: #222222;
  font-size: 111%;
}
.filter-controls label.filter-option {
  margin-bottom: 0;
}
.filter-controls input[type=checkbox], input[type=radio] {
  margin: 0px 0 0;
  margin-top: 1px\9;
  line-height: normal;
}
.nott {
  color: red;
}
.yess {
  color: blue;
}



body#Cloudways div#switch_6 .tooltip {
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-371px) translateY(102px);
  padding: 12px 20px;
}/**/
body#Cloudways label.switch_6_switch .tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: rotate(270deg);
  border-width: 8px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}
.xxxx.section-count {
  width: max-content;
  float: left;
  margin-right: 15px;
}
div#domains-count.section-count {
  width: max-content;
  float: left;
  margin-right: 22px;
}
.xxxx.section-count .subdomain-circle {
  margin-right: 0px;
}
span.subdomain-circle.ledger.red {
  background: #edcdcd;
  border-color: #ef686882;
  border-radius: 0;
}
.header-bar h1 a {
  text-decoration: none;
  color: #333 !important;
}
.header-bar h1 a:hover {
  color: #333333bd !important;
}
.header-bar h1 a:active,
.header-bar h1 a:focus,
.header-bar h1 a:read-write,
.header-bar h1 a:visited,
.header-bar h1 a:visited,
.header-bar h1 a:visited {
  color: #333 !important;
}
.summary-card.projects .value {
  color: #e73eb9;
}
