/* ===========================
   Premium Theme - CheckInn ERP (Cold Edition)
   =========================== */

:root {
  /* Core Palette */
  
  --card-bg: rgba(20, 20, 20, 0.7);
  --accent: #6f42c1;    /* Purple */
  --success: #00d26a;   /* Green */
  --danger: #f92f60;    /* Red/Pink */
  --warning: #ffc107;   /* Amber */
  --text-muted: #888;
  --text-main: #f2f2f2;
  
  --primary: #6f42c1;   /* Map accent to primary for consistency */
  --secondary: #bfc5d2;
  
  --glass-bg: var(--card-bg);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
}

/* Base Styles */
body {
   background: radial-gradient(circle at top right, #1a0b2e 0%, #000000 100%);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.025em;
}

a {
  text-decoration: none;
  color: white;
  transition: 0.2s;
}

a:hover {
  color: var(--accent);
}

/* Layout Utilities */
.dashboard-container {
  padding: 2rem;
}

/* Glass Cards (Consolidated) */
.glass-card {
 background: var(--card-bg);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
  border-color: rgba(255,255,255,0.15);
}

.module-title {
 text-transform: uppercase;
            font-size: 0.8rem;
            letter-spacing: 1.5px;
            color: var(--text-muted);
            margin-bottom: 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 0.5rem;
}

/* Security & Status Indicators */
.sec-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sec-indicator:last-child {
  border-bottom: none;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.dot-green {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.dot-red {
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
}

.dot-yellow {
  background: var(--warning);
}

/* Performance Bars */
.perf-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.progress-thin {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.bar-cpu { background: #00d4ff; }
.bar-ram { background: #d946ef; }
.bar-disk { background: #ffaa00; }

/* Operations & Activity Feed */
.ops-value {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.ops-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.log-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.log-time {
  color: var(--text-muted);
  font-size: 0.75rem;
  min-width: 60px;
}

.log-content {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 12px;
}

.log-user {
  color: var(--accent);
  font-weight: 600;
}

/* Buttons */
.btn {
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  transition: all 0.2s;
  letter-spacing: 0.025em;
}

.btn-primary {
  background: var(--accent);
  border: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  color: white;
}

.btn-primary:hover {
  background: #5a32a3; /* Darker purple */
  transform: translateY(-1px);
}

.btn-outline-light {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-muted);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

/* Form Controls */
.form-control, .form-select {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: white !important;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
}

.form-control:focus {
  background-color: rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(111, 66, 193, 0.25);
  color: white;
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* Tables */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: white;
  color: white;
}

.table thead th {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.table tbody td {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}

/* Navbar */
.navbar {
  background: rgba(10, 10, 10, 0.9) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Utilities */
.text-gold { color: #d4af37; }
.text-fuchsia { color: #f032e6; }
.hover-white:hover { color: white !important; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
::-webkit-scrollbar-thumb { 
  background: rgba(255,255,255,0.15); 
  border-radius: 4px; 
}