/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #c9e8f1;
  color: #333;
}

/* Header styles */
header {
  background-color: #333;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

header nav a:hover {
  opacity: 0.8;
}

/* Admin buttons */
.admin-buttons {
  width: 100%;
  max-width: 900px;
  margin-bottom: 30px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.user-name {
  color: #28a745;
  font-weight: bold;
}

/* Dropdown menu styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  z-index: 1;
  overflow: hidden;
}

.dropdown-content a {
  color: #333 !important;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #f1f8ff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Main content area */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Container styles */
.container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 90%;
  max-width: 900px;
  overflow: hidden;
}

/* Form container styles */
.form-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
  padding: 30px;
}

.form-container h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #1a3b5d;
  font-weight: 600;
}

/* Form elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group textarea,
.input-field,
.form-container input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 15px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.input-field:focus,
.form-container input:focus {
  border-color: #1a7fc7;
  outline: none;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

/* Button styles */
button,
.btn,
.action-button {
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  color: white;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

button:hover,
.btn:hover,
.action-button:hover {
  transform: translateY(-1px);
}

button:active,
.btn:active,
.action-button:active {
  transform: translateY(1px);
}

.form-container button {
  background-color: #1a7fc7;
}

button[type="submit"],
.btn-primary,
.action-button {
  background-color: #1a7fc7;
}

button[type="reset"],
.btn-secondary {
  background-color: #6c757d;
}

.action-button.visibility-toggle {
  background-color: #6c757d;
}

/* Card styles */
.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 900px;
  margin-bottom: 30px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 400px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card h3 {
  margin-bottom: 12px;
  color: #1a3b5d;
  font-size: 22px;
}

.card p {
  margin-bottom: 12px;
  color: #555;
  line-height: 1.6;
}

.card .date {
  font-weight: 600;
  color: #1a7fc7;
  margin-bottom: 12px;
}

.card-content {
  padding: 25px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.event-poster-container {
  width: 300px;
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-left: 1px solid #eee;
  /*padding: 10px;*/
}

.event-poster {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  max-height: none;
}

/* Event specific V1*//*
.event-poster {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
*/

.event-name {
  font-size: 24px;
  font-weight: bold;
  color: #1a7fc7;
}

/* Message and notification styles */
.message {
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 6px;
  text-align: center;
  width: 100%;
  max-width: 900px;
  font-weight: 500;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Action buttons */
.action-buttons {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-buttons .action-button {
  flex: 1;
  min-width: 120px;
}

/* Footer styles */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  main {
    padding: 20px 15px;
  }
  
  .card {
    flex-direction: column;
    min-height: auto;
  }
  
  .event-poster-container {
    width: 100%;
    flex: 0 0 auto;
    min-height: 300px;
    border-left: none;
    border-top: 1px solid #eee;
    order: 2;
  }
  
  .card-content {
    order: 1;
  }
  
  .admin-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .action-buttons {
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  .card-content {
    padding: 20px 15px;
  }
  
  .action-button {
    padding: 12px 15px;
    font-size: 15px;
  }
  
  header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  header nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  header nav a {
    margin-left: 0;
  }
  
  .message {
    padding: 12px 10px;
  }
  
  .event-poster-container {
    min-height: 250px;
  }
  
  .event-poster {
    max-height: 300px;
  }
}