/* Dark Theme Variables */
:root {
  --primary-color: #6c5ce7;
  --primary-hover: #5649c0;
  --secondary-color: #2d3436;
  --background-dark: #1e272e;
  --background-darker: #171e24;
  --card-bg: #2d3436;
  --text-color: #f5f6fa;
  --text-muted: #b2bec3;
  --border-color: #3d484d;
  --error-color: #ff7675;
  --success-color: #55efc4;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--background-dark);
  color: var(--text-color);
  line-height: 1.6;
}

/* Auth Pages */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background-color: var(--background-darker);
}

.auth-card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 40px;
  width: 100%;
  max-width: 450px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.auth-card h1 {
  margin-bottom: 20px;
  color: var(--text-color);
}

.auth-form {
  margin-top: 30px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  background: var(--background-darker);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s;
  color: var(--text-color);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.password-hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

.forgot-password {
  display: block;
  margin-top: 5px;
  text-align: right;
  font-size: 14px;
  color: var(--primary-color);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.auth-footer {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

/* Profile Page */
.profile-container {
  display: flex;
  min-height: 100vh;
  background-color: var(--background-dark);
}

.profile-sidebar {
  width: 280px;
  background: var(--card-bg);
  border-right: 1px solid var(--border-color);
}

.profile-nav {
  padding: 30px 0;
}

.nav-header {
  padding: 0 25px 25px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.nav-header h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.user-email {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-nav ul {
  list-style: none;
}

.profile-nav li {
  margin-bottom: 5px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 25px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover {
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--text-color);
}

.nav-link.active {
  color: var(--primary-color);
  background-color: rgba(108, 92, 231, 0.2);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--primary-color);
}

.nav-link i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.logout-btn {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.profile-content {
  flex: 1;
  padding: 40px;
}

.profile-header {
  margin-bottom: 30px;
}

.profile-header h1 {
  font-size: 2rem;
}

.profile-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.info-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 25px;
  border: 1px solid var(--border-color);
}

.info-card h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.info-item {
  margin-bottom: 15px;
  display: flex;
}

.info-label {
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 10px;
  min-width: 150px;
}

.info-value {
  color: var(--text-color);
}

.profile-form {
  margin-top: 20px;
}

/* Messages */
.error-message {
  color: var(--error-color);
  margin-top: 20px;
  padding: 12px 15px;
  border-radius: 5px;
  background-color: rgba(255, 118, 117, 0.1);
  border: 1px solid rgba(255, 118, 117, 0.3);
  display: none;
}

.success-message {
  color: var(--success-color);
  margin-top: 20px;
  padding: 12px 15px;
  border-radius: 5px;
  background-color: rgba(85, 239, 196, 0.1);
  border: 1px solid rgba(85, 239, 196, 0.3);
  display: none;
}

/* Icons (using Unicode as fallback) */
.icon-dashboard::before { content: "📊"; }
.icon-profile::before { content: "👤"; }
.icon-settings::before { content: "⚙️"; }
.icon-logout::before { content: "🚪"; }

/* Responsive */
@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
  }
  
  .profile-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .auth-card {
    padding: 30px 20px;
  }
  
  .profile-info {
    grid-template-columns: 1fr;
  }
}
