/* CSS Custom Properties */
:root {
  --color-cta-red: #E40000;
  --color-bg-white: #FFFFFF;
  --color-text-black: #000000;
  --color-secondary-dark: #4A4A4A;
  --color-divider-light: #E5E5E5;
}

/* Basic Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--color-bg-white);
  color: var(--color-text-black);
}

/* Core Classes */

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-cta-red);
  color: var(--color-bg-white);
}

.btn-primary:hover {
  background-color: #c00000; /* Darker red for hover */
}

.btn-secondary {
    background-color: var(--color-bg-white);
    color: var(--color-secondary-dark);
    border-color: var(--color-divider-light);
}

/* Text Styles */
.text-primary {
  color: var(--color-text-black);
}

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

/* Divider */
.divider {
  border: 0;
  border-top: 1px solid var(--color-divider-light);
  margin: 1rem 0;
}

/* Background Colors */
.bg-accent {
  background-color: var(--color-cta-red);
  color: var(--color-bg-white);
}

.bg-neutral-dark {
  background-color: var(--color-secondary-dark);
  color: var(--color-bg-white);
}

.bg-neutral-light {
  background-color: var(--color-divider-light);
  color: var(--color-text-black);
}
/* Layout Styles */
.d-flex {
  display: flex;
}

.flex-grow-1 {
  flex-grow: 1;
}

/* Sidebar */
.sidebar {
  width: 250px;
  min-height: 100vh;
  position: fixed;
  background-color: var(--color-bg-white);
  border-right: 1px solid var(--color-divider-light);
  transition: all 0.3s;
  z-index: 1020;
}

.sidebar.collapsed {
  width: 80px;
}

.sidebar.collapsed .link-text {
  display: none;
}

.sidebar .folder-list-scroll {
  overflow-y: auto;
  max-height: calc(100vh - 200px); /* Adjust based on header/footer height */
}

.sidebar-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  font-size: 1.25rem;
  font-weight: bold;
  border-bottom: 1px solid var(--color-divider-light);
  color: var(--color-text-black);
}

#menu-toggle {
  margin-right: 1rem;
}

.sidebar-footer {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--color-secondary-dark);
  border-top: 1px solid var(--color-divider-light);
  position: sticky;
  bottom: 0;
  background-color: var(--color-bg-white);
}

/* Main Content */
.main-content {
  margin-left: 250px;
  padding: 1rem;
  transition: all 0.3s;
}

.main-content.collapsed {
  margin-left: 80px;
}

/* Header */
header {
  background-color: var(--color-cta-red);
  color: var(--color-bg-white);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#logout-btn {
    background-color: var(--color-bg-white);
    color: var(--color-cta-red);
    border-color: var(--color-cta-red);
}

header .company-name {
  font-size: 1rem;
  font-weight: bold;
}

header .profile-picture {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-bg-white);
}

/* Navigation */
.nav-link {
  color: var(--color-text-black);
  padding: 10px 15px;
  border-radius: 4px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  background-color: var(--color-divider-light);
}

.nav-link.active {
  background-color: var(--color-cta-red);
  color: var(--color-bg-white);
}
/* Media Player */
.fixed-top-container {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1030;
  transition: top 0.3s;
  padding-left: 0;
  max-height: 600px;
}

.custom-media-control {
  width: 95%;
}

.fixed-top-spacer {
  margin-top: 150px; /* Adjust based on the height of your fixed player */
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
  .fixed-top-container {
    width: 90%;
  }
  .custom-media-control {
    width: 85%;
  }
}
/* Markdown Content */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.markdown-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.markdown-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.markdown-content li {
  margin-bottom: 0.5rem;
}

.markdown-content code {
  background-color: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 90%;
}