* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  color: white;
  padding: 30px;
  text-align: center;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 300;
}

.header p {
  opacity: 0.9;
  font-size: 1.1rem;
  padding-bottom: 10px;
}

.main-content {
  padding: 40px;
}

.section {
  margin-bottom: 40px;
  padding: 30px;
  border: 2px solid #f0f0f0;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.section:hover {
  border-color: #667eea;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  cursor: pointer;
}

.section-icon {
  font-size: 1.5rem;
  margin-right: 15px;
  color: #667eea;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  flex-grow: 1;
}

.toggle-icon {
  font-size: 1rem;
  color: #999;
  transition: transform 0.3s ease;
}

.section.collapsed .toggle-icon {
  transform: rotate(180deg);
}

.section-content {
  transition: all 0.3s ease;
}

.section.collapsed .section-content {
  display: none;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.file-upload {
  position: relative;
  display: inline-block;
  cursor: pointer;
  width: 100%;
}

.file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-label {
  display: block;
  padding: 20px;
  border: 2px dashed #667eea;
  border-radius: 10px;
  text-align: center;
  background: #f8f9ff;
  transition: all 0.3s ease;
}

.file-upload:hover .file-upload-label {
  background: #e8ebff;
  border-color: #4c63d2;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.checkbox-item:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.checkbox-item input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.radio-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-item:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.radio-item input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.2);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f8f9fa;
  color: #6c757d;
  border: 2px solid #e9ecef;
}

.btn-secondary:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-info {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.alert-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

.sample-csv {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  font-family: "Courier New", monospace;
  margin-bottom: 20px;
}

.optimization-controls {
  background: #f8f9ff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.range-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.range-input input[type="number"] {
  width: 80px;
  padding: 8px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  text-align: center;
}

.tooltip {
  position: relative;
  cursor: help;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 20px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  width: 0%;
  transition: width 0.3s ease;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .checkbox-group {
    flex-direction: column;
  }

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

  .main-content {
    padding: 20px;
  }
}
/* Template description styling */
.template-description {
  margin-bottom: 20px;
}

/* File upload styling */
.upload-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.upload-subtext {
  color: #666;
  margin-top: 5px;
}

/* Optimization controls styling */
.optimization-title {
  margin-bottom: 20px;
}

/* CPU utilization label */
.cpu-utilization-label {
  color: #667eea;
  font-weight: 700;
}

/* Memory utilization label */
.memory-utilization-label {
  color: #4ecdc4;
  font-weight: 700;
}

/* Readonly input styling */
.readonly-input {
  background: #f8f9fa;
}

/* Advanced family group spacing */
.advanced-family-group {
  margin-top: 30px;
}

/* Generate button styling */
.generate-btn {
  width: 100%;
  font-size: 1.2rem;
  padding: 20px;
}

/* Progress text styling */
.progress-text {
  text-align: center;
  margin-top: 10px;
}

/* Download section styling */
.download-section {
  margin-top: 20px;
  text-align: center;
}

/* Success icon styling */
.success-icon {
  margin-right: 10px;
}

/* Usage statistics grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Counter card base styling */
.counter-card {
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

/* Tool usage card specific styling */
.tool-usage-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* VMs processed card specific styling */
.vms-processed-card {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

/* Counter number styling */
.counter-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Counter title styling */
.counter-title {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Counter subtitle styling */
.counter-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 5px;
}
nav a {
  margin-right: 10px;
  padding: 3px 9px;
  text-decoration: none;
  color: white; /* Default link color */
  background-color: transparent;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

nav a:visited {
  color: white; /* Prevent color change after visit */
}

nav a:hover {
  background-color: #e0f0ff; /* Light hover effect */
  color: black;
}

nav a.active {
  background-color: white;
  color: #000; /* Optional: make text darker for contrast */
  font-weight: bold;
  border: 1px solid #ccc;
}
