:root {
  --primary: #9d50bb;
  --primary-dark: #6e48aa;
  --bg: #0f0c29;
  --card-bg: #1a1a2e;
  --text: #e0e0e0;
  --text-dim: #a0a0a0;
  --accent: #ff00cc;
  --success: #00f2fe;
  --danger: #ff4b2b;
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.05);
}

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

body {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #9d50bb, #6e48aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

/* Components */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.auth-card {
  max-width: 400px;
  margin: 4rem auto;
}

h1, h2, h3 {
  margin-bottom: 1.5rem;
  font-weight: 700;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

input, select, textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
}

button {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button.secondary {
  background: var(--glass);
  border: 1px solid var(--border);
}

button.danger {
  background: linear-gradient(to right, #ff4b2b, #ff416c);
}

.text-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  text-align: center;
  margin-top: 1rem;
}

.text-link:hover {
  text-decoration: underline;
}

/* Dashboard Elements */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.assignment-card {
  position: relative;
  transition: transform 0.2s;
}

.assignment-card:hover {
  transform: translateY(-5px);
}

.badge {
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-High { background: rgba(255, 75, 43, 0.2); color: #ff4b2b; }
.priority-Medium { background: rgba(157, 80, 187, 0.2); color: #9d50bb; }
.priority-Low { background: rgba(0, 242, 254, 0.2); color: #00f2fe; }

.status-done { 
  border-left: 4px solid var(--success);
}

.status-not-done { 
  border-left: 4px solid var(--danger);
}

.assignment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 1rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal {
  background: var(--card-bg);
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .container { padding: 1rem; }
  .grid { grid-template-columns: 1fr; }
  nav { padding: 1rem; }
}