/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  color: #1f2937;
  background-color: #f8fafc;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Decoration images */
.right-deco {
  pointer-events: none;
  position: absolute;
  top: 63px; /* Below header */
  right: 0;
  z-index: 1; /* Above footer */
}

.left-decoration {
  pointer-events: none;
  position: absolute;
  bottom: -2rem;
  left: 0;
  z-index: 0;
}

/* Main content area with decorations */
.main {
  flex: 1;
  width: 100%;
  padding: 0 0 2rem;
  position: relative;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  width: 100%;
  position: relative;
  z-index: 10;
}

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

.header-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.header-logo {
  width: 24px;
  height: 24px;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: -1px;
}

.user-dropdown {
  position: relative;
  cursor: pointer;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.user-info:hover {
  background-color: #f3f4f6;
}

.user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.user-name {
  font-size: 0.875rem;
  color: #1f2937;
  font-weight: 600;
  line-height: 1.2;
}

.user-role {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.2;
}

.dropdown-arrow {
  color: #6b7280;
  transition: transform 0.2s ease;
}

.user-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
  min-width: 120px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.user-dropdown.active .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.signout-link {
  display: block;
  font-size: 0.875rem;
  color: #dc2626;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
  text-align: center;
}

.signout-link:hover {
  background-color: #fef2f2;
}

/* Flash messages */
.flash-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 600px;
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.flash-success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.flash-error {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.flash-icon {
  font-weight: bold;
  font-size: 1rem;
}

/* Footer */
.footer {
  background: white;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #374151;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .header-title {
    font-size: 1.125rem;
  }
  
  .user-info {
    gap: 0.5rem;
  }
  
  .user-name {
    font-size: 0.8125rem;
  }
  
  .user-role {
    font-size: 0.6875rem;
  }
  
  .signout-link {
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
  }
  
  .main {
    padding: 0 0 1rem;
  }
  
  .footer-content {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-links {
    gap: 1.5rem;
  }
  
  .flash-message {
    margin: 1rem 1rem 0;
  }
  
  /* Hide decorations on mobile for cleaner look */
  .right-deco, .left-decoration {
    display: none;
  }
} 
