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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

/* Navigation */
.navbar {
  background: #ffffff;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.nav-link {
  color: #1976d2;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: #1976d2;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Main Content Container */
h1 {
  color: #1565c0;
  margin-bottom: 25px;
  font-size: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

h3 {
  color: #444;
  margin: 15px 0 10px 0;
  font-size: 1.2rem;
}

/* Card Styles */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Status Colors */
.status-up {
  color: #2e7d32;
  font-weight: 700;
  background: rgba(46, 125, 50, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-warning {
  color: #f57c00;
  font-weight: 700;
  background: rgba(245, 124, 0, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-down {
  color: #c62828;
  font-weight: 700;
  background: rgba(198, 40, 40, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Domain/Product Status Highlighting */
details.has-warning {
  border-left: 6px solid #f57c00;
  background: linear-gradient(90deg, rgba(245, 124, 0, 0.08) 0%, rgba(245, 124, 0, 0.02) 100%);
  box-shadow: 0 3px 10px rgba(245, 124, 0, 0.15);
}

details.has-warning:hover {
  border-left-color: #ef6c00;
  box-shadow: 0 6px 15px rgba(245, 124, 0, 0.25);
}

details.has-down {
  border-left: 6px solid #c62828;
  background: linear-gradient(90deg, rgba(198, 40, 40, 0.08) 0%, rgba(198, 40, 40, 0.02) 100%);
  box-shadow: 0 3px 10px rgba(198, 40, 40, 0.15);
}

details.has-down:hover {
  border-left-color: #b71c1c;
  box-shadow: 0 6px 15px rgba(198, 40, 40, 0.25);
}

details.has-up {
  border-left: 6px solid #2e7d32;
  background: linear-gradient(90deg, rgba(46, 125, 50, 0.08) 0%, rgba(46, 125, 50, 0.02) 100%);
  box-shadow: 0 3px 10px rgba(46, 125, 50, 0.1);
}

details.has-up:hover {
  border-left-color: #1b5e20;
  box-shadow: 0 6px 15px rgba(46, 125, 50, 0.2);
}

/* Details/Summary */
details {
  margin: 15px 0;
  background: #ffffff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

details:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  transform: translateX(8px);
  border-color: #1976d2;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: #444;
  padding: 10px 15px;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: #f8f9fa;
  margin: -8px -10px 0 -10px;
}

summary:hover {
  color: #1976d2;
  background: #e3f2fd;
  transform: scale(1.02);
}

summary::marker {
  color: #1976d2;
  font-size: 1.2em;
}

details[open] > summary {
  margin-bottom: 20px;
  color: #1976d2;
  background: #e3f2fd;
  border-bottom: 2px solid #1976d2;
}

/* Nested details styling */
details details {
  margin-left: 25px;
  padding: 15px 18px;
  border-left: 3px solid #e0e0e0;
}

details details summary {
  font-size: 0.95em;
  padding: 8px 12px;
}

details details ul {
  padding-left: 15px;
}

/* Content inside details */
details > div {
  padding: 15px 10px;
  animation: fadeIn 0.3s ease-in;
}

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

/* Lists */
ul {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

ul li {
  padding: 14px 18px;
  margin: 8px 0;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #e0e0e0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

ul li:hover {
  background: #e3f2fd;
  border-left-color: #1976d2;
  transform: translateX(5px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Forms */
.form-horizontal {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #444;
  font-size: 0.95rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #1976d2;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: #ffffff;
  padding: 12px 28px;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(25, 118, 210, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 118, 210, 0.5);
}

.btn-danger {
  background: #c62828;
  color: #ffffff;
}

.btn-danger:hover {
  background: #b71c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(198, 40, 40, 0.3);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.875rem;
}

button[type="submit"] {
  align-self: flex-start;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.table thead {
  background: #667eea;
  color: #ffffff;
}

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

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

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

/* Alerts */
.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
}

.alert-error {
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid #c62828;
}

/* Text Utilities */
.text-muted {
  color: #757575;
  font-style: italic;
}
