/**
 * OrgSync Design System - Main Entry Point
 * 
 * Import this single file to get the complete design system
 * 
 * @version 1.0.0
 * @date December 26, 2025
 */

/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap");

/* Design System Modules */
@import "variables.css";
@import "layout.css";
@import "components.css";

/* ===== Global Styles ===== */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
  color: var(--hnu-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--hnu-green-dark);
}

/* Focus states for accessibility */
:focus-visible {
  outline: 2px solid var(--hnu-green);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--hnu-green);
  color: var(--white);
}

/* Scrollbar styling (Webkit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.text-sm {
  font-size: var(--text-sm);
}
.text-base {
  font-size: var(--text-base);
}
.text-lg {
  font-size: var(--text-lg);
}
.text-xl {
  font-size: var(--text-xl);
}

.font-medium {
  font-weight: var(--font-medium);
}
.font-semibold {
  font-weight: var(--font-semibold);
}
.font-bold {
  font-weight: var(--font-bold);
}

.text-gray {
  color: var(--gray-500);
}
.text-muted {
  color: var(--gray-600);
}
.text-dark {
  color: var(--gray-900);
}
.text-success {
  color: var(--success);
}
.text-warning {
  color: var(--warning);
}
.text-danger {
  color: var(--danger);
}
.text-hnu-green {
  color: var(--hnu-green);
}

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

.rounded {
  border-radius: var(--radius-md);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-full {
  border-radius: var(--radius-full);
}

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

.hidden {
  display: none;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}

.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}

.cursor-pointer {
  cursor: pointer;
}

/* Truncate text */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Mobile PWA Styles ===== */

/* Bottom Navigation */
.mobile-bottom-nav {
  display: none; /* Hidden on desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--gray-200);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  flex: 1;
  color: var(--gray-500);
  font-size: 10px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-item.active {
  color: var(--hnu-green);
}

.nav-item .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.nav-item-main {
  position: relative;
  top: -24px; /* Lift up */
}

.nav-item-main .icon-circle {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--hnu-green) 0%, #006400 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 77, 26, 0.3);
  border: 4px solid var(--white);
}

.nav-item-main .icon-circle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px; /* Space for bottom nav */
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .header-logo img {
    height: 32px;
    width: 32px;
  }

  .header-content h1 {
    font-size: 1rem;
  }

  .header .logout-btn,
  .header .role {
    display: none;
  }

  .scanner-container {
    padding: 10px;
  }

  .action-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* Hide desktop-only elements specific to student dashboard if needed */
  .desktop-only {
    display: none;
  }
}
