/* ==================== SRC DOCUMENTS PAGE STYLES ==================== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f8f9ff;
  color: #0b1c30;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==================== TOP APP BAR ==================== */
.top-app-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #c3c6d1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  height: 60px;
  width: 100%;
}

@media (min-width: 768px) {
  .top-app-bar {
    height: 64px;
    padding: 0 24px;
  }
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #003366;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .logo-icon {
    width: 40px;
    height: 40px;
  }
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 6px;
}

.logo-text {
  font-size: 16px;
  font-weight: 800;
  color: #001e40;
}

@media (min-width: 768px) {
  .logo-text {
    font-size: 18px;
  }
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  color: #001e40;
}

.icon-btn:active {
  transform: scale(0.95);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  flex: 1;
  padding: 16px;
  padding-bottom: 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .main-content {
    padding: 24px;
  }
}

/* ==================== HERO SECTION ==================== */
.hero-section .bg-gradient-to-r {
  background: linear-gradient(135deg, #001e40, #003366);
}

/* ==================== SEARCH SECTION ==================== */
.search-input {
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

/* ==================== CATEGORY TABS ==================== */
.category-tab {
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-tab.active {
  background: #003366;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.2);
}

.category-tab:active {
  transform: scale(0.96);
}

/* ==================== DOCUMENT CARDS ==================== */
.doc-card {
  transition: all 0.2s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.download-btn {
  transition: all 0.2s ease;
  cursor: pointer;
}

.download-btn:active {
  transform: scale(0.96);
}

/* ==================== BOTTOM NAVIGATION ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-top: 1px solid #c3c6d1;
  box-shadow: 0 -4px 12px rgba(0, 51, 102, 0.05);
}

@media (min-width: 768px) {
  .bottom-nav {
    height: 64px;
    padding: 0 20px;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #43474f;
  transition: all 0.2s;
  gap: 2px;
  flex: 1;
  padding: 8px 0;
}

.nav-item.active {
  color: #001e40;
}

.nav-item.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

@media (min-width: 768px) {
  .nav-label {
    font-size: 11px;
  }
}

.nav-item:active {
  transform: scale(0.95);
}

.nav-item .material-symbols-outlined {
  font-size: 22px;
}

@media (min-width: 768px) {
  .nav-item .material-symbols-outlined {
    font-size: 24px;
  }
}

/* ==================== FLOATING ACTION BUTTON ==================== */
.fab {
  position: fixed;
  right: 16px;
  bottom: 80px;
  width: 50px;
  height: 50px;
  background: #fecb00;
  color: #001e40;
  border: none;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 90;
}

@media (min-width: 768px) {
  .fab {
    right: 24px;
    bottom: 84px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
  }
}

.fab:active {
  transform: scale(0.92);
}

.fab .material-symbols-outlined {
  font-size: 26px;
  font-weight: bold;
}

@media (min-width: 768px) {
  .fab .material-symbols-outlined {
    font-size: 30px;
  }
}

/* ==================== UTILITY CLASSES ==================== */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
  .category-tab {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .doc-card {
    padding: 12px;
  }
  
  .download-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  
  .flex-wrap {
    flex-direction: column;
  }
}