/* Grundlæggende reset og variabler */
:root {
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --secondary-color: #7209b7;
  --accent-color: #f72585;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --success-color: #4bb543;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

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

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

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

/* Header styling */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
}

.logo i {
  font-size: 24px;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
}

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--dark-color);
  font-weight: 500;
  transition: var(--transition);
  padding: 5px 0;
  position: relative;
}

nav a:hover, nav a.active {
  color: var(--primary-color);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.user-actions {
  display: flex;
  gap: 10px;
}

.login-btn, .signup-btn {
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.login-btn {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.signup-btn {
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: white;
}

.login-btn:hover {
  background-color: rgba(67, 97, 238, 0.1);
}

.signup-btn:hover {
  background-color: var(--primary-dark);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark-color);
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, #4361ee, #7209b7);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-btn {
  background-color: white;
  color: var(--primary-color);
  border: none;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Upload section */
.upload-section {
  padding: 80px 0;
  text-align: center;
}

.upload-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.upload-section > p {
  color: var(--gray-color);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.upload-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.upload-area {
  border: 2px dashed var(--primary-color);
  border-radius: var(--border-radius);
  padding: 40px;
  background-color: rgba(67, 97, 238, 0.05);
  transition: var(--transition);
  cursor: pointer;
}

.upload-area:hover, .upload-area.dragover {
  background-color: rgba(67, 97, 238, 0.1);
}

.upload-area i {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.upload-area p {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.upload-area span {
  display: block;
  color: var(--gray-color);
  margin-bottom: 15px;
}

.select-files-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.select-files-btn:hover {
  background-color: var(--primary-dark);
}

.upload-preview {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
}

.upload-preview h3 {
  margin-bottom: 15px;
  color: var(--dark-color);
  text-align: left;
}

.preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.preview-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(220, 53, 69, 0.8);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: var(--transition);
}

.preview-item .remove-btn:hover {
  background-color: var(--danger-color);
}

.upload-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.upload-btn, .clear-btn {
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.upload-btn {
  background-color: var(--primary-color);
  border: none;
  color: white;
}

.upload-btn:hover:not(:disabled) {
  background-color: var(--primary-dark);
}

.clear-btn {
  background-color: transparent;
  border: 1px solid var(--gray-color);
  color: var(--gray-color);
}

.clear-btn:hover:not(:disabled) {
  background-color: rgba(108, 117, 125, 0.1);
}

.upload-btn:disabled, .clear-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.upload-progress {
  display: none;
  background-color: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
  margin-top: 30px;
}

.upload-progress h3 {
  margin-bottom: 15px;
  color: var(--dark-color);
  text-align: left;
}

.progress-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.progress-info {
  flex: 1;
}

.progress-info .filename {
  font-weight: 500;
  margin-bottom: 5px;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  width: 0;
  transition: width 0.3s ease;
}

.progress-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--gray-color);
}

.progress-status.success {
  color: var(--success-color);
}

.progress-status.error {
  color: var(--danger-color);
}

/* Gallery preview */
.gallery-preview {
  padding: 80px 0;
  background-color: #f0f2f5;
}

.gallery-preview h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.gallery-item-info {
  padding: 15px;
}

.gallery-item-info h3 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.gallery-item-info p {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.gallery-item-actions {
  display: flex;
  justify-content: space-between;
}

.gallery-item-actions button {
  background: none;
  border: none;
  color: var(--gray-color);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.gallery-item-actions button:hover {
  color: var(--primary-color);
}

.view-more-btn {
  display: block;
  margin: 0 auto;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 25px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.view-more-btn:hover {
  background-color: rgba(67, 97, 238, 0.1);
}

/* Features section */
.features {
  padding: 80px 0;
  background-color: white;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 30px;
  border-radius: var(--border-radius);
  background-color: #f8f9fa;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.feature-card i {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--gray-color);
}
/* Galleri sektion */
.gallery-section {
  padding: 3rem 0;
}

.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.gallery-filter {
  display: flex;
  gap: 10px;
}

.filter-btn {
  background-color: #ecf0f1;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.filter-btn:hover, .filter-btn.active {
  background-color: #3498db;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  background-color: #fff;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item-inner {
  position: relative;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h3 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.gallery-date {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.gallery-actions {
  display: flex;
  gap: 10px;
}

.gallery-actions button {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.gallery-actions button:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.loading, .error, .no-images {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading {
  color: #3498db;
}

.error {
  color: #e74c3c;
}

.no-images {
  color: #7f8c8d;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  border-radius: 10px;
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from {
      opacity: 0;
      transform: translateY(-50px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #ecf0f1;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #2c3e50;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #7f8c8d;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #e74c3c;
}

.modal-body {
  padding: 20px;
}

.modal-body img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 5px;
  margin-bottom: 15px;
}

.modal-info {
  margin-bottom: 15px;
}

.modal-date {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-top: 10px;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border-top: 1px solid #ecf0f1;
}

/* Auth Modal */
.auth-modal .modal-content {
  max-width: 400px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid #ecf0f1;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 15px;
  background-

/* Footer */
footer {
  background-color: #212529;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo i {
  font-size: 30px;
  color: var(--primary-color);
}

.footer-logo h2 {
  font-size: 1.5rem;
}

.footer-logo p {
  color: #adb5bd;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.link-group h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #e9ecef;
}

.link-group ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-group a {
  color: #adb5bd;
  transition: var(--transition);
}

.link-group a:hover {
  color: white;
}

.footer-social h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #e9ecef;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #adb5bd;
  font-size: 0.9rem;
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow: auto;
}

.modal-content {
  position: relative;
  background-color: white;
  margin: 50px auto;
  padding: 0;
  width: 80%;
  max-width: 900px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  z-index: 10;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

#modal-image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background-color: #f0f2f5;
}

.modal-info {
  padding: 20px;
}

.modal-info h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

