:root {
  /* Koyu tema renkleri */
  --primary-color-dark: #6200ea;
  --secondary-color-dark: #3700b3;
  --background-color-dark: #121212;
  --surface-color-dark: #1e1e1e;
  --on-surface-color-dark: #ffffff;
  --success-color-dark: #00c853;
  --error-color-dark: #ff3d00;
  
  /* Açık tema renkleri */
  --primary-color-light: #3f51b5;
  --secondary-color-light: #2196f3;
  --background-color-light: #f5f5f5;
  --surface-color-light: #ffffff;
  --on-surface-color-light: #212121;
  --success-color-light: #4caf50;
  --error-color-light: #f44336;
  
  /* Ortak renkler */
  --font-family: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color-dark);
  color: var(--on-surface-color-dark);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.light-theme {
  background-color: var(--background-color-light);
  color: var(--on-surface-color-light);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.main-content {
  flex: 1;
  padding: 2rem 0;
}

.site-header {
  text-align: center;
  margin-bottom: 2rem;
}

.site-header h1 {
  font-size: 2.5rem;
  color: var(--primary-color-dark);
  margin: 0;
}

body.light-theme .site-header h1 {
  color: var(--primary-color-light);
}

.vpn-status-section {
  background-color: var(--surface-color-dark);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .vpn-status-section {
  background-color: var(--surface-color-light);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.vpn-status-section h2 {
  margin-top: 0;
  color: var(--primary-color-dark);
}

body.light-theme .vpn-status-section h2 {
  color: var(--primary-color-light);
}

.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-indicator.online { background-color: var(--success-color-dark); }
.status-indicator.offline { background-color: var(--error-color-dark); }

body.light-theme .status-indicator.online { background-color: var(--success-color-light); }
body.light-theme .status-indicator.offline { background-color: var(--error-color-light); }

.divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--on-surface-color-dark);
  opacity: 0.2;
}

body.light-theme .divider::before,
body.light-theme .divider::after {
  background-color: var(--on-surface-color-light);
}

.divider i {
  padding: 0 1rem;
  font-size: 1.5rem;
  color: var(--primary-color-dark);
}

body.light-theme .divider i {
  color: var(--primary-color-light);
}

.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-box {
  background-color: var(--surface-color-dark);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .info-box {
  background-color: var(--surface-color-light);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.info-box h3 {
  color: var(--primary-color-dark);
  margin-top: 0;
}

body.light-theme .info-box h3 {
  color: var(--primary-color-light);
}

.info-content {
  min-height: 100px;
  margin-bottom: 1rem;
}

.btn {
  background-color: var(--primary-color-dark);
  color: var(--on-surface-color-dark);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.light-theme .btn {
  background-color: var(--primary-color-light);
  color: var(--surface-color-light);
}

.btn:hover {
  background-color: var(--secondary-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

body.light-theme .btn:hover {
  background-color: var(--secondary-color-light);
}

.theme-toggle-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.theme-toggle-btn {
  background-color: var(--surface-color-dark);
  color: var(--on-surface-color-dark);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.light-theme .theme-toggle-btn {
  background-color: var(--surface-color-light);
  color: var(--on-surface-color-light);
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
}

.theme-toggle-btn .fa-sun {
  display: none;
}

body.light-theme .theme-toggle-btn .fa-sun {
  display: block;
}

body.light-theme .theme-toggle-btn .fa-moon {
  display: none;
}

.footer {
  background-color: var(--surface-color-dark);
  color: var(--on-surface-color-dark);
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

body.light-theme .footer {
  background-color: var(--surface-color-light);
  color: var(--on-surface-color-light);
}

@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  .site-header h1 {
    font-size: 2rem;
  }

  .vpn-status-section,
  .info-box {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .divider {
    margin: 1.5rem 0;
  }
}

@media (max-width: 480px) {
  .theme-toggle-wrapper {
    top: 10px;
    right: 10px;
  }
  
  .vpn-status-section h2 {
    font-size: 1.2rem;
  }

  .info-box h3 {
    font-size: 1rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* Detaylı Sistem Bilgileri Bölümü */
.detailed-info-section {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.detailed-info-section h2 {
    color: var(--text-primary);
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.info-group {
    background: var(--bg-primary);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-group h3 {
    color: var(--text-primary);
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.info-group h3 i {
    margin-right: 10px;
    color: var(--accent-color);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color-light);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 500;
    flex: 1;
}

.info-value {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    text-align: right;
    flex: 2;
    word-break: break-word;
}

/* Responsive Tasarım */
@media (min-width: 768px) {
    .detailed-info-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .detailed-info-section h2 {
        grid-column: 1 / -1;
    }

    .info-group {
        margin-bottom: 0;
    }
}

@media (min-width: 1200px) {
    .detailed-info-section {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animasyonlar */
.info-group {
    transition: transform 0.2s ease-in-out;
}

.info-group:hover {
    transform: translateY(-2px);
}

.info-value {
    transition: color 0.2s ease-in-out;
}

.info-value:hover {
    color: var(--accent-color);
}

/* Yükleniyor Animasyonu */
.info-value.loading::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 8px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Özel Durumlar */
.info-value.error {
    color: var(--error-color);
}

.info-value.success {
    color: var(--success-color);
}

.info-value.warning {
    color: var(--warning-color);
}

/* Tooltip */
.info-label {
    position: relative;
    cursor: help;
}

.info-label:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: var(--tooltip-bg);
    color: var(--tooltip-text);
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.2s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}