/* =====================================================
   GLOBAL STYLES
===================================================== */
body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
}

.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* =====================================================
   SIDEBAR
===================================================== */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--color-bg-sidebar);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-right: 1px solid var(--color-border);
}

.logo-container {
    width: 50px; 
    height: 50px; 
    margin: 0; 
    overflow: hidden; 
}

.logo-container {
    background-image: url('logo.png');
    background-repeat: no-repeat;
    background-position: center;
        background-size: contain; 
}

.logo-container img:hover {
  transform: scale(1.05);
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 38px;
  flex-grow: 1;
  align-items: center;
  margin-top: 20px;
}

.menu-item {
  color: var(--color-text-muted);
  font-size: 22px;
  transition: color var(--transition-speed) ease,
    transform var(--transition-speed) ease;
}

.menu-item:hover,
.menu-item.active {
  color: var(--color-text);
  transform: scale(1.1);
}

.bottom-icon {
  color: var(--color-text-muted);
  font-size: 22px;
  margin-bottom: 10px;
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
  background-color: var(--color-bg-sidebar);
  height: var(--navbar-height);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 25px;
}

.brand {
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  font-size: 1.1rem;
  margin-right: 30px;
}

.nav-search input {
  background-color: var(--color-bg);
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  width: 250px;
  color: var(--color-text);
  font-size: 0.95rem;
  outline: none;
}

.nav-search input::placeholder {
  color: var(--color-placeholder);
}

/* =====================================================
   MAIN CONTENT
===================================================== */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.content {
  flex-grow: 1;
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
  background-color: var(--color-bg-sidebar);
  color: #fff;
  padding: 50px 20px 20px;
    border-top: 1px solid var(--color-border);

}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer h2, .footer h3 {
  margin-bottom: 15px;
  color: #f5f5f5;
}

.footer p {
  line-height: 1.6;
  font-size: 14px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #2b6eff;
}

.footer-bottom {
  /* text-align: center; is the only centering rule you need for a single line of text */
  text-align: center; 
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: #aaa;
  display: flex; 
    justify-content: center;
  /* REMOVE THIS LINE: display: flex; */
}

.footer-bottom p {
    /* 1. Ensure the paragraph only takes up the width it needs (not 100%) */
    width: fit-content; 
    /* 2. Set margin-left and margin-right to auto to center the block. */
    margin-left: auto;
    margin-right: auto;
    /* 3. Also center the text inside, just in case. */
    text-align: center;
}

.footer-logo img {
  width: 230px; /* Adjust as needed */
  height: auto;
  display: block;
  margin-bottom: 15px;
  transition: transform 0.3s;
}

.footer-logo img:hover {
  transform: scale(1.05);
}
.social-icons {
  display: flex;
  gap: 20px; /* spacing between icons */
}

.social-icons a {
  color: #fff; /* default icon color */
  font-size: 28px; /* make icons bigger */
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  transform: scale(1.3) rotate(-5deg); /* pop out effect with slight rotation */
  color: #2b6eff; /* change color on hover */
}




/* Define default variables if they are not set globally */
:root {
  --color-tooltip-bg: #222222; /* Dark background color for the box, similar to the image */
  --color-tooltip-text: #FFFFFF; /* White text color */
  --transition-speed: 0.2s; /* Fast transition for a snappy feel */
}

.justify-content-center {
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
}


/* =====================================================
   SECONDARY SIDEBAR
===================================================== */
.sidebar-secondary {
  width: var(--sidebar-secondary-width);
  background-color: var(--color-bg-sidebar);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.sidebar-secondary .sidebar-header {
  margin-bottom: 20px;
}

.sidebar-secondary h3 {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.stats-section {
  display: grid;
  gap: 12px;
  margin-bottom: 25px;
}

.stat-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 12px 16px;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.stat-card h2 {
  color: var(--color-text);
  margin: 5px 0 0;
  font-size: 1.3rem;
  font-weight: var(--font-weight-semibold);
}

.user-row {
  display: flex;
  align-items: center;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 8px;
  margin-bottom: 10px;
  transition: background-color var(--transition-speed) ease;
}

.user-row:hover {
  background-color: var(--color-hover);
}

.user-name {
  color: var(--color-text);
  font-size: 0.9rem;
}

.user-role {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}
/* =====================================================
   INPUT FIELDS
===================================================== */
.input-field {
  width: 100%;
  background-color: var(--color-bg-sidebar);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  padding: 10px;
  font-size: 0.95rem;
  transition: all var(--transition-speed) ease;
  outline: none;
}

.input-field::placeholder {
  color: var(--color-placeholder);
}

.input-field:hover {
  border-color: #2e2e2e;
  background-color: #121212;
}

.input-field:focus {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
  background-color: #141414;
}

.input-field:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Input with Icon */
.input-icon {
  position: relative;
  width: 100%;
  max-width: 280px;
}
.input-icon input {
  padding-left: 38px;
}
.input-icon i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #777;
  font-size: 1rem;
  pointer-events: none;
}
/* =====================================================
   TITLES & SUBTITLES
===================================================== */
.title {
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin: 0;
}
.title-xl {
  font-size: 2rem;
  letter-spacing: 0.5px;
}
.title-lg {
  font-size: 1.5rem;
}
.title-md {
  font-size: 1.2rem;
}
.title-sm {
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
}

.subtitle {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-regular);
  font-size: 0.95rem;
  margin-top: 4px;
  margin-bottom: 15px;
  letter-spacing: 0.3px;
}
.title-accent {
  color: var(--color-accent);
}
/* =====================================================
   PROFILE CARD
===================================================== */
.profile-card {
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px;
  width: 240px;
  color: var(--color-text);
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background-color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.profile-info {
  flex: 1;
}
.profile-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
}
.profile-level {
  font-size: 0.85rem;
  color: #a8b1c1;
  margin-top: 4px;
}

.level-bar {
  background-color: var(--color-progress-bg);
  border-radius: 6px;
  height: 8px;
  width: 100%;
  margin-top: 6px;
  overflow: hidden;
}
.level-progress {
  background: var(--color-progress);
  height: 100%;
  border-radius: 6px;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-decoration: none;
  line-height: 1;
  
}

/* Base States */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =====================================================
   PRIMARY BUTTON
===================================================== */
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 10px rgba(95, 95, 255, 0.3);
}
.btn-primary:hover {
  background: #4f4fff;
  box-shadow: 0 0 12px rgba(95, 95, 255, 0.4);
}
.btn-primary:active {
  background: #3a3aff;
}

/* =====================================================
   WHITE BUTTON
===================================================== */
.btn-white {
  background: #fff;
  color: #000;
}
.btn-white:hover {
  background: #e6e6e6;
}
.btn-white:active {
  background: #d9d9d9;
}

/* =====================================================
   DARK BUTTON
===================================================== */
.btn-dark {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #2e2e2e;
  box-shadow:none!important;

}
.btn-dark:hover {
  background: #2a2a2a;
}
.btn-dark:active {
  background: #111;
}

/* =====================================================
   RED BUTTON
===================================================== */
.btn-red {
  background: #e53935;
  color: #fff;
  border: 1px solid #e53935;
}
.btn-red:hover {
  background: #d32f2f;
}
.btn-red:active {
  background: #b71c1c;
}

/* =====================================================
   GREEN BUTTON
===================================================== */
.btn-green {
  background: #34d399;
  color: #fff;
  border: 1px solid #34d399;
}
.btn-green:hover {
  background: #10b981;
}
.btn-green:active {
  background: #059669;
}

/* =====================================================
   BLUE BUTTON
===================================================== */
.btn-blue {
  background: #3b82f6; /* Vibrant blue */
  color: #fff;
  border: 1px solid #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}
.btn-blue:hover {
  background: #2563eb;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}
.btn-blue:active {
  background: #1d4ed8;
}

/* =====================================================
   OUTLINE BUTTONS
===================================================== */
.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: rgba(95, 95, 255, 0.05);
}
.btn-outline:active {
  background-color: rgba(95, 95, 255, 0.1);
}

/* =====================================================
   BUTTON SIZE VARIANTS
===================================================== */
.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 1.05rem;
}

/* =====================================================
   MODAL
===================================================== */

/* Modal Background Overlay */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

/* Show Modal */
.modal.active {
  display: flex;
  animation: fadeIn 0.25s ease-in-out;
}

/* Modal Container */
.modal-content {
  background: var(--color-bg-card);
  color: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  transform: translateY(-15px);
  animation: slideIn 0.3s ease forwards;
}

/* Modal Header */
.modal-header {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Modal Body */
.modal-body {
  font-size: 0.95rem;
  color: #b3b3b3;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 1.4rem;
  cursor: pointer;
  transition: 0.2s;
}
.modal-close:hover {
  color: #fff;
}

/* Reuse your existing button classes */
.modal-footer .btn {
  border-radius: 8px;
  padding: 8px 14px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-25px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* =====================================================
   CHECKBOX (KUBEO THEME)
===================================================== */

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #ccc;
  user-select: none;
  font-size: 0.95rem;
}

/* Hide the default checkbox */
.checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-radius: 6px;
  background: #111;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

/* Hover effect */
.checkbox input[type="checkbox"]:hover {
  border-color: #555;
}

/* Default checkmark */
.checkbox input[type="checkbox"]::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  background: transparent;
  border-radius: 2px;
  transform: scale(0);
  transition: all 0.2s ease;
}

/* Checked State (default blue) */
.checkbox input[type="checkbox"]:checked {
  border-color: #3b82f6;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}
.checkbox input[type="checkbox"]:checked::after {
  background: #fff;
  transform: scale(1);
}

/* =====================================================
   COLOR VARIANTS
===================================================== */

/* Green */
.checkbox.green input[type="checkbox"]:checked {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Red */
.checkbox.red input[type="checkbox"]:checked {
  background: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* White */
.checkbox.white input[type="checkbox"]:checked {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.checkbox.white input[type="checkbox"]:checked::after {
  background: #000;
}
/* =====================================================
   FILE INPUT
===================================================== */

.file-input {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 12px 16px;
  color: #bbb;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
}

/* Hover and Focus */
.file-input:hover {
  border-color: #3b82f6;
  color: #fff;
  background: #151515;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

/* Active/Click */
.file-input:active {
  transform: scale(0.98);
}

/* Hidden native input */
.file-input input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Icon (optional) */
.file-input i {
  font-size: 1.1rem;
  color: #3b82f6;
  transition: color 0.25s ease;
}
.file-input:hover i {
  color: #60a5fa;
}

/* =====================================================
   FILE INPUT VARIANTS
===================================================== */

/* Blue */
.file-input.blue {
  border-color: #3b82f6;
}
.file-input.blue:hover {
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

/* Green */
.file-input.green {
  border-color: #10b981;
}
.file-input.green:hover {
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

/* Red */
.file-input.red {
  border-color: #ef4444;
}
.file-input.red:hover {
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

/* White */
.file-input.white {
  border-color: #fff;
  color: #fff;
}
.file-input.white:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

/* =====================================================
   DRAG OVER ANIMATION
===================================================== */
.file-input.dragover {
  border-color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
}
/* =====================================================
   PAGINATION (KUBEO THEME)
===================================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}

.pagination button,
.pagination a {
  background-color: #101010;
  color: #bbb;
  border: 1px solid #222322;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 38px;
  text-align: center;
}

/* Hover */
.pagination button:hover,
.pagination a:hover {
  color: #fff;
  border-color: #3b82f6;
  background-color: #141414;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.25);
}

/* Active */
.pagination .active {
  color: #fff;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Disabled */
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #111;
  border-color: #1a1a1a;
  box-shadow: none;
}

/* =====================================================
   COLOR VARIANTS
===================================================== */

/* Blue */
.pagination.blue .active {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-color: #3b82f6;
}

/* White */
.pagination.white .active {
  background: #fff;
  color: #111;
  border-color: #fff;
}

/* =====================================================
   PAGINATION ICONS
===================================================== */
.pagination .icon {
  font-size: 0.9rem;
  color: #888;
  transition: color 0.2s ease;
}

.pagination button:hover .icon {
  color: #fff;
}
/* =====================================================
   BOX / CARD
===================================================== */

.box {
  background-color: #101010;
  border: 1px solid #222322;
  border-radius: 14px;
  padding: 10px;
  color: #fff;
  transition: all 0.25s ease;
}

.float-right {
  margin-left: auto;
  display: block; /* or inline-block */
}

.text-center {
  text-align: center;
}
/* Search Dropdown Container */
.search-container {
  position: relative;
  width: 350px;
}

/* Input Box */
.search-box {
  background: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
}

/* Input with Icon */
.search-icon {
  position: relative;
  width: 100%;
  max-width: 34px;
}
.search-icon input {
  padding-left: 38px;
}
.search-icon i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #777;
  font-size: 1rem;
  pointer-events: none;
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  width: 100%;
}

/* Dropdown */
.search-dropdown {
  position: absolute;
  top: 45px;
  left: 0;
  width: 100%;
  background: #101010;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  padding: 7px 0;
  color: #fff;
  border: 1px solid #222;
  z-index: 10;
}

.dropdown-title {
  font-size: 13px;
  color: #999;
  padding: 6px 14px;
  margin-bottom: 4px;
}

/* Items */
.result-item {
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
}

.result-item:hover {
  background: #181818;
}

/* Text inside item */
.result-text .name {
  font-weight: 600;
  font-size: 14px;
}

.result-text .type {
  font-size: 12px;
  color: #888;
}
/* Highlighted Search Term */
.highlight {
  color: #aaa;
}

/* ===== Hide sidebars on mobile ===== */
@media (max-width: 900px) {
  .sidebar,
  .sidebar-secondary {
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100%;
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  /* If secondary sidebar is on the right */
  .sidebar-secondary {
    right: 0;
    left: auto;
    transform: translateX(100%);
  }

  .sidebar-secondary.active {
    transform: translateX(0);
  }
}
