/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* Define font variables */
:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}



body {
    background-color: #f8f9fa;
}

.brand-logo {
  max-width: 300px;
  margin-bottom: 2rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

/* Adjusted navbar to account for sidebar */
.navbar {
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-responsive {
    max-height: 400px;
    overflow-y: auto;
}

.table th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 1;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background-color: #212529;
  z-index: 1000;
  display: flex;
  flex-direction: column; /* Enable flex column layout */
}

/* Container for the main sidebar content */
.sidebar-content {
  flex: 1;          /* Takes available space */
  overflow-y: auto; /* Scrollable if content is too long */
  padding: 1rem;
}

/* Container for the flash messages */
.sidebar-messages {
  padding: 1rem;
  background-color: #1a1e21; /* Slightly different shade for messages section */
  max-height: 200px;    /* Maximum height for messages section */
  overflow-y: auto;     /* Scrollable if many messages */
}

/* Style the flash messages for dark sidebar */
.sidebar .alert {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.1);
}

.sidebar .alert:last-child {
  margin-bottom: 0;
}

.sidebar .alert-success {
  color: #00bc8c;
  border-color: #00bc8c;
}

.sidebar .alert-danger {
  color: #e74c3c;
  border-color: #e74c3c;
}

.sidebar .alert-warning {
  color: #f39c12;
  border-color: #f39c12;
}

.sidebar .alert-info {
  color: #3498db;
  border-color: #3498db;
}

/* Style close button for dark background */
.sidebar .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Sidebar navigation styling */
.sidebar .nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.75rem 1rem;
  opacity: 0.75;
}

.sidebar .nav-link:hover {
  opacity: 1;
  background: rgba(255,255,255,0.1);
}

.sidebar .nav-link.active {
  opacity: 1;
  background: rgba(255,255,255,0.1);
}

.sidebar .nav-link:hover {
  background-color: rgba(255,255,255,0.1);
}



/* -- Added custom CSS for fixed sidebar -- */
/* Main content area adjusted for fixed sidebar */
.main-content {
    margin-left: 280px;
    padding: 1rem;
    min-height: 100vh;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .main-content {
        margin-left: 0;
    }
    .navbar {
        margin-left: 0;
    }
}


.color-btn {
  width: 30px;
  height: 30px;
  margin: 0 5px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.navbar-brand {
  font-size: 1.5rem;
  text-decoration: none !important;
  white-space: nowrap;
}

.nav-tabs {
  flex-wrap: nowrap !important;
  max-width: 100% !important;
}


/* Apply fonts to elements */
body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.2;
}

/* Optional: Adjust specific element styles */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Improve readability for larger text blocks */
p, ul, ol {
  max-width: 70ch; /* Limit line length for better readability */
}

/* Enhance link styles */
a {
  color: #0077cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #005fa3;
  text-decoration: underline;
}

/* Improve form element typography */
input, select, textarea, button {
  font-family: var(--font-primary);
  font-size: 1rem;
}

/* Add smooth transitions for interactive elements */
button, .btn {
  transition: all 0.3s ease;
}