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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f7;
}

/* LOGIN */
.login-body {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: center;
}

.brand {
  margin-bottom: 30px;
  color: #9c27b0;
}
.brand i {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.brand h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}
.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}
.input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #f8f9fa;
}

.btn-primary {
  background: #9c27b0;
  color: white;
  border: none;
  padding: 14px 20px;
  width: 100%;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
}
.btn-primary:hover {
  background: #8e24aa;
}

.error {
  color: #e53935;
  margin: 15px 0;
  font-size: 0.9rem;
}
.success {
  color: #43a047;
  margin: 15px 0;
  font-size: 0.9rem;
}

/* DASHBOARD */
.dashboard-body {
  display: flex;
  min-height: 100vh;
  background-color: #fafafa;
}

.sidebar {
  width: 280px;
  background: #1a1a2e;
  color: white;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: #bb86fc;
}

.sidebar nav ul {
  list-style: none;
  flex: 1;
}
.sidebar nav ul li {
  margin-bottom: 10px;
}
.sidebar nav ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: #ddd;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
}
.sidebar nav ul li a:hover,
.sidebar nav ul li.active a {
  background: #9c27b0;
  color: white;
}

.logout a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: #ff8a80;
  text-decoration: none;
  border-radius: 8px;
}

.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 40px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
header h1 {
  font-size: 2rem;
  color: #1a1a2e;
}
.user-info {
  text-align: right;
}
.user-info span {
  font-weight: 600;
  color: #1a1a2e;
}
.user-info small {
  color: #666;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 15px;
}
.card i {
  font-size: 1.8rem;
  padding: 15px;
  border-radius: 50%;
  color: white;
}
.icon-art { background: #9c27b0; }
.icon-msg { background: #00acc1; }
.icon-com { background: #fb8c00; }
.icon-view { background: #43a047; }
.card h3 {
  font-size: 0.95rem;
  color: #555;
}
.card p {
  font-size: 1.4rem;
  font-weight: bold;
  color: #1a1a2e;
}

.recent-section h2 {
  margin-bottom: 20px;
  color: #1a1a2e;
  font-size: 1.3rem;
}
.activity-list {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.activity-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  color: #555;
}
.activity-list li:last-child {
  border-bottom: none;
}