/* NetAdminAtlas - Auxiliary Pages Stylesheet */

:root {
  --primary-color: #1e40af;
  --secondary-color: #0f766e;
  --accent-color: #dc2626;
  --background-light: #f9fafb;
  --text-dark: #111827;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

/* Header */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Main Content */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: calc(100vh - 300px);
}

main h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

main h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

main h3 {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

main p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

main ul, main ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

main li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

main a {
  color: var(--primary-color);
  text-decoration: none;
}

main a:hover {
  text-decoration: underline;
}

/* About Us Page */
.about-section {
  margin-bottom: 3rem;
}

.about-section.centered {
  text-align: center;
}

.about-section.left-aligned {
  text-align: left;
}

.about-image {
  width: 100%;
  height: 300px;
  background-color: #e0e7ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  object-fit: cover;
}

.about-svg-illustration {
  width: 100%;
  height: 300px;
  background-color: #f0fdf4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-section a {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-dark);
  color: var(--white);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-message {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-message a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.cookie-message a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-accept,
.cookie-reject,
.cookie-customize {
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.cookie-accept {
  background-color: var(--accent-color);
  color: var(--white);
}

.cookie-accept:hover {
  background-color: #b91c1c;
}

.cookie-reject {
  background-color: #4b5563;
  color: var(--white);
}

.cookie-reject:hover {
  background-color: #374151;
}

.cookie-customize {
  background-color: #6366f1;
  color: var(--white);
}

.cookie-customize:hover {
  background-color: #4f46e5;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.cookie-modal.hidden {
  display: none;
}

.cookie-modal-content {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.cookie-modal-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.cookie-options {
  margin-bottom: 1.5rem;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  background-color: var(--background-light);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cookie-option:hover {
  background-color: #f3f4f6;
}

.cookie-option input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.cookie-option-label {
  flex: 1;
  cursor: pointer;
}

.cookie-option-label strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.cookie-option-label span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
}

.cookie-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.cookie-modal-actions button {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.cookie-modal-save {
  background-color: var(--accent-color);
  color: var(--white);
}

.cookie-modal-save:hover {
  background-color: #b91c1c;
}

.cookie-modal-close {
  background-color: #e5e7eb;
  color: var(--text-dark);
}

.cookie-modal-close:hover {
  background-color: #d1d5db;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  main h1 {
    font-size: 1.5rem;
  }

  main h2 {
    font-size: 1.25rem;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .cookie-modal-content {
    margin: 1rem;
  }
}

@media (max-width: 480px) {
  main {
    padding: 1.5rem 1rem;
  }

  main h1 {
    font-size: 1.25rem;
  }

  main h2 {
    font-size: 1.1rem;
  }

  .cookie-accept,
  .cookie-reject,
  .cookie-customize {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .cookie-modal-content {
    padding: 1.5rem;
  }
}
