@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #0a0814;
  --bg-secondary: #120e25;
  --bg-tertiary: #191433;
  --accent-purple: #7952b3;
  --accent-cyan: #00f0ff;
  --accent-pink: #ff007f;
  --text-main: #f5f4fb;
  --text-muted: #8e8a9f;
  --glass-bg: rgba(18, 14, 37, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 10% 20%, rgba(121, 82, 179, 0.15) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(0, 240, 255, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Authentication Layout */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

/* Form Styling */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: linear-gradient(135deg, var(--accent-purple), #5d3596);
  border: none;
  border-radius: var(--border-radius);
  color: #fff;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(121, 82, 179, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(121, 82, 179, 0.45);
  background: linear-gradient(135deg, #8a5ecc, #6d3fae);
}

.btn:active {
  transform: translateY(0);
}

.error-message {
  background: rgba(255, 0, 127, 0.1);
  border: 1px solid rgba(255, 0, 127, 0.2);
  color: #ff4d94;
  padding: 12px;
  border-radius: var(--border-radius);
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 24px;
  position: fixed;
  height: 100vh;
  z-index: 100;
}

.sidebar-logo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo span {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sidebar-link:hover, .sidebar-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(121, 82, 179, 0.2), transparent);
  border-left: 3px solid var(--accent-purple);
  padding-left: 13px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
}

/* Main Content Area */
.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 40px;
  max-width: 1200px;
  width: calc(100% - 260px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  font-size: 14px;
}

.user-badge .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-purple);
}

.stat-card.cyan::after {
  background: var(--accent-cyan);
}

.stat-card.pink::after {
  background: var(--accent-pink);
}

.stat-title {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
}

/* Section Header */
.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Table Card */
.table-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: var(--bg-tertiary);
  padding: 16px 20px;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--glass-border);
}

.custom-table td {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-main);
  border-bottom: 1px solid var(--glass-border);
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.status-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.active {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.status-badge.inactive {
  background: rgba(142, 138, 159, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(142, 138, 159, 0.2);
}

.text-center {
  text-align: center;
}

.no-data {
  padding: 40px;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    width: 70px;
    padding: 15px 10px;
  }
  .sidebar-logo span, .sidebar-link span, .sidebar-footer {
    display: none;
  }
  .sidebar-logo {
    justify-content: center;
    margin-bottom: 30px;
  }
  .sidebar-link {
    justify-content: center;
    padding: 12px;
  }
  .main-content {
    margin-left: 70px;
    width: calc(100% - 70px);
    padding: 24px;
  }
}
