﻿

.fc .navbar-height {
  height: 52px;
  padding: 0px 0px 2px 0px !important;
  background-color: rgba(255, 255, 255, 0.95);
}

.fc .navbar-height .btn-light {
  background-color: rgba(255, 255, 255, 0.95);
  border-color:transparent;  
}

.fc .navbar-height .btn-light:hover {
  background-color: #f3f4f6;
}

.fc .navbar-height .title {
  color: #1e3a8a;
}

.fc .fixed-div {
  display: flex;
  align-items: center;
  justify-content: center;
  margin:0 30px;
  flex:1;
  position: relative;
  top: 1px;
}

.fc .no-break {
  white-space: nowrap;
  word-break: keep-all;
  /* width: 90px;
  text-align: right; */
}

.fc .mode-label-fs-6 {
  font-size: 14px !important;
}

.fc .title {
  color: #20548F;
  word-break: keep-all;
  white-space: nowrap;
}

.fc .main-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin:3px 15px 0px 15px;
  flex:1;
}

.fc .test-div {
  display: flex;
  align-items: center;
  justify-content: center;  
  width: 100%;
  flex-wrap: wrap;
}

.fc .test-div-result {
  width: 100%;
}


.fc .ip-div {
  display: flex;
  align-items: stretch;
  justify-content: center;  
  flex:1;
  margin:10px 0 0 0;
  width: 100%;
}

.fc .ip-div-modal { 
  display: flex;
  align-items: center;
  justify-content: center; 
  flex-flow: column;
  flex:1;
  margin:0 0 0 0;
  width: 100%;
}

.fc .div-test-run {
  display: flex;
  align-items: center;
  justify-content: center;  
  flex:1;
  margin:10px 0 0 0;
  width: 100%;
  flex-wrap: wrap;
}

.fc .test-div-center {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.fc .text-center {
  text-align: center !important;
}

.fc .progressBarOuter {
  height: 5px;
}

.fc .progressBar {
  width: 100%;
  background-color: #20548F;
}

.fc .logo {
  width: 36px;
}

.fc svg {
  position: relative;
  top: -2px
}

.fc svg.svg-top-1 {
  top: -1px;
}

.fc svg.svg-top-0 {
  top: 0px;
}

.fc sub {
  font-weight: bold;
}

.fc sup {
  font-weight: bold;
}

.fc .no-break {
  white-space: nowrap;
  word-break: keep-all;
}

.fc button {
  position: relative;
  word-break: keep-all;
  white-space: nowrap;
}

.fc .btn-light-1 {
  background-color: #d3d4d5
}

.fc .note-btn-width {
  /* width: 135px; */
  font-weight: bold;
  white-space: pre-wrap;
  word-break: break-all;
}

.fc .menu {
  display: none;
}

.fc .dropdown-divider-hidden0 {
  display: none;
}

.fc .dropdown-divider-hidden1 {
  display: none;
}

.fc .dropdown-divider-hidden2 {
  display: none;
}

.fc .dropdown-divider-hidden3 {
  display: none;
}

.fc .dropdown-divider-hidden4 {
  display: none;
}

.fc .dropdown-divider-hidden5 {
  display: none;
}

.fc .dropdown-mode-item {
  display: none;
}

.fc .dropdown-group-item {
  display: none;
}

.fc .dropdown-history-item {
  display: none;
}

.fc .dropdown-download-item {
  display: none;
}

.fc .dropdown-login-item {
  display: none;
}


.fc .ip-w-25 {
  width: 65px !important;
  text-align: right;
  margin-right: 4px;
}

.fc .card-ellipsis {
  word-break: break-all;
  white-space: wrap;
}

.fc .card-ellipsis.flex1 {
  flex: 1;
}

.fc .ip-card-adjust {
  flex: 1;
  width: 100%;
}

.fc .ip-card-adjust.first { 
  margin-right: 10px;  
}

.fc .ip-card-adjust-modal {
  flex: 1;
  width: 100%;
}

/* --- */
.fc .card-body {
  padding: 0.7rem;
}

.fc .select-div {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex:1;
  flex-wrap: wrap;
}

.fc .select-div-split {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex:1;
  min-width: 200px;
  margin: 2px;
  padding: 5px;
}

.fc .select-div-split.column  {
  flex-flow: column;  
  max-width: 200px;
}

.fc .select-div-split .flex-flow-wrap {
  flex-flow: wrap;
}

.fc .select-item {
  width: 190px;
  cursor: pointer;
  font-size: 14px;
}

.fc .select-item > span {
  margin-right: 2px;
}

.fc .select-item:hover {
  color: rgb(13,110,253);
  /* font-weight: bold; */
}

.fc .select-item.active {
  color: rgb(13,110,253);
  font-weight: bold;
}

.fc .select-item.highlight {
  text-shadow:1px 2px 10px #4d4d4d;
  font-weight: bold;
}

.fc .select-item.column-3 {
  width: 125px;
  cursor: pointer;
  font-size: 14px;
}

.fc .card-header {
  font-weight: bold;
}

.fc .speed-dash-card {
  width: 200px;
  flex: 0 0 auto;
  padding: 8px 0px 8px 0px;
}

.fc .speed-dash-card-info {
  width: calc(50% - 8px);
  flex: 1;
  /* border-left-width: 5px !important;
  border-right-width: 5px !important; */
}

.fc .speed-dash-card-info .card-header {
  padding-bottom: 2px;
}

.fc .speed-dash-card-info .card-body {
  padding-top: 2px;
}

.fc .speed-dash-card .card-header {
  padding: 0.1rem;
}

.fc .speed-dash-card .card-body {
  padding: 0.1rem;
}

.fc .speed-dash-canvas {
  width: 100%;
  height: auto !important;
}

.fc .speed-dash-body {
  position: relative;
}

.fc .speed-dash-value {
  position: relative;  
  font-size: 20px;
  font-weight: bold;
}

/* .fc .test-description-card.success {
  background: linear-gradient(to right, #d1fae5, #dcfce7) !important;
  border-width: 2px !important;
  border-color: #a7f3d0 !important;
}

.fc .test-description-card.primary {
  background: linear-gradient(to right, #dbeafe, #e0e7ff) !important;
  border-width: 2px !important;
  border-color: #93c5fd !important;
}

.fc .test-description-card.danger {
  background: linear-gradient(to right, #fee2e2, #fecaca) !important;
  border-width: 2px !important;
  border-color: #fca5a5 !important;
} */

.fc .test-description-card h5 {
  font-size: 18px;
  font-weight: bold;
}

.fc .test-description-card .span-fs-12 {
  font-size: 12px;
}

.fc .test-description-card span {
  font-size: 16px;
}

.fc .test-memo-div {
  background-color: rgb(240, 240, 240) !important;
  border-radius: 5px;
  /* margin-left: 15px !important;
  margin-right: 15px !important; */
}

.fc .test-result-card {
  width: calc(25% - 8px);
  background-color: #f8f9fa;
}

.fc .test-result-card span[data-id="value"] {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 18px;
}

.fc .test-result-card span[data-id="grade"] {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.fc .test-result-card > div > div > span {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 16px;
}

.fc .test-result-card div:nth-child(1) {
  padding-bottom: 0;
}

.fc .test-result-card div:nth-child(3) {
  padding-top: 0;
}

.fc .test-result-card.w-33 {
  width: calc(33% - 8px);
}

.fc .test-result-card.w-34 {
  width: calc(33% - 8px);
  margin-left: 10px !important;
  margin-right: 10px !important;
}

.fc .test-result-card .span-fs-14 {
  font-size: 14px;
}

.fc .test-result-card .chart-container {
  width: 150px;
  height: 100px;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc .test-result-card .chart-container-200 {
  /* width:100%; */
  /* min-height: 170px; */
  border: 0px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding: 8px;
}

.fc .ipv4-info {
  font-size: 14px;
  border-color: #e2e8f0 !important;
  border-left-width: 3px !important;
  border-left-color: #0d6efd !important;
  padding: 14px 8px 0px 8px;
}

.fc .ipv4-info:hover {
  border-color: #0d6efd !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.fc .ipv6-info {
  font-size: 14px;
  border-color: #e2e8f0 !important;
  border-left-width: 3px !important;
  border-left-color: #198754 !important;
  padding: 14px 8px 0px 8px;
}

.fc .ipv6-info:hover {
  border-color: #198754 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.fc .text-gray {
  color: #6b7280 !important;
}

.fc .ipHostWhois-div {
  padding: 6px 8px 4px 8px;
}

.fc .title-spinner-ip {
  width: 24px;
  height: 24px;
  position: relative;
}

.fc .title-spinner-ip > div {
  position: relative;
  top: -1px;
}

.fc .ip-info-label {
  width: 67px;
  text-align: right;
}

.fc .test-table {
  font-size: 12px;
}

.fc .test-table th {
  border-right: 1px solid #dee2e6;
}

.fc .test-table th:first-child {
  width: 180px;
}

.fc .test-table th:not(:first-child) {
  width: 7%;
}

.fc .test-table.cols-15 th:not(:first-child) {
  width: 5%;
}

.fc .test-table.cols-20 th:not(:first-child) {
  width: 4%;
  min-width: 48px;
}

.fc .test-table th:last-child {
  border-right: none;
}

.fc .test-table td {
  border-right: 1px solid #dee2e6;
}

.fc .test-table td:last-child {
  border-right: none;
}

.fc .test-table tr:last-child {
  border-style: none;
}

.fc .test_result_icon {
  background: linear-gradient(135deg, #3b82f6, #4f46e5) !important;
}

.fc .test_description_icon {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
}

.fc .speed-dash-title {
  font-size: 18px;
  font-weight: bold;
}

.fc .bg-warning {
  background-color: #fef3c7 !important;
}

.fc .ping-icon-color {
  color: #7c3aed !important;
  stroke-width: 2 !important;
}

.fc .lost-icon-color {
  color: #ef4444 !important;
}

.fc .jitter-icon-color {
    color: #f59e0b !important;
}

.fc .download-icon-color {
  color: #3b82f6 !important;
}

.fc .upload-icon-color {    
  color: #10b981 !important;
}

.fc .dropdown-user-item {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc .dropdown-user-item > div {
  width: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    height: 52px;
    border-radius: 5px 5px 0px 0px;
    font-weight: bold;
    word-break: break-all;
    white-space: wrap;
    line-height: 18px;
    padding: 0px 8px;
}

@media (min-width: 1350px) {
  .fc .fixed-div {
    max-width: 1280px;
  }
  .fc .test-div {
    max-width: 1266px !important;
  }
  .fc .test-div-result {
    max-width: 1266px !important;
  }
  .fc .ip-div {
    max-width: 1266px !important;
  }
  .fc .div-test-run {
    max-width: 1266px !important;
  }
}

@media (max-width: 715px) {
  .fc .speed-result-zone {
    flex:1
  }

  .fc .speed-dash-card-info {
    width: calc(100% - 8px);
    flex: none;
  }
}

@media (max-width: 1169px) {
  .hiddenBook {
    display: none;
  }
}

@media (max-width: 1049px) {
  .fc .hiddenHistory {
    display: none;
  }
}

@media (max-width: 999px) {
  .fc .hiddenLogin {
    display: none;
  }

}

@media (max-width: 949px) {
  .fc .hiddenGroup {
    display: none;
  }
  .fc .test-result-card {
    width: calc(50% - 8px);
  }

}

/* @media (max-width: 1070px) {
  .fc .test-result-card.w-33 {
    width: calc(50% - 8px);
  }

  .fc .test-result-card.w-34 {
    width: calc(50% - 8px);
    margin-left: 4px !important;
    margin-right: 4px !important;
  }
} */

@media (max-width: 939px) {
  .fc .hiddenMode {
    display: none;
  }
  .fc .menu {
    display: block;
  }
  .fc .dropdown-mode-item {
    display: block;
  }

  .fc .ip-card-adjust {
    display: none;
  }

  .fc .dropdown-divider-hidden5 {
    display: block;
  }

  .fc .ip-div {  
    flex-flow: column;
  }

  .fc .ip-card-adjust.first { 
    margin-right: 0px;    
  }
  .fc .ip-card-adjust.last { 
    margin-top: 10px;
  }
}

@media (max-width: 749px) {
  .fc .dropdown-login-item {
    display: block;
  }
  .fc .dropdown-divider-hidden4 {
    display: block;
  }
  .fc .hiddenLoginBtn {  
    display: none;
  }

  .fc .speed-dash-card {
    width: 100%;
  }

  .fc .animation-div {
    width: 100% !important;
  }
}

@media (max-width: 479px) {
  .fc .dropdown-download-item {
    display: block;
  }
  .fc .dropdown-divider-hidden3 {
    display: block;
  }
  .fc .hiddenBookBtn {  
    display: none;
  }
  .fc .test-div {
    flex-flow: column;
  }
  
  .fc .ip-card-adjust {
    display: none;
  }

  .fc .select-div-split.column  {
    flex-flow: column;  
    max-width: 100%;
  }

  
.fc .btn-ip-switch {
  flex-wrap: wrap;
}

  /* .fc .test-div {
    border: none !important;
    box-shadow: none !important;
  } */
  
  /* .fc .test-note-div-1 {
    width: 100%;
  }
  .fc .test-note-div-1 div:nth-child(2) {
    flex:1;
  } */

  /* .fc .note-div-flex-column {
    flex-flow: column;
    align-items: flex-start !important;
  }

  .fc .note-div-flex-column select {
    width: 110px !important;
  }

  .fc .note-div-flex-column label {
    margin-left: 0px !important;
    margin-bottom: 2px !important;
  } */

}

@media (max-height: 450px) {
  .fc .ip-card-adjust {
    display: none;
  }
}

@media (max-width: 559px) {
  .fc .dropdown-history-item {
    display: block;
  }
  .fc .dropdown-divider-hidden2 {
    display: block;
  }
  .fc .hiddenHistoryBtn {  
    display: none;
  }
  .fc .dropdown-group-item {
    display: block;
  }
  .fc .dropdown-divider-hidden1 {
    display: block;
  }
  .fc .hiddenGroupBtn {  
    display: none;
  }
}

@media (max-width: 899px) {
  .fc .test-result-card {
    width: calc(50% - 8px);
  }

  .fc .test-result-card.w-33 {
    width: calc(50% - 8px);
  }

  .fc .test-result-card.w-34 {
    width: calc(50% - 8px);
    margin-left: 4px !important;
    margin-right: 4px !important;
  }  

  .fc .test-chart-flex-wrap {
    flex-wrap: wrap;
  }
}

@media (max-width: 699px) {
  .fc .test-result-card {
    width: calc(100% - 8px) !important;
  }

  .fc .test-result-card.w-33 {
    width: calc(100% - 8px) !important;
  }

  .fc .test-result-card.w-34 {
    width: calc(100% - 8px);
    margin-left: 4px !important;
    margin-right: 4px !important;
  }
}

@media (max-width: 380px) {
  .fc .title span {
    font-size: 20px !important;
  }
  
  .fc .logo {
    width: 28px;
  }
}

@media (max-width: 350px) {
  .fc .title span {
    font-size: 18px !important;
  }
  
  .fc .logo {
    width: 26px;
  }

  .fc .test-note-div-2 {
    flex-flow: column;
  }
}

@media (max-width: 320px) {
  .fc .title span {
    font-size: 16px !important;
  }
  
  .fc .logo {
    width: 24px;
  }

  .fc .speed-dash-card {
    width: 100%;
  }
}

@media (max-width: 280px) {
  .fc .title span {
    font-size: 14px !important;
  }
  
  .fc .logo {
    width: 22px;
  } 
}

@media (max-width: 1200px) {
  .fc #test-target-modal .modal-dialog {
    min-width: 90%;
  }
}

@media (max-width: 575px) {
  .fc #test-target-modal .modal-dialog {
    padding: 15px;
  }
}

/* 滿版 Popup 樣式 */
.fullscreen-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fullscreen-popup-content {
    position: relative;
    width: 90%;
    height: 90%;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fullscreen-popup-close {
    position: absolute !important;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.fullscreen-popup-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.fullscreen-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fullscreen-popup-body h2 {
    font-size: 1.75rem;
    color: #1e3a8a;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: bold;
}

.fullscreen-popup-body p {
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
    max-width: 800px;
    line-height: 1.8;
    font-weight: bold;
}

.popup-cards-container {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
}

.popup-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.popup-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.popup-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    text-align: left;
}

.popup-card-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.75rem;
    text-align: left;
}

.popup-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.popup-card-feature {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
}

.popup-card-button {
    margin-top: auto;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.popup-card-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.popup-card-button:active {
    transform: translateY(0);
}

.popup-card-button.no-click {
    cursor: not-allowed;
}

.popup-card-button-group {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.popup-card-button-group .popup-card-button {
    flex: 1;
    margin-top: 0;
}

.popup-no-show-option {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
}

.popup-no-show-option label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #6b7280;
    transition: color 0.2s;
    user-select: none;
}

.popup-no-show-option label:hover {
    color: #374151;
}

.popup-no-show-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

@media (max-width: 1024px) {
    .popup-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .popup-card {
        max-width: 500px;
        width: 100%;
    }
}

/* 平板與大手機 */
@media (max-width: 768px) {
    .fullscreen-popup-content {
        width: 95%;
        height: 95%;
        border-radius: 0.5rem;
    }

    .fullscreen-popup-body {
        padding: 2rem 1.5rem;
        justify-content: flex-start;
        align-items: stretch;
    }

    .fullscreen-popup-body h2 {
        font-size: 1.5rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .fullscreen-popup-body p {
        font-size: 0.95rem;
    }

    .popup-cards-container {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .popup-card {
        padding: 1.5rem;
        min-width: unset;
    }

    .popup-card-title {
        font-size: 1.25rem;
    }

    .popup-card-subtitle {
        font-size: 1rem;
    }

    .popup-card-feature {
        font-size: 0.9rem;
    }

    .popup-card-button {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* 小手機 */
@media (max-width: 480px) {
    .fullscreen-popup-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .fullscreen-popup-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .fullscreen-popup-body {
        padding: 1.5rem 1rem;
    }

    .fullscreen-popup-body h2 {
        font-size: 1.25rem;
    }

    .fullscreen-popup-body p {
        font-size: 0.9rem;
    }

    .popup-cards-container {
        gap: 1rem;
    }

    .popup-card {
        padding: 1.25rem;
    }

    .popup-card-title {
        font-size: 1.125rem;
    }

    .popup-card-subtitle {
        font-size: 0.95rem;
    }

    .popup-card-feature {
        font-size: 0.85rem;
    }

    .popup-card-button {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
}