* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

:root {
  --bg-main: #fafbfc;
  --text-main: #0f172a;
  --side-list-hover-color: #e1e7ef;
  --main-color: #0284c7;
  --span-color: #475569;
  --sidebar-bg: #ffffff;
  --border-color: #e2e8f0;
}

:root[data-theme="dark"] {
  --bg-main: #0f172a;
  --text-main: #f1f5f9;
  --side-list-hover-color: #2f3b4d;
  --main-color: #38bdf8;
  --span-color: #94a3b8;
  --sidebar-bg: #1e293b;
  --border-color: #334155;
}

/* --------------------------------------------------------------------------------- */
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* SIDEBAR - NAVIGATION BAR */
.side-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: var(--sidebar-bg);
  border-right: 2px solid var(--border-color);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  
}

/* Profile Section */
.profile {
  display: flex;
  align-items: center;
  padding: 30px 20px;
  gap: 15px;
  border-bottom: 1px solid var(--border-color);
}

.profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--main-color);
}

.profile span {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}




/* Sidebar Menu */
.sidebar-menu {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  flex-grow: 1;
}

.sidebar-menu li {
  margin: 15px 15px;

}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  gap: 12px;
  
}

.sidebar-menu li a:hover{
  background-color: var(--side-list-hover-color);
  transform: translateX(6px);
  color: var(--main-color);
}

.sidebar-menu li a i {
  width: 20px;
  text-align: center;
  font-size: 18px;
}

/* Theme Toggle Container */
.theme-toggle-container {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.theme-toggle-btn {
  width: 100%;
  background: var(--main-color);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.theme-toggle-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.2);
  filter: brightness(1.1);
}

.theme-toggle-btn:active {
  transform: translateY(0);
}

#theme-icon {
  transition: transform 0.3s ease;
  font-size: 16px;
}

.theme-toggle-btn:hover #theme-icon {
  transform: rotate(25deg);
}

/* MAIN CONTENT class for all main content  */
.main-content {
  margin-left: 250px;
  padding: 20px;
  width: calc(100% - 250px);
  background-color: var(--bg-main);
  min-height: 100vh;
}

/* Title Section  class for all the  sections tittle */
.section-title {
  padding: 40px 0 20px 0;
  width: 100%;
}

/* Title Section text  class for all the  sections tittle text */
.section-title-text {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-main);
  border-left: 4px solid var(--main-color) !important;
  padding-left: 15px !important;
}

/* section-title-text.center  */

.section-title-text.center {
  text-align: center;
  border: none;
  padding-left: 0;
}

/* Home Intro */
.home-intro {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  color: var(--text-main);
}

.home-intro h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.home-intro p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--span-color);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.highlight {
  color: var(--main-color);
  font-weight: bold;
}

.btn-main {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--main-color);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-main:hover {
  background-color: var(--main-color);
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .side-bar {
    width: 100%;
    height: auto;
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    background: var(--sidebar-bg);
    z-index: 1000;
    flex-direction: row;
    border-top: 2px solid var(--border-color);
    border-right: none;
  }

  .profile {
    display: none;
  }

  .sidebar-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 10px 0;
    margin: 0;
    width: 100%;
  }

  .sidebar-menu li {
    margin: 0;
    flex: 1;
  }

  .sidebar-menu li a {
    flex-direction: column;
    padding: 10px 5px;
    font-size: 12px;
    text-align: center;
    gap: 5px;
  }

  .sidebar-menu li a:hover {
    transform: none;
  }

  .theme-toggle-container {
    display: none;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 20px 15px 80px 15px;
  }

  .section-title {
    padding: 20px 0 10px 0;
  }

  .section-title-text {
    font-size: 24px;
  }
}