* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;

}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

header .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
  line-height: 1.6;
}

.input-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

.input-group {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.domain-input {
  flex: 1;
  padding: 15px 24px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: border-color 0.3s;
}

.domain-input:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.btn {
  padding: 15px 36px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f1f2f6;
  color: #2c3e50;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-icon {
  font-size: 1.3rem;
}

.description {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #3498db;
  margin-bottom: 25px;
}

.description h3 {
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.description p {
  line-height: 1.8;
  color: #555;
  margin-top: 10px;
}

.results-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
  transition: transform 0.3s;
}

.card-title {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #7f8c8d;
}

.card-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
}

.cdn-status {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 10px;
  font-size: 0.9rem;
}

.cdn-detected {
  background: rgba(231, 76, 60, 0.15);
  color: #27ae60;
}

.no-cdn {
  background: rgba(46, 204, 113, 0.15);
  color: #c0392b;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.results-table th {
  background: #f1f2f6;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #e0e0e0;
}

.results-table td {
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.results-table tr:hover {
  background: #f8f9fa;
}

.ip-address {
  font-family: monospace;
  font-size: 1.1rem;
}

.response-time {
  font-weight: 600;
}

.good {
  color: #27ae60;
}

.average {
  color: #f39c12;
}

.poor {
  color: #e74c3c;
}

.notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  z-index: 1000;
  display: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    bottom: 0;
  }

  10% {
    opacity: 1;
    bottom: 30px;
  }

  90% {
    opacity: 1;
    bottom: 30px;
  }

  100% {
    opacity: 0;
    bottom: 60px;
  }
}

.loading {
  display: none;
  text-align: center;
  padding: 40px;
}

.loader {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border: 6px solid #f1f2f6;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

footer {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

.sample-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.sample-item {
  background: #e0e7ff;
  color: #4f46e5;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.sample-item:hover {
  background: #d1d9ff;
}
