/* =====================================================
   PM-ROIT PLATFORM — MODERN GLASSMORPHIC DARK DESIGN SYSTEM
   ===================================================== */

:root {
  --bg-color: #0b0f19;
  --card-bg: rgba(18, 24, 38, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --primary: #00d2ff;
  --primary-hover: #00a3cc;
  --secondary: #7928ca;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --danger: #ff4757;
  --success: #2ed573;
  --radius: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  background: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 210, 255, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(121, 40, 202, 0.12) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  padding: 20px 10px;
  min-height: 100vh;
}

/* Container */
.admin-container, main {
  max-width: 1100px;
  margin: 0 auto;
}

/* Header & Topbar */
header, .topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  padding: 16px 24px;
  border-radius: var(--radius);
  margin-bottom: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

header h1, .topbar h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

header h1 span {
  color: var(--primary);
  font-size: 0.9rem;
  margin-left: 8px;
  background: rgba(0, 210, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Stats Container Cards */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  padding: 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.05);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.stat-title {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-count {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

/* Form Boxes & Cards */
.box, .card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  padding: 22px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.box h3, .box h2 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--primary);
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 8px;
}

/* Input, Select & Textarea Styling */
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

select option {
  background: #121826;
  color: var(--text-main);
}

/* Grid Layout for Forms and Store */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Buttons */
.btn, button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover, button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}

.logout, .btn-danger {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.logout:hover, .btn-danger:hover {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

/* Dynamic Floating Buttons & Badges */
.floating-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.floating-btn:hover {
  background: rgba(0, 210, 255, 0.15);
}

.badge {
  background: var(--danger);
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}

/* Doubt Overlay */
.doubt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(15px);
  z-index: 2000;
  flex-direction: column;
  padding: 20px;
}

.doubt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 10px;
}
