/* ===== CSS Reset & Base Styles ===== */
* {
  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;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

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

/* ===== Hero Section (Home Page) ===== */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  color: white;
}

.main-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 0.8s ease-out;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out;
}

/* ===== Description Section ===== */
.description {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin: 30px 0;
  animation: fadeIn 1s ease-out;
}

.description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* ===== Features Section ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: fadeInUp 1s ease-out;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.4rem;
  color: #667eea;
  margin-bottom: 10px;
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  margin: 50px 0;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background: #f8f9fa;
  transform: translateY(-3px);
}

/* ===== Page Header ===== */
.page-header {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  margin-bottom: 30px;
}

.page-header h1 {
  color: #667eea;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-header p {
  color: #666;
  font-size: 1.1rem;
}

/* ===== Form Container ===== */
.form-container {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.prediction-form {
  max-width: 700px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

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

.help-text {
  font-size: 0.9rem;
  color: #777;
  margin-top: 8px;
  line-height: 1.5;
}

/* ===== Examples Section ===== */
.examples-section {
  margin: 40px 0;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 10px;
}

.examples-section h3 {
  color: #667eea;
  margin-bottom: 20px;
  text-align: center;
}

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

.example-card {
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid;
}

.example-card h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.example-card p {
  font-size: 0.9rem;
  margin: 5px 0;
}

.example-normal {
  background: #e8f5e9;
  border-color: #4caf50;
}

.example-suspicious {
  background: #fff3e0;
  border-color: #ff9800;
}

.example-attack {
  background: #ffebee;
  border-color: #f44336;
}

/* ===== Form Actions ===== */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
}

/* ===== Risk Badge ===== */
.risk-badge {
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.risk-low {
  background: #4caf50;
  color: white;
}

.risk-medium {
  background: #ff9800;
  color: white;
}

.risk-high {
  background: #f44336;
  color: white;
}

.risk-label {
  margin-right: 10px;
}

/* ===== Results Grid ===== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.info-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.info-card.highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #667eea;
}

.info-card.highlight h3 {
  color: white;
}

.info-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.info-card.highlight .info-value {
  color: white;
}

.action-value {
  text-transform: capitalize;
}

.info-description {
  font-size: 0.9rem;
  color: #666;
}

.info-card.highlight .info-description {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== Visualization Section ===== */
.visualization-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.visualization-section h2 {
  color: #667eea;
  margin-bottom: 20px;
  text-align: center;
}

.chart-container {
  text-align: center;
  overflow-x: auto;
}

.chart-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.chart-image-large {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ===== Next States Section ===== */
.next-states-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.next-states-section h2 {
  color: #667eea;
  margin-bottom: 10px;
}

.section-description {
  color: #666;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.states-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.state-item {
  display: grid;
  grid-template-columns: 180px 1fr 80px;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.state-item:hover {
  background: #e9ecef;
}

.state-name {
  font-weight: 600;
  color: #333;
  text-transform: capitalize;
}

.probability-bar-container {
  background: #ddd;
  height: 25px;
  border-radius: 12px;
  overflow: hidden;
}

.probability-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.5s ease;
  border-radius: 12px;
}

.state-probability {
  font-weight: 700;
  color: #667eea;
  text-align: right;
}

/* ===== Actions Section ===== */
.actions-section {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ===== Upload Container ===== */
.upload-container {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.upload-form {
  max-width: 800px;
  margin: 0 auto;
}

.upload-zone {
  border: 3px dashed #667eea;
  border-radius: 15px;
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
  position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
  background: #e7eaf6;
  border-color: #764ba2;
  transform: scale(1.02);
}

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

.upload-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.upload-zone h3 {
  color: #667eea;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.upload-zone p {
  color: #666;
  font-size: 1.1rem;
}

.upload-info {
  margin: 30px 0;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 10px;
}

.upload-info h3 {
  color: #667eea;
  margin-bottom: 15px;
}

.upload-info ul {
  list-style: none;
  padding: 0;
}

.upload-info li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.upload-info li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

/* ===== Statistics Summary ===== */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-card h3 {
  color: #667eea;
  font-size: 1rem;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
}

/* ===== Results Table ===== */
.results-table-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.results-table-section h2 {
  color: #667eea;
  margin-bottom: 20px;
}

.table-container {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.results-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.results-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
}

.results-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e9ecef;
}

.results-table tbody tr:hover {
  background: #f8f9fa;
}

.results-table tbody tr.attack-row {
  background: #ffebee;
}

.results-table tbody tr.attack-row:hover {
  background: #ffcdd2;
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-state {
  background: #e3f2fd;
  color: #1976d2;
}

.badge-normal {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-attack {
  background: #ffebee;
  color: #c62828;
}

.badge-action {
  background: #f3e5f5;
  color: #7b1fa2;
}

.table-note {
  margin-top: 15px;
  color: #666;
  font-style: italic;
  text-align: center;
}

/* ===== Statistics Dashboard ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card-large {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-card-large h3 {
  color: #667eea;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.stat-value-large {
  font-size: 3rem;
  font-weight: 700;
  color: #333;
  text-transform: capitalize;
}

.breakdown-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.breakdown-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.breakdown-card h3 {
  color: #667eea;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.breakdown-list {
  list-style: none;
  padding: 0;
}

.breakdown-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
}

.breakdown-list li:last-child {
  border-bottom: none;
}

.breakdown-label {
  font-weight: 600;
  color: #333;
}

.breakdown-value {
  color: #667eea;
  font-weight: 600;
}

.no-data-message {
  background: white;
  padding: 60px 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.no-data-icon {
  font-size: 5rem;
  margin-bottom: 20px;
}

.no-data-message h2 {
  color: #667eea;
  margin-bottom: 15px;
}

.no-data-message p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

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

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

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

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 25px;
  }

  .examples-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .state-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .state-name,
  .state-probability {
    text-align: left;
  }

  .form-actions,
  .actions-section,
  .cta-section {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stats-summary,
  .stats-grid,
  .breakdown-section {
    grid-template-columns: 1fr;
  }

  .upload-zone {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2rem;
  }
}

/* ===== Statistics Dashboard ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card-large {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-card-large h3 {
  color: #667eea;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.stat-value-large {
  font-size: 3rem;
  font-weight: 700;
  color: #333;
  text-transform: capitalize;
}

.breakdown-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.breakdown-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.breakdown-card h3 {
  color: #667eea;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.breakdown-list {
  list-style: none;
  padding: 0;
}

.breakdown-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
}

.breakdown-list li:last-child {
  border-bottom: none;
}

.breakdown-label {
  font-weight: 600;
  color: #333;
}

.breakdown-value {
  color: #667eea;
  font-weight: 600;
}

.no-data-message {
  background: white;
  padding: 60px 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.no-data-icon {
  font-size: 5rem;
  margin-bottom: 20px;
}

.no-data-message h2 {
  color: #667eea;
  margin-bottom: 15px;
}

.no-data-message p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

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

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

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

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 25px;
  }

  .examples-grid {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .state-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .state-name,
  .state-probability {
    text-align: left;
  }

  .form-actions,
  .actions-section,
  .cta-section {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stats-summary,
  .stats-grid,
  .breakdown-section {
    grid-template-columns: 1fr;
  }

  .upload-zone {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

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

  .info-value {
    font-size: 1.5rem;
  }

  .stat-value-large {
    font-size: 2rem;
  }
}

/* ===== Authentication Pages ===== */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  animation: fadeInUp 0.6s ease-out;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h1 {
  color: #667eea;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.auth-header p {
  color: #666;
  font-size: 1.1rem;
}

.auth-form {
  margin-top: 30px;
}

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

.auth-form .form-group small {
  display: block;
  margin-top: 5px;
  color: #999;
  font-size: 0.85rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.btn-block {
  width: 100%;
  margin-top: 10px;
}

.auth-footer {
  margin-top: 30px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.auth-footer p {
  margin: 10px 0;
  color: #666;
}

.auth-footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ===== Navigation Bar ===== */
.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  border-radius: 15px;
  padding: 15px 30px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-brand:hover {
  color: #764ba2;
}

.nav-menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: #f8f9fa;
  color: #667eea;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-greeting {
  color: #667eea;
  font-weight: 600;
}

/* ===== Alerts / Flash Messages ===== */
.alert {
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 500;
  animation: fadeInDown 0.5s ease-out;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

/* ===== Profile Page ===== */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.profile-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.profile-card h2 {
  color: #667eea;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
}

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

.info-label {
  font-weight: 600;
  color: #666;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 15px;
}

.stat-icon {
  font-size: 2.5rem;
}

.stat-details {
  flex: 1;
}

.stat-details .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 5px;
}

.stat-details .stat-label {
  color: #666;
  font-size: 0.9rem;
}

.no-data-text {
  text-align: center;
  color: #666;
  padding: 30px;
  font-size: 1.1rem;
}

.no-data-text a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.no-data-text a:hover {
  text-decoration: underline;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* ===== Password Input with Toggle ===== */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .password-input {
  padding-right: 45px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 1.3rem;
  transition: opacity 0.2s ease;
}

.password-toggle:hover {
  opacity: 0.7;
}

.password-toggle:active {
  transform: scale(0.95);
}

/* ===== Password Strength Indicator ===== */
.password-strength {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 20px;
}
