body {
  margin: 0;
  padding: 0;
  font-family: "Lucida Grande", Helvetica, Arial, sans-serif;
  background-color: #f0f8f0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  position: relative; /* til at placere knappen inde i container */
  text-align: center;
  padding: 2rem;
}

h1 {
  color: #2e8b57;
  margin-bottom: 2rem;
}

.login-options {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.login-box {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 300px;
}

h2 {
  color: #2e8b57;
  margin-bottom: 1.5rem;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}.login-btn {
  background-color: #2e8b57;
  color: white;
}

.signup-btn {
  background-color: white;
  color: #2e8b57;
  border: 2px solid #2e8b57;
}

button:hover {
  opacity: 0.9;
  transform: scale(1.02);
  transition: all 0.2s ease;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.login-form input:focus {
    outline: none;
    border-color: #2e8b57;
}

a {
    color: #2e8b57;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    margin-top: 1rem;
    color: #666;
}

/* Dashboard Styles */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.add-btn {
    background-color: #2e8b57;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.add-btn:hover {
    opacity: 0.9;
}

.table-container {
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dashboard-table th,
.dashboard-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.dashboard-table th {
    color: #666;
    font-weight: 600;
}

.status-badge {
    background-color: #e8f5e9;
    color: #2e8b57;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.nav-left h1 {
    margin: 0;
}

.green-btn {
    background-color: #2e8b57;
    color: white;
    box-shadow: 0 2px 4px rgba(46, 139, 87, 0.2);
}

.green-btn:hover {
    background-color: #236b43;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(46, 139, 87, 0.2);
}

.logout-btn {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 16px;
}

.logout-btn:hover {
    background-color: #e9ecef;
    color: #333;
}

/* Update existing button styles */
.login-btn {
    background-color: #2e8b57;
    color: white;
    width: 100%;
    box-shadow: 0 2px 4px rgba(46, 139, 87, 0.2);
}

.login-btn:hover {
    background-color: #236b43;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(46, 139, 87, 0.2);
}

.signup-btn {
    background-color: white;
    color: #2e8b57;
    border: 2px solid #2e8b57;
    width: 100%;
}

.signup-btn:hover {
    background-color: #f0f8f0;
    color: #236b43;
    border-color: #236b43;
}

.add-btn {
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-btn {
    background-color: transparent;
    color: #dc3545;
    border: none;
    padding: 5px 10px;
    margin: 0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background-color: #ffebee;
    color: #c82333;
}

.delete-icon {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

/* Modal Styles */
.modal-background {
    background-color: rgba(240, 248, 240, 0.9);
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 1rem;
}

.event-modal {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.modal-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: auto;
    line-height: 1;
}

.event-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    color: #666;
    font-size: 0.9rem;
}

.form-field input {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}

.form-field input:focus {
    outline: none;
    border-color: #2e8b57;
    box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.1);
}

.form-field input::placeholder {
    color: #999;
}

.form-field input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    color: #333;
    font-family: inherit;
    padding: 0.75rem;
}

.form-field input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

.form-field input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.gem-btn {
    background-color: #2e8b57;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    font-weight: 500;
}

.gem-btn:hover {
    background-color: #236b43;
}

.form-row {
    display: flex;
    gap: 1rem;
}
.form-row .form-field {
    flex: 1;
}

.form-field select {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    background: white;
    color: #333;
}
.form-field select:focus {
    outline: none;
    border-color: #2e8b57;
    box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.1);
}



/* --- Opret Virksomhed Form --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #f0f8f0, #e6f2ea);
    font-family: "Inter", "Lucida Grande", Helvetica, Arial, sans-serif;
}

.form-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.form-card h1 {
    color: #2e8b57;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: #2e8b57;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #2e8b57;
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.primary-btn {
    background-color: #2e8b57;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 0.5rem;
}

.primary-btn:hover {
    background-color: #246b45;
    transform: translateY(-1px);
}

.login-text {
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.login-text a {
    color: #2e8b57;
    font-weight: 500;
}

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

.form-group input[type="file"] {
    width: 100%;
    padding: 0.65rem;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff;
    cursor: pointer;
    box-sizing: border-box;
    display: block;
}
.form-group input[type="file"]::file-selector-button {
    background-color: #2e8b57;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 10px;
    transition: background-color 0.2s;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"] {
    width: 100%;
    box-sizing: border-box;
}

/* Grøn "Homepage" knap øverst til højre */
.homepage-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: #2e8b57;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(46,139,87,0.18);
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.homepage-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

@media (max-width: 600px) {
  .homepage-btn {
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }
}
