/* UHPHP Help Navigation Page Styles */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Roboto',
    'Helvetica Neue',
    Arial,
    sans-serif;
  line-height: 1.6;
  background-color: var(--gray-100);
  color: var(--dark);
  overflow: hidden;
  height: 100vh;
  display: flex;
}

/* Layout Classes */
.flex {
  display: flex;
}

.flex-1 {
  flex: 1;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-2 > * {
  margin-right: 0.5rem;
}

/* Width and Height Classes */
.w-5 {
  width: 1.25rem;
}

.w-8 {
  width: 2rem;
}

.w-64 {
  width: 16rem;
}

.w-full {
  width: 100%;
}

.h-8 {
  height: 2rem;
}

.h-full {
  height: 100%;
}

.h-screen {
  height: 100vh;
}

.max-h-calc-100vh-80px {
  max-height: calc(100vh - 80px);
}

/* Spacing Classes */
.p-4 {
  padding: 1rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-3 {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

/* Background and Color Classes */
.bg-white {
  background-color: var(--white);
}

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

.bg-gray-50 {
  background-color: var(--gray-100);
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.bg-black-50 {
  background-color: rgba(0, 0, 0, 0.5);
}

.text-white {
  color: var(--white);
}

.text-primary {
  color: var(--primary);
}

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

.text-gray-medium {
  color: var(--gray-500);
}

.text-lg {
  font-size: 1.125rem;
}

.text-xs {
  font-size: 0.75rem;
}

.uppercase {
  text-transform: uppercase;
}

.font-bold {
  font-weight: 700;
}

/* Border and Shadow Classes */
.border-b {
  border-bottom: 1px solid var(--border-color);
}

.border-0 {
  border: none;
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

/* Border Radius Classes */
.rounded-md {
  border-radius: var(--radius-md);
}

/* Position and Z-Index Classes */
.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

/* Overflow Classes */
.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* Display Classes */
.hidden {
  display: none;
}

/* Text Alignment */
.text-center {
  text-align: center;
}

/* Hover States */
.hover\:bg-gray-100:hover {
  background-color: var(--gray-100);
}

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

/* Transitions */
.transition-nav {
  transition: all 0.3s ease-in-out;
}

/* Responsive Classes */
@media (min-width: 768px) {
  .md\:relative {
    position: relative;
  }

  .md\:hidden {
    display: none;
  }
}

@media (max-width: 767px) {
  .-translate-x-full {
    transform: translateX(-100%);
  }
}

/* Navigation Specific Styles */
.sidebar {
  transition: transform 0.3s ease-in-out;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 20;
}

@media (max-width: 767px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 16rem;
    transform: translateX(-100%);
  }
}

.nav-active {
  background-color: rgba(22, 93, 255, 0.1);
  color: var(--primary);
  border-left: 4px solid var(--primary);
}

.nav-active:hover {
  background-color: rgba(22, 93, 255, 0.1);
  color: var(--primary);
}

/* Icon Styles */
.w-5 {
  width: 1.25rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

/* Iframe Styles */
iframe {
  border: none;
  width: 100%;
  height: 100%;
}

/* Button Styles */
button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.25rem;
  color: var(--gray-500);
  transition: color 0.2s ease;
}

button:hover {
  color: var(--dark);
}

/* Link Styles */
nav {
  padding-right: 2rem;
}
nav a {
  text-decoration: none;
  color: var(--gray-600);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.25rem;
  cursor: pointer;
}

nav a:hover {
  background-color: var(--gray-100);
}

nav a i {
  font-size: 1.25rem;
}

/* Section Headers */
nav p {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 0 1rem;
  margin-bottom: 0.5rem;
}

/* Logo Area */
.logo-area {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon i {
  color: var(--white);
  font-size: 1.25rem;
}

.logo-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

/* Main Content Area */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.content-frame-container {
  flex: 1;
  overflow: hidden;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

/* Utility Classes */
.rotate-180 {
  transform: rotate(180deg);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .sidebar.open {
    transform: translateX(0);
  }

  .overlay.open {
    display: block;
  }

  /* Mobile Navigation Adjustments */
  nav a {
    padding: 0.75rem 0.75rem;
  }

  .logo-title {
    font-size: 1rem;
  }
}

/* Ensure proper scrolling on mobile */
@media (max-width: 768px) {
  .sidebar {
    overflow-y: auto;
  }
}

/* Add Font Awesome support */
.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
