/* === Global Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
  min-height: 100vh;
  display: flex;
  color: #fff;
  overflow-x: hidden;
}
/* Logo */
.logo {
  width: 150px; /* Increase as needed */
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 12px;
  animation: float 3s ease-in-out infinite;
}

/* === Containers === */
.login-container,
.dashboard-container,
.update-container {
  width: 95%;
  max-width: 450px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  animation: fadeIn 1s ease-in-out;
  text-align: center;
  margin: auto;
}

/* === Sidebar === */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 15px;
  box-shadow: 4px 0 15px rgba(0,0,0,0.25);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
}

.sidebar .logo img {
  width: 100px;
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 12px;
  animation: float 3s ease-in-out infinite;
}

.sidebar .logo h2 {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}

.sidebar nav ul {
  list-style: none;
  width: 100%;
}

.sidebar nav ul li {
  margin: 15px 0;
}

.sidebar nav ul li a {
  display: block;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: 0.3s ease;
  text-align: center;
  font-weight: 500;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
  background: linear-gradient(45deg, #ff416c, #ff4b2b);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255,65,108,0.6);
}

.logout {
  margin-top: auto;
  padding: 10px 20px;
  border-radius: 25px;
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
  cursor: pointer;
  transition: 0.3s ease;
}

.logout:hover {
  transform: scale(1.08);
  box-shadow: 0 5px 15px rgba(255,65,108,0.6);
}

/* === Main Dashboard === */
.dashboard {
  margin-left: 260px;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  animation: slideUp 1s ease;
}

/* === User Info === */
.user-info {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
  animation: fadeIn 1s ease-in-out;
}

.user-info .avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.user-info h2 {
  font-size: 22px;
  margin-bottom: 5px;
}

.user-info p {
  font-size: 14px;
  opacity: 0.85;
}

/* === Cards === */
.card {
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h3 .icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* === Updates Section === */
.updates-card ul {
  list-style: none;
  max-height: 250px;
  overflow-y: auto;
  padding: 0 10px;
}

.updates-card ul li {
  background: rgba(255,255,255,0.15);
  margin: 10px 0;
  padding: 12px;
  border-radius: 12px;
  animation: fadeIn 0.6s ease;
  font-size: 14px;
}

/* === Inputs & Buttons === */
input, textarea {
  width: 100%;
  max-width: 400px;
  margin: 10px auto;
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 14px;
  transition: 0.3s ease;
}

input:focus, textarea:focus {
  transform: scale(1.03);
  background: #fff;
}

button {
  margin-top: 15px;
  padding: 12px 25px;
  background: linear-gradient(45deg, #ff416c, #ff4b2b);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.4s ease;
}

button:hover {
  transform: scale(1.08);
  background: linear-gradient(45deg, #ff4b2b, #ff416c);
  box-shadow: 0 5px 15px rgba(255,65,108,0.6);
}

/* === Charts === */
canvas {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 15px;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.2);
  max-width: 100%;
}

/* === Daily Update Form === */
textarea {
  height: 80px;
  resize: none;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: #ff416c;
  border-radius: 10px;
}

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === Responsive === */
@media screen and (max-width: 768px) {
  .dashboard {
    margin-left: 0;
    grid-template-columns: 1fr;
    padding: 15px;
  }
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 10px;
    justify-content: space-around;
    position: relative;
  }
  .sidebar nav ul {
    display: flex;
    gap: 10px;
  }
}
