/* public/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #3498db;
}

/* TARGET THE MAIN CONTENT AREA PROPERLY */
body > main.main-content {
    flex: 1;
    padding: 0.5rem 2rem 0; /* Reduced top padding significantly */
}

.content {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    padding: 1.5rem; /* Reduced padding */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 0; /* Remove top margin */
}

.content h1 {
    margin-bottom: 1rem;
    color: #2c3e50;
    margin-top: 0; /* Remove top margin from h1 */
    padding-top: 0; /* Remove any padding */
}

.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-bottom: 0; /* This pushes the footer to the bottom */
}

/* Alert styles */
.alert {
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.alert-error {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.alert-link {
  color: #084298;
  font-weight: 600;
  text-decoration: underline;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem 0.5rem 0.5rem 0;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: #5865F2; /* Discord blurple */
  color: white;
}

.btn-primary:hover {
  background-color: #4752C4; /* Slightly darker for hover */
}

.btn-history {
  background-color: #6c757d;
  color: white;
}

.btn-history:hover {
  background-color: #5c636a;
}

/* Login prompt */
.login-prompt {
  text-align: center;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 1rem 0; /* Reduced margin */
}

.login-prompt p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #495057;
}

/* Welcome message */
.welcome-message {
  background-color: #e7f5ff;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #0d6efd;
  margin: 1rem 0; /* Reduced margin */
}

.welcome-message p {
  margin: 0.5rem 0;
  color: #055160;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

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