/* Sidebar links */
.sb a {
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.sb a i {
    color: #888;
    font-size: 1rem;
    transition: color 0.2s ease;
}

/* Hover: danger color */
.sb a:hover {
    background-color: rgba(220, 53, 69, 0.1); /* light red bg */
    color: #dc3545;
}

.sb a:hover i {
    color: #dc3545;
}

/* Active: primary color */
.sb a.active {
    color: #0d6efd;
    background-color: #eaf6ff; /* light blue bg */
    font-weight: 500;
}

.sb a.active i {
    color: #0d6efd;
}

/* Sidebar container */
#sidebar {
    transition: width 0.3s ease;
    overflow: hidden;
    position: relative;
}

#sidebar.collapsed {
    width: 80px !important;
}

#sidebar.collapsed .sb a span {
    display: none;
}

#sidebar.collapsed .sb a {
    justify-content: center;
    padding: 8px 0;
    position: relative;
}

/* Floating label for collapsed sidebar */
.floating-label {
    position: fixed;
    left: 80px;
    transform: translateY(-50%);
    background: #f5f5f5;
    color: #000;
    padding: 8px 20px;
    white-space: nowrap;
    z-index: 1000;
    min-width: 140px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Floating label active state: primary */
.floating-label-active {
    background-color: #eaf6ff;
    color: #0d6efd;
    font-weight: 500;
}

/* Floating label hover (when not active): danger */
.floating-label-hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    font-weight: 500;
}

/* Footer Section */
.footer-section {
  background: #2c3e50;
  color: white;
  padding: 60px 0 20px;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.footer-description {
  color: #bdc3c7;
  line-height: 1.6;
  margin-bottom: 25px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
  color: white;
}

.footer-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: white;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-menu a:hover {
  color: #0d6efd;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  margin-top: 40px;
  padding-top: 25px;
}

.copyright {
  color: #bdc3c7;
  margin: 0;
  font-size: 0.9rem;
}

.footer-contact {
  text-align: right;
}

.contact-item {
  color: #bdc3c7;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-contact {
    text-align: left;
    margin-top: 15px;
  }
}