/* ======== GLOBAL THEME ======== */
:root {
  --primary: #005DE0;
  --primary-dark: #001431;
  --accent: #3B82F6;
  --accent-gradient: linear-gradient(135deg, #005DE0, #00C3FF);
  --bg: #f5f7fa;
  --surface: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --border: #e0e4ea;
  --text: #1a2330;
  --text-light: #5a6a85;
  --shadow: 0 4px 30px rgba(0, 93, 224, 0.08);
  --glow: 0 0 12px rgba(0, 93, 224, 0.4);
  --danger: #e53935;
  --success: #1a7f2e;
  --warning: #ffc107;
}

body {
  font-family: 'Inter', 'Roboto', system-ui, sans-serif;
  background: radial-gradient(circle at top left, #eef2f7, #f9fbfd 80%);
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  transition: background 0.5s ease;
}
::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari, Edge (WebKit/Blink) */
}

#app {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}


/* ======== TYPOGRAPHY ======== */
h1, h2, h3, h4 {
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.6em;
}

p {
  line-height: 1.6;
  color: var(--text-light);
}

/* ======== LINKS ======== */
a {
  color: var(--primary);
  text-decoration: none;
  position: relative;
  transition: color 0.2s, transform 0.2s;
}

/* ======== BUTTONS ======== */
button, .primary-btn {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}
button:hover, .primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 93, 224, 0.3);
}

.danger-btn {
  background: linear-gradient(135deg, #e53935, #c62828);
}
.danger-btn:hover {
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.3);
}

/* ======== INPUTS ======== */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  width: 100%;
  background: var(--surface);
  transition: border 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 93, 224, 0.1);
}

/* ======== SECTIONS / CARDS ======== */
.verefa-section {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.verefa-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 93, 224, 0.15);
}
.verefa-section h2 {
  font-size: 1.35rem;
  color: var(--primary-dark);
}

/* ======== LISTS ======== */
.verefa-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.verefa-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
  transition: background 0.2s ease;
}
.verefa-list li:hover {
  background: rgba(0, 93, 224, 0.03);
}

/* ======== TAGS / LINKS ======== */
.verefa-entity-link, .verefa-user-link, .verefa-device-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  padding: 0.2em 0.5em;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}
.verefa-entity-link:hover, .verefa-user-link:hover, .verefa-device-link:hover {
  background: rgba(0, 93, 224, 0.1);
  transform: scale(1.05);
}

/* ======== STATUS TAGS ======== */
.status {
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.status.success {
  background: rgba(26, 127, 46, 0.1);
  color: var(--success);
}
.status.warning {
  background: rgba(255, 193, 7, 0.15);
  color: var(--warning);
}
.status.danger {
  background: rgba(229, 57, 53, 0.15);
  color: var(--danger);
}

/* ======== ERROR & EMPTY STATES ======== */
.error, .empty-state, .loading {
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
}
.error {
  background: rgba(229, 57, 53, 0.08);
  border: 1px solid rgba(229, 57, 53, 0.25);
  color: var(--danger);
}
.empty-state {
  background: rgba(91, 105, 135, 0.05);
  border: 1px solid rgba(91, 105, 135, 0.15);
  color: var(--text-light);
}
.loading {
  background: rgba(0, 93, 224, 0.05);
  border: 1px solid rgba(0, 93, 224, 0.15);
  color: var(--primary);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ======== NAVBAR ======== */
.verefa-nav-topbar, .verefa-nav-bottom {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.4rem 1rem;
  z-index: 1000;
  transition: all 0.3s ease;
}
.verefa-nav-topbar {
  top: 1rem;
}
.verefa-nav-bottom {
  bottom: 1rem;
}
.verefa-nav-list {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
}
.verefa-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: color 0.2s, transform 0.2s;
}
.verefa-nav-link.active, .verefa-nav-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
  text-shadow: var(--glow);
}
.verefa-nav-link i {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

/* ======== SCROLLBAR ======== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background: #eaeaea;
}

/* ======== SMALL ANIMATIONS ======== */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
