/* 1proxy.net Speedtest - CSS Modern Gradient Theme */

:root {
  --primary-gradient: linear-gradient(135deg, #1a73e8 0%, #3f51b5 100%);
  --secondary-gradient: linear-gradient(135deg, #00b8d4 0%, #0091ea 100%);
  --success-gradient: linear-gradient(135deg, #00c853 0%, #009688 100%);
  --warning-gradient: linear-gradient(135deg, #ffab00 0%, #ff6d00 100%);
  --danger-gradient: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  --purple-gradient: linear-gradient(135deg, #7b1fa2 0%, #4a148c 100%);
  --dark-gradient: linear-gradient(135deg, #1d293e 0%, #0d1425 100%);
  
  --primary-color: #1a73e8;
  --primary-dark: #0052cc;
  --secondary-color: #00b8d4;
  --dark-color: #1d293e;
  --light-color: #f8f9fa;
  --text-color: #333;
  --gray-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Base Styles */
body {
  background: #f5f9fc url('assets/img/background.jpg') no-repeat center top;
  background-size: cover;
  padding-top: 80px;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-weight: 600;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.gradient-border {
  position: relative;
  border-radius: var(--border-radius);
  background: linear-gradient(white, white) padding-box,
              var(--primary-gradient) border-box;
  border: 2px solid transparent;
}

/* Navbar Styles */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.98);
}

.navbar-brand img {
  height: 40px;
  transition: all 0.3s ease;
}

.navbar-toggler {
  border: none;
  padding: 0;
  outline: none !important;
}

.navbar-toggler-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-nav .nav-link {
  color: var(--dark-color);
  font-weight: 500;
  padding: 10px 15px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  width: calc(100% - 30px);
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 1.5px;
}

.dropdown-menu {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 0.5rem 0;
  margin-top: 10px;
  animation: fadeInUp 0.3s ease-out;
}

.dropdown-item {
  padding: 10px 20px;
  font-weight: 500;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: rgba(26, 115, 232, 0.1);
  color: var(--primary-color);
}

.dropdown-item i {
  width: 20px;
  margin-right: 8px;
  color: var(--primary-color);
}

.login-btn {
  background: linear-gradient(white, white) padding-box,
              var(--primary-gradient) border-box;
  border: 2px solid transparent !important;
  border-radius: 50px;
  padding: 5px 15px !important;
  margin-left: 15px;
  transition: all 0.3s ease;
  color: var(--primary-color) !important;
}

.login-btn:hover {
  background: var(--primary-gradient) !important;
  color: white !important;
  box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
  transform: translateY(-2px);
}

/* Content Wrapper */
.content-wrapper {
  margin-top: 50px;
  margin-bottom: 50px;
  max-width: 900px;
  animation: fadeIn 1s ease-out;
}

/* Speedtest Wrapper */
.speedtest-wrapper {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.speedtest-header {
  margin-bottom: 30px;
}

.speedtest-header h1 {
  font-weight: 700;
  margin-bottom: 15px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  animation: fadeInDown 0.8s ease-out;
}

.speedtest-header .description {
  color: var(--gray-color);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

/* Info Card */
.info-card {
  background: linear-gradient(120deg, rgba(240, 245, 255, 0.8), rgba(255, 255, 255, 0.8));
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.5);
  animation: fadeInUp 1s ease-out;
}

.info-card:hover {
  box-shadow: var(--hover-shadow);
  transform: translateY(-5px);
}

.ip-info, .server-info {
  max-height: 100%;
}

.ip-info h5, .server-info h5 {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.ip-info h5 i, .server-info h5 i {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-right: 10px;
  font-size: 1.2em;
}

.ip-info p, .server-info p {
  margin-bottom: 12px;
  color: var(--text-color);
  position: relative;
  padding-left: 5px;
}

.ip-info p strong, .server-info p strong {
  font-weight: 600;
  color: var(--dark-color);
}

.badge {
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.badge-success {
  background: var(--success-gradient);
  color: white;
}

.badge-warning {
  background: var(--warning-gradient);
  color: white;
}

.badge-danger {
  background: var(--danger-gradient);
  color: white;
}

.badge-info {
  background: var(--secondary-gradient);
  color: white;
}

/* Control Panel */
.control-panel {
  margin: 30px 0;
  animation: fadeInUp 1.2s ease-out;
}

.btn {
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
  z-index: -1;
  transform: translateX(-100%);
  transition: all 0.4s ease;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  border-radius: 50px;
  padding: 12px 35px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-gradient);
  box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
  transform: translateY(-3px);
}

.btn-primary i {
  margin-right: 8px;
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.7);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(26, 115, 232, 0);
  }
  100% {
    transform: scale(1);
  }
}

/* Progress Bar */
.progress {
  height: 15px;
  border-radius: 50px;
  background-color: #e9ecef;
  margin: 30px 0;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  background: var(--primary-gradient);
  border-radius: 50px;
  transition: width 0.4s ease;
  color: white;
  font-size: 10px;
  text-align: center;
  line-height: 15px;
  box-shadow: 0 2px 5px rgba(26, 115, 232, 0.2);
}

/* Results */
.result-container {
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 1.3s ease-out;
}

.server-result {
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.server-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(120deg, rgba(240, 245, 255, 0.8), rgba(255, 255, 255, 0.8));
  border-radius: var(--border-radius);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.server-result-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.server-name {
  flex: 1;
  font-weight: 500;
  text-align: left;
  color: var(--dark-color);
}

.server-name i {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-right: 5px;
}

.server-speed {
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 50px;
  margin: 0 10px;
  min-width: 110px;
  text-align: center;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.speed-low {
  background: var(--warning-gradient);
  color: white;
}

.speed-medium {
  background: var(--success-gradient);
  color: white;
}

.speed-high {
  background: var(--primary-gradient);
  color: white;
}

.server-speed-mb {
  font-size: 0.9rem;
  color: var(--gray-color);
  min-width: 80px;
  text-align: right;
  font-weight: 500;
}

/* Speedtest Result */
.alert {
  border-radius: var(--border-radius);
  padding: 25px;
  margin-top: 30px;
  border: none;
  animation: fadeInUp 1.5s ease-out;
}

.alert-success {
  background: linear-gradient(120deg, rgba(233, 255, 236, 0.8), rgba(255, 255, 255, 0.8));
  color: #155724;
  border-left: 4px solid #28a745;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.1);
}

.alert h4 {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  background: var(--success-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.alert h4 i {
  margin-right: 10px;
  background: var(--success-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.alert p {
  color: #555;
}

.speedtest-actions {
  margin-top: 25px;
}

.btn-outline-primary {
  color: var(--primary-color);
  background: linear-gradient(white, white) padding-box,
              var(--primary-gradient) border-box;
  border: 2px solid transparent;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 5px 15px rgba(26, 115, 232, 0.2);
  transform: translateY(-2px);
}

.btn-outline-success {
  color: var(--success-color);
  background: linear-gradient(white, white) padding-box,
              var(--success-gradient) border-box;
  border: 2px solid transparent;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-success:hover {
  background: var(--success-gradient);
  color: white;
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
  transform: translateY(-2px);
}

/* Speed Summary */
.speed-summary {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  margin: 30px 0;
  box-shadow: var(--card-shadow);
  animation: fadeInUp 1.6s ease-out;
}

.summary-item {
  padding: 20px;
  border-radius: var(--border-radius);
  background: linear-gradient(120deg, rgba(240, 245, 255, 0.8), rgba(255, 255, 255, 0.8));
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.summary-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.summary-label {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-bottom: 8px;
  font-weight: 500;
}

.summary-value {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* Features Section */
.speedtest-info {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  animation: fadeInUp 1.7s ease-out;
}

.speedtest-info h3 {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 700;
  margin-bottom: 30px;
}

.feature-card {
  background: white;
  padding: 35px 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(240, 245, 255, 0.5), rgba(255, 255, 255, 0.5));
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 25px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  transition: all 0.3s ease;
  display: inline-block;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h4 {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 600;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-color);
  margin-bottom: 0;
}

/* CSS cho phần WebRTC và thông tin kết nối */
.webrtc-ip-list, .connection-summary {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.webrtc-ip-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(240, 245, 255, 0.5), rgba(255, 255, 255, 0.5));
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
}

.webrtc-ip-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.webrtc-ip-list .badge, .connection-summary .badge {
  margin-right: 12px;
  min-width: 60px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

#webrtc-info, #connection-info {
  background: linear-gradient(120deg, rgba(240, 245, 255, 0.8), rgba(255, 255, 255, 0.8));
  border-radius: var(--border-radius);
  padding: 25px;
  margin-top: 25px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
}

#webrtc-info:hover, #connection-info:hover {
  box-shadow: var(--hover-shadow);
  transform: translateY(-5px);
}

#webrtc-info h5, #connection-info h5 {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

#webrtc-info h5 i, #connection-info h5 i {
  margin-right: 10px;
  font-size: 1.2em;
}

#show-full-webrtc, #show-full-connection {
  font-size: 0.85rem;
  margin-top: 15px;
  background: linear-gradient(white, white) padding-box,
              var(--primary-gradient) border-box;
  border: 2px solid transparent;
}

#show-full-webrtc:hover, #show-full-connection:hover {
  background: var(--primary-gradient);
  color: white;
}

/* Phần hiển thị thông tin IP địa lý */
.ip-geo-info {
  background: linear-gradient(120deg, rgba(240, 245, 255, 0.5), rgba(255, 255, 255, 0.5));
  border-radius: var(--border-radius);
  padding: 15px;
  margin-top: 15px;
  border: 1px solid rgba(226, 232, 240, 0.5);
  animation: fadeIn 1.2s ease-out;
}

.ip-geo-info p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  position: relative;
  padding-left: 20px;
}

.ip-geo-info p::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 1.2em;
  line-height: 1;
}

/* Định dạng văn bản kiểu monospace */
.monospace {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem;
  word-break: break-all;
  background: #f1f5f9;
  padding: 3px 6px;
  border-radius: 4px;
  color: #0f172a;
}

.small-text {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Phong cách thông tin kết nối */
.connection-summary p {
  margin-bottom: 12px;
  position: relative;
  padding-left: 5px;
}

.connection-summary .badge {
  display: inline-block;
  padding: 6px 12px;
  margin-right: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Footer */
.footer {
  background: var(--dark-gradient);
  color: white;
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(63, 81, 181, 0.2), transparent 70%);
  z-index: -1;
}

.footer-logo {
  height: 40px;
}

.social-icons {
  margin-top: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 1.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.footer-links li:hover {
  transform: translateX(5px);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  padding-left: 15px;
}

.footer-links a::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  text-decoration: none;
  padding-left: 20px;
}

.footer-links a:hover::before {
  opacity: 1;
}

hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 30px 0 20px;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.payment-methods span {
  font-size: 1.5rem;
  margin-left: 15px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.payment-methods span:hover {
  color: white;
  transform: translateY(-3px);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.97);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .login-btn {
    margin-left: 0;
    margin-top: 10px;
    display: inline-block;
  }
  
  .navbar-nav .nav-link.active::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .speedtest-wrapper {
    padding: 30px 20px;
  }
  
  .info-card {
    padding: 25px 20px;
  }
  
  .ip-info, .server-info {
    margin-bottom: 20px;
  }
  
  .server-result-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .server-speed, .server-speed-mb {
    margin: 8px 0;
    text-align: left;
  }
  
  .summary-item {
    margin-bottom: 15px;
  }
  
  .feature-card {
    margin-bottom: 20px;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer h5 {
    margin-top: 30px;
  }
  
  .footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-icons {
    justify-content: center;
    display: flex;
  }
  
  .payment-methods {
    margin-top: 20px;
    text-align: center;
  }
  
  .footer-links a::before {
    display: none;
  }
  
  .footer-links li:hover {
    transform: none;
  }
  
  .footer-links a:hover {
    padding-left: 0;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 70px;
  }
  
  .content-wrapper {
    margin-top: 30px;
  }
  
  .speedtest-wrapper {
    padding: 25px 15px;
  }
  
  .btn-primary {
    padding: 10px 25px;
    font-size: 0.95rem;
  }
  
  .navbar-brand img {
    width: 120px;
  }
  
  .modal-body {
    padding: 25px 15px;
  }
  
  .webrtc-table td {
    display: block;
    width: 100%;
  }
  
  .webrtc-table td:first-child {
    width: 100%;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .share-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* Modal có thông tin thêm */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: zoomIn 0.4s ease-out;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-color);
  z-index: 1;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
  background: var(--primary-gradient);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 35px;
  overflow-y: auto;
  max-height: calc(90vh - 100px);
}

.modal-body h3 {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 25px;
  font-weight: 700;
}

.modal-footer {
  padding: 15px 30px;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  display: flex;
  justify-content: flex-end;
  background: linear-gradient(120deg, rgba(240, 245, 255, 0.5), rgba(255, 255, 255, 0.5));
}

/* Phần thông tin chi tiết */
.webrtc-section {
  margin-bottom: 35px;
}

.webrtc-section h3 {
  margin-bottom: 20px;
  font-weight: 700;
}

.webrtc-section h4 {
  margin-bottom: 15px;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 600;
  position: relative;
  padding-left: 15px;
}

.webrtc-section h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background: var(--secondary-gradient);
  border-radius: 3px;
}

.webrtc-table {
  width: 100%;
  border-collapse: collapse;
}

.webrtc-table tr {
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: all 0.3s ease;
}

.webrtc-table tr:hover {
  background: linear-gradient(120deg, rgba(240, 245, 255, 0.5), rgba(255, 255, 255, 0.5));
}

.webrtc-table tr:last-child {
  border-bottom: none;
}

.webrtc-table td {
  padding: 12px 8px;
}

.webrtc-table td:first-child {
  font-weight: 600;
  width: 30%;
  color: var(--dark-color);
}

/* Share Modal */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.share-modal-content {
  background: white;
  padding: 35px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
  animation: zoomIn 0.4s ease-out;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.share-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-color);
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
}

.share-close:hover {
  background: var(--primary-gradient);
  color: white;
  transform: rotate(90deg);
}

.share-modal-content h3 {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 20px;
  font-weight: 700;
}

.share-text {
  margin: 20px 0;
}

.share-text textarea {
  width: 100%;
  padding: 15px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(226, 232, 240, 0.7);
  resize: none;
  height: 100px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.share-text textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.share-btn i {
  margin-right: 8px;
}

.share-btn.facebook {
  background: linear-gradient(135deg, #3b5998, #2d4373);
  color: white;
}

.share-btn.twitter {
  background: linear-gradient(135deg, #1da1f2, #0c85d0);
  color: white;
}

.share-btn.copy {
  background: linear-gradient(white, white) padding-box,
              var(--primary-gradient) border-box;
  border: 2px solid transparent;
  color: var(--dark-color);
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: white;
}

.share-btn.copy:hover {
  background: var(--primary-gradient);
  color: white;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Connection Grid */
.connection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 15px;
}

.info-tile {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(240, 245, 255, 0.8));
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.7);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.info-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.info-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-tile:hover::before {
  transform: scaleX(1);
}

.info-tile-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.info-tile-header i {
  font-size: 1.3rem;
  margin-right: 10px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.info-tile-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-color);
}

.info-tile-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 500;
  text-align: center;
  word-break: break-word;
}

.info-note {
  text-align: center;
  color: var(--gray-color);
  margin-top: 10px;
}

.info-note i {
  margin-right: 5px;
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .connection-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .info-tile {
    padding: 15px;
  }
  
  .info-tile-header i {
    font-size: 1.1rem;
  }
  
  .info-tile-header h5 {
    font-size: 0.9rem;
  }
  
  .info-tile-content {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .connection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .info-tile {
    padding: 12px;
  }
  
  .info-tile-header {
    margin-bottom: 10px;
  }
}

/* Sections for WebRTC and Browser Info */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  padding-bottom: 10px;
}

.section-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  color: var(--dark-color);
}

.section-header h4 i {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-right: 10px;
  font-size: 1.2em;
}

.webrtc-container, .browser-info-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(240, 245, 255, 0.8));
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 0.5s ease-out;
}

.webrtc-ip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.webrtc-ip-list li {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.webrtc-ip-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.webrtc-ip-list li .badge {
  margin-right: 10px;
}

.browser-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.browser-info-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.browser-info-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.browser-info-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--dark-color);
  font-size: 0.9rem;
}

.browser-info-item span {
  color: var(--primary-color);
  font-weight: 500;
}

@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .section-header button {
    margin-top: 10px;
  }
  
  .webrtc-ip-list, .browser-info-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .webrtc-ip-list li, .browser-info-item {
    padding: 10px;
  }
}