/* LOGIN STYLE */
:root {
  --primary-color: #1b2b26; /* #4361ee; */
  --secondary-color: #cb9d2a; /* #3f37c9;  */
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --success-color: #4cc9f0;
  --whitecolor: white;
  --form-border-color: #999;
  --accent-color: #e3d5b1;
  /* --driftwood: #cba135;
  --timbergreen: #1b2b26;
  --ropeGold: #965d1c;
  --astral: #38909d;
  --dallas: #645223;
  --mineralgreen: #39534f;
  --plantation: #1f323a; */

  --sidebar-width: 250px;
  --sidebar-collapsed-width: 70px;

  --gradient: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fb;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* change primary & secondary */
a:link.primary,
a:active.primary,
a:visited.primary {
  color: var(--primary-color);
}

a:hover.primary {
  color: var(--secondary-color);
}

a:link.secondary,
a:active.secondary,
a:visited.secondary {
  color: var(--secondary-color) !important;
}

a:hover.secondary {
  color: var(--primary-color);
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  transform: scale(1.05);
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-lighter {
  background-color: #d2cbba !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}
/* end change primary * secondary */

.form-section-header {
  background: var(--accent-color);
  /* opacity: 0.3; */
  padding: 7px;
  border-radius: 10px;
  color: var(--primary-color);
}

#passwordStrengthIndicator {
  height: 6px;
  border-radius: 8px;
  font-size: 13px;
}

/* Sidebar Styles */
#sidebar {
  width: var(--sidebar-width);
  background: var(--primary-color);
  /* background: linear-gradient(
    180deg,
    var(--primary-color),
    var(--secondary-color)
  ); */
  color: var(--whitecolor);
  position: fixed;
  height: 100vh;
  overflow-y: scroll;
  transition: all 0.3s;
  z-index: 1000;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-collapsed #sidebar {
  width: var(--sidebar-collapsed-width);
}

.sidebar-header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
  font-size: 1.5rem;
  margin: 0;
  white-space: nowrap;
}

.sidebar-header .logo-collapsed {
  display: none;
  font-size: 1.8rem;
  font-weight: bold;
}

.sidebar-collapsed .sidebar-header h3 {
  display: none;
}

.sidebar-collapsed .sidebar-header .logo-collapsed {
  display: block;
  text-align: center;
}

.sidebar-menu {
  padding: 1rem 0;
}

.sidebar-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  position: relative;
}

.sidebar-menu a {
  color: var(--whitecolor);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-menu a i {
  margin-right: 10px;
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.sidebar-collapsed .sidebar-menu a span {
  display: none;
}

.sidebar-collapsed .sidebar-menu a i {
  margin-right: 0;
  font-size: 1.4rem;
}

.sidebar-menu .badge {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.sidebar-collapsed .sidebar-menu .badge {
  display: none;
}

/* Main Content Styles */
#content {
  margin-left: var(--sidebar-width);
  transition: all 0.3s;
  min-height: 100vh;
}

.sidebar-collapsed #content {
  margin-left: var(--sidebar-collapsed-width);
}

/* Top Navbar */
.top-navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.toggle-sidebar-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-color);
  cursor: pointer;
}

.user-menu img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Cards */
.dashboard-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  overflow: hidden;
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

/* Charts */
.chart-container {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Tables */
.data-table {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.data-table thead th {
  border-bottom: none;
  background-color: var(--primary-color);
  padding: 1rem;
  font-weight: 600;
  color: var(--whitecolor);
}

.data-table tbody td {
  padding: 3px;
  vertical-align: middle;
  font-size: 14px;
}

/* Footer */
.footer {
  background-color: var(--light-color);
  padding: 15px 40px;
  border-top: 1px solid #eee;
  font-size: 12px;
  position: fixed; /* Fixes the footer relative to the viewport */
  bottom: 0; /* Positions it at the bottom of the viewport */
  left: 0; /* Aligns it to the left edge of the viewport */
  width: 100%; /* Makes it span the full width of the viewport */
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #sidebar {
    margin-left: calc(-1 * var(--sidebar-width));
  }

  .sidebar-mobile-open #sidebar {
    margin-left: 0;
  }

  #content {
    margin-left: 0;
  }

  .sidebar-mobile-open #content {
    margin-left: 0;
    position: relative;
    left: var(--sidebar-width);
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .sidebar-mobile-open .overlay {
    display: block;
  }
}

.login-page-body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-color);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f5f7fb"/><path d="M0 50 L50 0 L100 50 L50 100 Z" fill="%234361ee" opacity="0.03"/></svg>');
}

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

.login-card {
  background-color: var(--whitecolor);
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(67, 97, 238, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.login-card:hover {
  transform: translateY(-5px);
}

.login-header {
  background: var(--gradient);
  color: var(--whitecolor);
  padding: 2.5rem 2rem;
  text-align: center;
}

.login-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--whitecolor);
}

.login-header p {
  opacity: 0.9;
  margin-bottom: 0;
}

.login-body {
  padding: 2.5rem 2rem;
}

.form-control {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--form-border-color);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15);
}

/* .input-group-text {
  background-color: var(--light-color);
  border: 1px solid var(--form-border-color);
  padding: 0px 1rem !important;
} */

.login-btn {
  background: var(--gradient);
  border: none;
  color: var(--whitecolor);
  padding: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  width: 100%;
  transition: all 0.3s;
}

.login-btn:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(67, 97, 238, 0.2);
}

.login-btn:active {
  transform: translateY(0);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #6c757d;
  margin: 1.5rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--form-border-color);
}

.divider span {
  padding: 0 1rem;
}

.social-login {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  flex: 1;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #e1e5f1;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-btn:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

.social-btn i {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.social-btn.google i {
  color: #db4437;
}

.social-btn.facebook i {
  color: #4267b2;
}

.social-btn.twitter i {
  color: #1da1f2;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-label {
  color: #6c757d;
}

.login-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e1e5f1;
  color: #6c757d;
}

.login-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

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

.alert {
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.password-toggle {
  cursor: pointer;
  color: #6c757d;
}

.password-toggle:hover {
  color: var(--primary-color);
}

.login-logo img {
  height: 100px;
  width: auto;
  padding-bottom: 8px;
}

/* Animation for form elements */
.form-group {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.form-group:nth-child(1) {
  animation-delay: 0.1s;
}
.form-group:nth-child(2) {
  animation-delay: 0.2s;
}
.form-group:nth-child(3) {
  animation-delay: 0.3s;
}
.form-group:nth-child(4) {
  animation-delay: 0.4s;
}

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

/* Responsive adjustments */
@media (max-width: 576px) {
  .login-container {
    padding: 15px;
  }

  .login-header,
  .login-body {
    padding: 1.5rem 1.25rem;
  }

  .social-login {
    flex-direction: column;
  }
}

/* END LOGIN STYLE */

.help-box {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  border: 3px solid #999;
  margin-top: 30px;
}

.help-box h3 {
  margin-top: 0;
  color: #2c3e50;
}

.data-type {
  margin: 40px 0;
  padding: 12px;
  background: var(--whitecolor);
  border-radius: 6px;
  border-left: 4px solid var(--secondary-color);
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.data-type strong {
  color: var(--secondary-color);
  font-size: 26px;
}

.data-type p {
  padding: 5px;
}

/* FORMS */

input,
select {
  appearance: none;
  padding: 11px;
  margin: 6px 0;
  width: 100%;
  border: 1px solid #555;
  border-radius: 6px;
  font-size: 15px;
}

input[type="checkbox"] {
  appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid #555;
  border-radius: 4px;
  cursor: pointer;
  margin: 5px;
}

.search-container {
  background-color: white;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 3px 6px;
  /* max-width: 500px; */
  width: 100%;
  transition: all 0.3s ease;
  border: 1px solid var(--secondary-color);
}

.search-container:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.form-control.search-input {
  border: none;
  background: transparent;
  padding-left: 5px;
  font-size: 1rem;
  height: 30px;
}

.form-control.search-input:focus {
  box-shadow: none;
  outline: none;
}

.btn-search {
  background-color: var(--primary-color);
  color: var(--whitecolor);
  border-radius: 50px;
  padding: 5px 10px;
  border: none;
  transition: all 0.3s ease;
}

.btn-search:hover {
  background-color: var(--primary-color);
  transform: scale(1.05);
  color: var(--whitecolor);
}

.search-icon {
  position: absolute;
  font-size: 30px;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.btn-save {
  background: #1b2b26;
  color: white;
  padding: 10px 24px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.btn-add {
  background: #27ae60;
  color: white;
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* Images */
.img-50 {
  width: 50px;
  height: auto;
  border-radius: 5px;
}

.img-36 {
  width: 36px;
  height: auto;
  border-radius: 4px;
}

.horintal-flex {
  display: flex;
  justify-content: space-between;
}
