/* ===== Global Reset ===== */
body {
  background: #f4f6f9;
  color: #222;
  line-height: 1.6;
  font-size: 16px;
}

/* ===== Page Layout ===== */
.page-container {
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 15px;
}

.status-wrapper h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #111;
  text-align: left;
}

.status-wrapper h3 {
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 1.35rem;
  font-weight: 600;
  color: #0f172a;
  border-left: 4px solid #2563eb;
  padding-left: 8px;
}

/* ===== Cards ===== */
.card-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 20px 24px;
  margin-bottom: 25px;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {opacity:0; transform:translateY(10px);}
  to {opacity:1; transform:translateY(0);}
}

.card-section p, 
.card-section li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
}

/* ===== Status Box ===== */
.status-box {
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.status-box.alert-success {
  background: #e6f9ef;
  border: 1px solid #34c759;
  color: #166534;
}

.status-box.alert-danger {
  background: #fde8e8;
  border: 1px solid #dc2626;
  color: #991b1b;
}

/* ===== Loader ===== */
.loader {
  text-align: center;
  padding: 50px 20px;
}

.loader p {
  margin-top: 15px;
  font-size: 1rem;
  color: #374151;
}

/* ===== Table ===== */
.table {
  margin-top: 15px;
  font-size: 0.95rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

.table th {
  width: 220px;
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  padding: 10px;
}

.table td {
  background: #fff;
  padding: 10px;
  color: #111;
}

/* ===== Recently Checked ===== */
.recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-list li {
  display: flex;
  justify-content: space-between;
  background: #f9fafb;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.recent-list li a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.recent-list li a:hover {
  text-decoration: underline;
}

.badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.bg-success { background: #16a34a; }
.bg-danger { background: #dc2626; }

/* ===== Buttons ===== */
.btn-sm {
  padding: 8px 14px;
  font-size: 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  margin: 4px 2px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-success {
  background: #16a34a;
  color: #fff;
}

.btn-success:hover {
  background: #15803d;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

/* ===== Comments ===== */
.comment-list {
  margin: 15px 0;
}

.comment-body {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
}

/* ===== Form ===== */
.status-form {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.status-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
}

.status-form button {
  padding: 10px 18px;
  background: #2563eb;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.status-form button:hover {
  background: #1d4ed8;
}

/* ===== Chart ===== */
#uptimeChart {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
  border: 1px solid #e5e7eb;
}

/* ===== Ads (Placeholder) ===== */
.ad-slot {
  width: 100%;
  min-height: 250px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
  padding: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .status-form {
    flex-direction: column;
  }
  .status-form button {
    width: 100%;
  }
  .table th { width: 150px; }
}

@media (max-width: 768px) {
  .status-wrapper h1 {
    font-size: 1.5rem;
  }
  .status-wrapper h3 {
    font-size: 1.1rem;
  }
}
