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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and Navigation */
header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand a {
  color: white;
  text-decoration: none;
}

.nav-brand h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background-color: #34495e;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  color: white;
  font-size: 0.9rem;
}

.logout-form {
  margin: 0;
}

/* Main Content */
main {
  min-height: calc(100vh - 180px);
  padding: 2rem 0;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

footer p {
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: #3498db;
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

.btn-danger {
  background-color: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.btn-link {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

.btn-google {
  background-color: white;
  color: #444;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
}

.btn-google:hover {
  background-color: #f8f8f8;
}

.google-icon {
  width: 20px;
  height: 20px;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea.form-control {
  resize: vertical;
  font-family: 'Courier New', monospace;
}

.form-text {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #666;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.alert-error {
  background-color: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.alert-info {
  background-color: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #ddd;
}

.page-header h1 {
  font-size: 2rem;
  color: #2c3e50;
}

.page-actions {
  display: flex;
  gap: 0.5rem;
}

/* Auth Pages */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.auth-box {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.auth-box h1 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.auth-description {
  margin-bottom: 2rem;
  color: #666;
}

.auth-buttons {
  margin: 2rem 0;
}

.auth-footer {
  font-size: 0.875rem;
  color: #666;
  margin-top: 2rem;
}

/* Wiki Pages */
.wiki-home,
.wiki-all,
.wiki-view,
.wiki-create,
.wiki-edit,
.wiki-history,
.wiki-revision,
.wiki-compare {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-box {
  margin-bottom: 2rem;
}

.search-box form {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.page-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-item {
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
}

.page-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.page-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.page-item h3 {
  margin-bottom: 0.5rem;
}

.page-item h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.page-item h3 a:hover {
  color: #3498db;
}

.page-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
  flex-wrap: wrap;
  align-items: center;
}

.category-badge {
  background: #e8f4f8;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.85rem;
}

.category-badge a {
  color: #2980b9;
  text-decoration: none;
  font-weight: 500;
}

.category-badge a:hover {
  text-decoration: underline;
}

.page-excerpt {
  color: #555;
  line-height: 1.6;
}

.quick-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.quick-link {
  padding: 0.8rem 1.5rem;
  background: #ecf0f1;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.quick-link:hover {
  background: #bdc3c7;
}

.empty-message {
  text-align: center;
  color: #666;
  padding: 2rem;
}

/* Page Content */
.page-content {
  margin: 2rem 0;
  line-height: 1.8;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.page-content h1 { font-size: 2rem; }
.page-content h2 { font-size: 1.75rem; }
.page-content h3 { font-size: 1.5rem; }
.page-content h4 { font-size: 1.25rem; }

/* Collapsible headings */
.page-content .collapsible-heading {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.page-content .collapsible-heading:hover {
  color: #3498db;
}

.page-content .collapse-indicator {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.7em;
  transition: transform 0.2s;
}

.page-content .collapsible-heading.collapsed .collapse-indicator {
  transform: rotate(-90deg);
}

/* Hidden content in collapsed sections */
.page-content .collapsed-content {
  display: none !important;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
  padding-left: 0;
}

.page-content ul {
  list-style-type: disc;
  list-style-position: outside;
}

.page-content ol {
  list-style-type: decimal;
  list-style-position: outside;
}

.page-content ul ul {
  list-style-type: circle;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.page-content ul ul ul {
  list-style-type: square;
}

.page-content ol ol {
  list-style-type: lower-alpha;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.page-content ol ol ol {
  list-style-type: lower-roman;
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.page-content li > p {
  margin-bottom: 0.5rem;
}

.page-content li:last-child {
  margin-bottom: 0;
}

.page-content code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.page-content pre {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.page-content pre code {
  background: none;
  padding: 0;
}

.page-content a {
  color: #3498db;
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

/* Wiki Links */
.page-content a.wiki-link {
  color: #0645ad;
  text-decoration: none;
}

.page-content a.wiki-link:hover {
  text-decoration: underline;
}

.page-content a.wiki-link-new {
  color: #ba0000;
  text-decoration: none;
}

.page-content a.wiki-link-new:hover {
  text-decoration: underline;
}

.page-content a.wiki-link-new::after {
  content: "?";
  color: #ba0000;
  font-size: 0.85em;
  vertical-align: super;
  margin-left: 2px;
}

.page-content img {
  max-width: 100%;
  height: auto;
}

.page-content iframe {
  max-width: 100%;
  border: none;
  border-radius: 4px;
  margin: 1rem 0;
}

.page-content embed.pdf-embed {
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 1rem 0;
  display: block;
}

.page-content table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

.page-content table th,
.page-content table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

.page-content table th {
  background-color: #f4f4f4;
  font-weight: 600;
}

.page-content blockquote {
  border-left: 4px solid #ddd;
  padding-left: 1rem;
  margin-left: 0;
  color: #666;
  font-style: italic;
}

/* Page Properties */
.page-properties {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.page-properties h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1.1rem;
}

.properties-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0;
}

.properties-list dt {
  font-weight: 600;
  color: #555;
}

.properties-list dd {
  margin: 0;
  color: #333;
}

/* Page Footer */
.page-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

.delete-form {
  display: inline;
}

/* Markdown Help */
.markdown-help {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.markdown-help h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.markdown-help ul {
  list-style: none;
}

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

.markdown-help code {
  background: white;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

/* Revision List */
.revision-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.revision-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
}

.revision-header {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.revision-number {
  font-weight: 600;
  color: #3498db;
}

.revision-date,
.revision-author {
  font-size: 0.9rem;
  color: #666;
}

.revision-actions {
  display: flex;
  gap: 0.5rem;
}

/* Compare Revisions */
.compare-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.revision-info {
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 4px;
}

.revision-info h3 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.diff-container {
  margin-top: 2rem;
}

.diff-content {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.diff-line {
  padding: 0.2rem 0.5rem;
  margin: 0;
}

.diff-added {
  background-color: #d4edda;
  color: #155724;
}

.diff-removed {
  background-color: #f8d7da;
  color: #721c24;
}

.diff-unchanged {
  color: #666;
}

/* Search Pages */
.search-page,
.search-results {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-form {
  margin-bottom: 2rem;
}

.search-form .form-group {
  display: flex;
  gap: 0.5rem;
}

.search-tips {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 4px;
}

.search-tips h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.search-tips ul {
  margin-left: 1.5rem;
}

.results-info {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 4px;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-item {
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
}

.result-item h3 {
  margin-bottom: 0.5rem;
}

.result-item h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.result-item h3 a:hover {
  color: #3498db;
}

.result-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #666;
}

.relevance {
  color: #3498db;
  font-weight: 500;
}

.result-excerpt {
  color: #555;
  line-height: 1.6;
}

.empty-results {
  text-align: center;
  padding: 3rem;
  color: #666;
}

/* Error Pages */
.error-container {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
}

.error-container h1 {
  color: #e74c3c;
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.error-details {
  text-align: left;
  margin: 2rem 0;
  padding: 1rem;
  background: #f4f4f4;
  border-radius: 4px;
}

.error-details pre {
  overflow-x: auto;
  font-size: 0.875rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Admin Pages */
.admin-property-keys,
.admin-property-key-create,
.admin-property-key-edit {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.help-text {
  color: #666;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 4px;
}

.keys-tree {
  margin-top: 1.5rem;
}

.key-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fafafa;
}

.key-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.key-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.key-code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e74c3c;
}

.key-type.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #3498db;
  color: white;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
}

.key-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.key-description {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: 0.95em;
}

.key-children {
  margin-top: 1rem;
  padding-left: 1.5rem;
  border-left: 3px solid #ddd;
}

.key-children .key-item {
  background: white;
}

.property-key-form {
  max-width: 800px;
}

.property-key-form .form-group {
  margin-bottom: 1.5rem;
}

/* Category Browser */
.wiki-categories,
.category-view {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-browser {
  margin-top: 1.5rem;
}

.category-browser-item {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
}

.category-browser-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.category-browser-info {
  flex: 1;
}

.category-browser-info h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.category-browser-info h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.category-browser-info h3 a:hover {
  color: #3498db;
}

.category-description {
  color: #666;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.category-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #888;
}

.category-stats span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.page-count {
  color: #3498db;
  font-weight: 500;
}

.subcategory-count {
  color: #95a5a6;
}

.category-browser-children {
  margin-top: 1rem;
}

.breadcrumb {
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: #3498db;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.subcategories {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 4px;
}

.subcategories h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #2c3e50;
}

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

.category-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #ddd;
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list li a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
}

.category-list li a:hover {
  color: #3498db;
}

.category-list .category-description {
  display: inline;
  margin-left: 0.5rem;
  font-weight: normal;
}

.category-pages {
  margin: 2rem 0;
}

.category-pages h2 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #2c3e50;
}

.admin-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
}

.page-category {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.page-category a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.page-category a:hover {
  text-decoration: underline;
}

.page-category::before {
  content: "📁";
  margin-right: 0.5rem;
}

/* Internal Notes */
.internal-notes {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #fff9e6;
  border: 2px solid #f39c12;
  border-radius: 6px;
}

.internal-notes h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #d68910;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-private {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  background: #e67e22;
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-unpublished {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  background: #e74c3c;
  color: white;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.75rem;
}

.internal-notes-content {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  white-space: pre-wrap;
  font-family: inherit;
  line-height: 1.6;
  color: #333;
  border: 1px solid #f5d99f;
}

.empty-notes {
  color: #a67c00;
  font-style: italic;
  margin: 0;
}

.internal-notes-form {
  background: #fff9e6;
  padding: 1.5rem;
  border: 2px solid #f39c12;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.internal-notes-form label {
  color: #d68910;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.internal-notes-form textarea {
  border: 2px solid #f5d99f;
  background: white;
}

.internal-notes-form textarea:focus {
  border-color: #f39c12;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.internal-notes-form .form-text {
  color: #a67c00;
}

/* Image Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.lightbox.active {
  display: block;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  position: relative;
  z-index: 1;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  font-size: 36px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
  line-height: 1;
  padding: 0;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .page-item-header {
    flex-direction: column;
  }

  .page-item-actions {
    width: 100%;
  }

  .compare-info {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .search-box form {
    flex-direction: column;
  }
}

/* Dropdown menu styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 4px;
  z-index: 1000;
  padding-top: 8px;
  margin-top: 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.dropdown-item:first-child {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.dropdown-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.dropdown-item:hover {
  background: #f5f5f5;
}
