.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #f0f0f0;
    padding: 20px;
    border-right: 1px solid #ddd;
  }
  
  .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .sidebar li {
    margin-bottom: 10px;
  }
  
  .sidebar a {
    text-decoration: none;
    color: #337ab7;
  }
  
  .sidebar a:hover {
    color: #23527c;
  }
  
  .main-content {
    margin-left: 250px;
    padding: 20px;
  }



  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #f0f0f0;
    padding: 20px;
    border-right: 1px solid #ddd;
    transition: width 0.5s; /* add transition effect */
  }
  
  .sidebar.collapse {
    width: 0;
  }
  
  .sidebar.collapse ul {
    display: none;
  }
  
  .main-content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.5s; /* add transition effect */
  }
  
  .main-content.sidebar-collapsed {
    margin-left: 0;
  }

/* login design */
/* === LOGIN PAGE DESIGN === */
body {
  font-family: "Roboto", sans-serif;
  background: linear-gradient(135deg, #0a74da, #2d9ee0);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
}

/* Container ensures the form stays centered */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Card styling */
.login-card {
  background: #fff;
  padding: 2rem 1.8rem;
  border-radius: 20px;
  width: 100%;
  max-width: 400px; /* allows flexibility */
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  text-align: center;
  animation: fadeIn 0.7s ease-in-out;
  box-sizing: border-box;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.company-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

/* Header */
.login-header h2 {
  margin: 10px 0 5px;
  color: #222;
  font-weight: 600;
  font-size: 1.4rem;
}

.login-header p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.form-group {
  width: 100%;
  margin-bottom: 15px;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  text-align: center;
  transition: 0.3s;
  box-sizing: border-box;
}

.input:focus {
  border-color: #0a74da;
  outline: none;
  box-shadow: 0 0 0 2px rgba(10,116,218,0.2);
}

/* Button */
.login-button {
  width: 100%;
  background: #0a74da;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.login-button:hover {
  background: #095ab8;
}

/* Footer links */
.footer-links {
  margin-top: 20px;
  font-size: 0.85rem;
}

.footer-links a {
  color: #0a74da;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* === RESPONSIVENESS === */
@media (max-width: 768px) {
  body {
    padding: 0.5rem;
    background: linear-gradient(160deg, #0a74da, #2d9ee0);
  }

  .login-card {
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  }

  .logo-img {
    width: 60px;
    height: 60px;
  }

  .login-header h2 {
    font-size: 1.2rem;
  }

  .input, .login-button {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .login-card {
    max-width: 95%;
    padding: 1.2rem;
  }

  .login-header h2 {
    font-size: 1.1rem;
  }

  .logo-img {
    width: 50px;
    height: 50px;
  }
}
