:root {
    --primary-color: #4f46e5;
    --secondary-color: #64748b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #475569;
    --accent-color: #818cf8;
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-muted);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Header */
header {
    background-color: var(--card-bg);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 1rem 0;
    margin-bottom: 2rem !important;
    /* Override bootstrap mb-5 if needed */
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.9);
}

.brand-logo {
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--primary-color) !important;
}

/* Main Content */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-card {
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-bottom: 2rem;
    border: none;
}

.card-title1 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.card-text1 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.4);
    color: white;
}

.btn-secondary-custom {
    background-color: white;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary-custom:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #f8fafc;
}

/* PDF Images */
.image-box {
    margin-top: 2rem;
    width: 100%;
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 0;
    transition: transform 0.3s ease;
    background-color: white;
}

/* Removed hover effect on pages as it might be distracting for reading documents */
/*
.image-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
*/

.doc-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sidebar */
.sidebar-section {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-list li {
    margin-bottom: 0.75rem;
}

.recent-list a {
    display: block;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.2s;
}

.recent-list a:hover {
    background-color: #eef2ff;
    color: var(--primary-color);
    transform: translateX(2px);
}

/* Footer */
footer {
    background-color: white;
    margin-top: 4rem;
    padding-top: 3rem;
    padding-bottom: 1rem;
    border-top: 1px solid #e2e8f0;
}

.footer-heading {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    color: var(--secondary-color);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Search Box */
.search-form {
  position: relative;
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem;
  padding-right: 3rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  padding: 0.5rem;
}

.search-btn:hover {
  color: var(--primary-color);
}

/* Stats Bar */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-icon {
  width: 1.1em;
  height: 1.1em;
  opacity: 0.8;
}

/* Tags */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.875rem;
  background-color: #f1f5f9;
  color: var(--text-muted);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.tag-badge:hover {
  background-color: #e0e7ff;
  color: var(--primary-color);
  transform: translateY(-1px);
}

.tag-icon {
  margin-right: 0.35rem;
  width: 0.85em;
  height: 0.85em;
  opacity: 0.6;
}
