/* --- 1. GLOBAL RESET & BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f7f9;
  color: #333;
  line-height: 1.6;
  /* This creates space so the fixed navbar doesn't cover your H1 */
  padding-top: 80px; 
  padding-bottom: 40px;
  overflow-x: hidden;
}

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

/* --- 2. THE NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #0056b3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
}

/* Desktop Navigation Center */
.nav-center {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.add-link {
  background-color: white    ;
  color: #0056b3    ;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 900;
}

/* Auth Section (Right side) */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-auth span {
  color: white;
  font-size: 0.9rem;
}

/* --- 3. HAMBURGER MENU BUTTON --- */
.menu-toggle {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: 0.3s;
}

button:disabled, button[disabled]:hover{
  background-color:#333;
  cursor: not-allowed;
}


/* --- 4. CARDS & SECTIONS --- */
h1 {
  text-align: center;
  color: #0056b3;
  margin: 20px 0;
  font-weight: 800;
}

.content-section, #signin-card {
  background: white;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#signin-card {
  max-width: 400px;
  margin: 40px auto;
}

/* --- 5. FORMS & INPUTS --- */
label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #555;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px; /* Prevents iOS auto-zoom */
  outline: none;
  transition: border-color 0.3s;
}

input:focus {
  border-color: #007bff;
}

.styled-button, button {
  width: 100%;
  padding: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.styled-button:hover, button:hover {
  background-color: #0056b3;
}

/* --- 6. IMAGES --- */
#image-preview {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  margin-top: 15px;
  display: none;
}

/* --- 7. ALERTS / MESSAGES --- */
#message-box {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: center;
}

.msg-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.msg-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.msg-info    { background: #cce5ff; color: #004085; border: 1px solid #b8daff; }

/* --- 1. DESKTOP RULES (Hide the button) --- */
.dropdown {
  display: none; /* Button stays hidden on desktop */
}

/* 1. Hide the checkbox itself */
.menu-checkbox {
  display: none;
}

/* 2. Style the Button */
.menu-button {
  background-color: white;
  color: #0056b3;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  user-select: none;
}

/* 3. The Menu Box (Hidden by default) */
.menu-content {
  display: none;
  position: absolute;
  right: 20px;
  top: 60px;
  background-color: white;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 8px;
  z-index: 9999;
  overflow: hidden;
}

/* 4. THE MAGIC: If checkbox is checked, show menu */
.menu-checkbox:checked ~ .menu-content {
  display: block;
}

/* 5. Style the links */
.menu-content a {
  color: #333;
  padding: 14px 20px;
  text-decoration: none;
  display: block;
  font-size: 16px;
  border-bottom: 1px solid #eee;
}

.menu-content a:hover {
  background-color: #f1f1f1;
}

/* 6. Desktop View (Optional: Hide button on big screens) */
@media (min-width: 769px) {
  /* If you want a different look for desktop, you can hide the checkbox menu here */
}