@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: #030213;
  --card: #ffffff;
  --card-foreground: #030213;
  --primary: #030213;
  --primary-foreground: #ffffff;
  --secondary: #f8f9fa;
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --border: rgba(0, 0, 0, 0.08);
  --input-background: #f3f3f5;
  --radius: 0.625rem;
  
  /* Additional UI Colors from Screenshots */
  --blue-soft: #3b82f6;
  --green-soft: #10b981;
  --purple-soft: #8b5cf6;
  --orange-soft: #f59e0b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #f4f7fa;
  color: var(--foreground);
  font-size: var(--font-size);
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background-color: #1a237e; /* Navy Blue from screenshot */
  color: white;
  position: fixed;
  height: 100vh;
  padding: 2rem 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  display: block;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 0.5rem;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.875rem 1rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
  background-color: #303f9f;
  color: white;
}

.sidebar-menu a.active {
  background-color: #3d5afe;
}

/* Main Content */
.main-wrapper {
  margin-left: 280px;
  padding: 2.5rem;
}

/* Card Styling */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

/* Table Styling */
.table-container {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #fcfcfd;
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

/* Badge Encrypted */
.badge-encrypted {
  background: #ecfdf5;
  color: #059669;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #d1fae5;
}

/* Form Controls */
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input-background);
  border: 1px solid transparent;
  border-radius: 0.5rem;
  outline: none;
  transition: all 0.2s;
}

.form-control:focus {
  background: white;
  border-color: #3d5afe;
  box-shadow: 0 0 0 4px rgba(61, 90, 254, 0.1);
}

.btn-primary {
  background: #1a237e;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.badge-status {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }

