/* ===========================
   Global Base
=========================== */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #333;
  overflow: hidden; /* prevent double scrollbars */
}

/* ===========================
   Header Bar
=========================== */
.header-bar {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.header-logo {
  height: 48px;
  transform-origin: center;
  transition: transform 0.3s ease-in-out, filter 0.3s ease;
}

.logo-link:hover .header-logo {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(0, 123, 255, 0.4));
  cursor: pointer;
}

/* ===========================
   Layout Wrapper
=========================== */
#wrapper {
  display: flex;
  height: calc(100vh - 64px); /* subtract header height */
  overflow: hidden;
}

/* ===========================
   Sidebar
=========================== */
#sidebar {
  width: 240px;
  background: #f8f9fa;
  padding: 20px;
  border-right: 1px solid #dee2e6;
  flex-shrink: 0;
  overflow-y: auto;
}

#sidebar h5 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #0050b3;
  text-align: center;
}

#sidebar ul {
  list-style: none;
  padding-left: 0;
}

#sidebar li {
  margin-bottom: 16px;
}

/* --- Base style for all sidebar links/buttons --- */
#sidebar a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;              /* unified readable size */
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 123, 255, 0.4);
  background-color: #f0f8ff;
  color: #007bff;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 0 6px rgba(0, 162, 255, 0.1);
}

#sidebar a i {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

#sidebar a:hover {
  background: linear-gradient(90deg, #007bff, #00aaff);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 180, 255, 0.4);
}

/* --- Outline style for regular buttons (reuse Bootstrap naming) --- */
#sidebar .btn-outline-primary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 150, 255, 0.4);
  color: #007bff;
  font-weight: 500;
  box-shadow: 0 0 6px rgba(0, 162, 255, 0.15);
}

#sidebar .btn-outline-primary:hover {
  background: linear-gradient(90deg, #007bff, #00aaff);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 180, 255, 0.5);
}

/* --- Primary highlight for "Build New Resume" button --- */
#sidebar .nav-link {
  background: linear-gradient(90deg, #007bff, #00aaff);
  color: #fff !important;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 0 15px rgba(0, 180, 255, 0.3);
  transition: all 0.3s ease;
}

#sidebar .nav-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.6);
}


/* ===========================
   Main Content
=========================== */
#main-content {
  flex: 1;
  overflow-y: auto;
  height: 100%;
  padding: 1.5rem;
  background-color: #f4f6f9;
}

/* Module cards inside content */
.module {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}

.module h1 {
  font-size: 26px;
  margin-bottom: 12px;
}

/* ===========================
   Buttons
=========================== */
.primary-btn {
  padding: 12px 20px;
  font-size: 16px;
  background-color: #007bff;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.primary-btn:hover {
  background-color: #0056b3;
}

/* ===========================
   Footer
=========================== */
.app-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  font-size: 0.9rem;
  color: #6c757d;
  text-align: center;
  padding: 0.75rem;
}

/* Easter egg in footer */
.tiny-egg {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  opacity: 0.2;
  cursor: pointer;
  transition: opacity 0.3s;
}

.tiny-egg:hover {
  opacity: 0.8;
}

/* ===========================
   Mobile Styles
=========================== */
#mobile-tools-toggle {
  display: none;
}

#mobile-sidebar-menu {
  display: none;
}

@media (max-width: 768px) {
  #sidebar {
    display: none;
  }

  #mobile-tools-toggle {
    display: block;
    margin: 0;
    padding: 0.5rem;
    text-align: center;
    background-color: #f8f9fa;
  }

  #mobile-tools-toggle button {
    font-weight: 500;
    font-size: 1rem;
  }

  #mobile-sidebar-menu {
    display: none;
    background-color: #ffffff;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 0.75rem;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    z-index: 1050;
  }

  #mobile-sidebar-menu a {
    display: block;
    padding: 0.6rem 1rem;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    border: 1px solid #007bff;
    border-radius: 0.5rem;
    background-color: #f0f8ff;
    color: #007bff;
    text-align: left;
    text-decoration: none;
  }

  #mobile-sidebar-menu a:hover {
    background-color: #007bff;
    color: white;
  }

  #main-content {
    margin-left: 0;
    padding: 100px 20px;
  }
}
