* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  color: #000000;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body.login-page {
  display: block;
}

.container {
  max-width: 100%;
  margin: 0;
  flex: 1;
  width: 100%;
  display: flex;
}

/* Top Navigation Bar */
.navbar {
  background: #ffffff;
  color: #000000;
  padding: 15px 30px;
  border-bottom: 3px solid #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.4em;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
}

.navbar-brand:hover {
  opacity: 0.8;
}

.navbar-brand span {
  font-size: 1.3em;
  margin-right: 10px;
}

.navbar-right {
  display: flex;
  gap: 30px;
  align-items: center;
}

.navbar-user {
  display: flex;
  gap: 15px;
  align-items: center;
}

.navbar-user span {
  font-size: 0.95em;
}

/* Single Dropdown Menu */
.secondary-menu {
  display: flex;
  gap: 0;
  align-items: center;
  position: relative;
}

.menu-item {
  position: relative;
  cursor: pointer;
}

.menu-item-label {
  font-size: 0.95em;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-radius: 4px;
}

.menu-item-label:hover {
  background: #f5f5f5;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: white;
  border: 2px solid #000000;
  border-radius: 4px;
  min-width: 220px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  z-index: 1000;
}

.dropdown-menu.active {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 12px 15px;
  color: #000000;
  text-decoration: none;
  font-size: 0.9em;
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: #f0f0f0;
  padding-left: 20px;
}

/* Left Sidebar Navigation */
.sidebar {
  width: 200px;
  background: #ffffff;
  border-right: 2px solid #000000;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 83px);
}

.sidebar-menu {
  list-style: none;
  padding: 20px 10px;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-menu li {
  border-bottom: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  text-decoration: none;
  color: #000000;
  font-size: 0.9em;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.sidebar-menu a:hover {
  background: #f5f5f5;
}

.sidebar-menu a.active {
  background: #000000;
  color: #ffffff;
  font-weight: bold;
}

.sidebar-icon {
  font-size: 1em;
  font-weight: bold;
}

.sidebar-label {
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.2;
  word-break: break-word;
}

.sidebar-desc {
  display: none;
}

/* Main Content Area */
.page-wrapper {
  flex: 1;
  padding: 20px 30px;
  overflow-y: auto;
  background: #ffffff;
}

.header {
  background: #ffffff;
  color: #000000;
  padding: 20px 30px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-radius: 0;
  min-height: auto;
  border-bottom: 2px solid #000000;
}

.header h1 {
  font-size: 1.8em;
  margin-bottom: 0;
  font-weight: bold;
}

.header p {
  font-size: 1em;
  margin-bottom: 0;
  opacity: 0.9;
}

.header-left {
  flex: 1;
}

.header-right {
  text-align: right;
  font-size: 0.95em;
}

.header-right button {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  margin-top: 10px;
}

.header-right button:hover {
  background: #f0f0f0;
  color: #000000;
  border-color: #000000;
}

#user-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#user-info span {
  color: #000000;
}

/* Step Progress Bar */
.step-progress-bar {
  background: #f9f9f9;
  border-bottom: 2px solid #000000;
  padding: 30px 40px;
  display: flex;
  justify-content: center;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.step-progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.step-progress-item:hover .step-circle {
  transform: scale(1.1);
}

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 2px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  transition: all 0.3s ease;
  color: #000000;
}

.step-circle.completed {
  background: #000000;
  color: #ffffff;
}

.step-circle.active {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.2);
  transform: scale(1.15);
}

.step-label {
  font-size: 0.85em;
  font-weight: 600;
  text-align: center;
  color: #666;
  min-width: 70px;
}

.step-label.active {
  color: #000000;
  font-weight: bold;
}

/* Header */
.page-header {
  background: #ffffff;
  color: #000000;
  padding: 30px 40px;
  margin-bottom: 40px;
  border-radius: 0;
  border-bottom: 2px solid #000000;
}

#user-info span {
  font-weight: bold;
}

.step-indicator {
  border: 1px solid #000000;
  padding: 15px;
  margin-bottom: 30px;
  background: #f9f9f9;
  text-align: center;
}

.step-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 2px solid #000000;
  padding-bottom: 15px;
}

.form-section {
  border: 1px solid #000000;
  padding: 25px;
  margin-bottom: 25px;
}

.form-section h3 {
  font-size: 1.3em;
  margin-bottom: 20px;
  border-bottom: 1px solid #000000;
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #000000;
  font-size: 1em;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #000000;
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
  display: block;
  position: relative;
  z-index: 10;
}

.form-group select option {
  background: #ffffff;
  color: #000000;
  padding: 8px;
  margin: 5px 0;
}

.form-group select option:hover {
  background: #f0f0f0;
}

.form-group select option:checked {
  background: #000000;
  color: #ffffff;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.radio-group label {
  display: flex;
  align-items: center;
  margin: 0;
  width: auto;
}

.radio-group input[type="radio"] {
  width: auto;
  margin-right: 8px;
}

.priority-ranking {
  border: 1px solid #000000;
  padding: 15px;
  margin-bottom: 15px;
  background: #f9f9f9;
}

.priority-ranking h4 {
  margin-bottom: 10px;
}

.priority-item {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 15px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.priority-item:last-child {
  border-bottom: none;
}

.priority-item select {
  padding: 8px;
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  width: 100%;
  font-size: 1em;
  display: block;
  position: relative;
  z-index: 10;
}

.budget-category {
  border: 1px solid #000000;
  padding: 15px;
  margin-bottom: 15px;
  background: #f9f9f9;
}

.budget-category h4 {
  margin-bottom: 10px;
  font-weight: bold;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  justify-content: center;
}

button {
  padding: 12px 30px;
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background: #000000;
  color: #ffffff;
}

button.secondary {
  background: #e0e0e0;
}

button.secondary:hover {
  background: #d0d0d0;
  color: #000000;
}

.data-display {
  border: 1px solid #000000;
  padding: 20px;
  margin-bottom: 20px;
  background: #f9f9f9;
}

.data-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.data-row:last-child {
  border-bottom: none;
}

.data-label {
  font-weight: bold;
}

.data-value {
  text-align: right;
}

.dashboard-block {
  border: 2px solid #000000;
  padding: 20px;
  margin-bottom: 25px;
}

.dashboard-block h3 {
  font-size: 1.3em;
  margin-bottom: 15px;
  border-bottom: 1px solid #000000;
  padding-bottom: 10px;
}

.dashboard-metric {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 15px;
  border: 1px solid #000000;
  margin-bottom: 10px;
  background: #f9f9f9;
}

.metric-label {
  font-weight: bold;
}

.metric-value {
  font-weight: bold;
  font-size: 1.2em;
}

.insight-box {
  border: 2px solid #000000;
  padding: 20px;
  margin: 25px 0;
  background: #f9f9f9;
}

.insight-box h3 {
  margin-bottom: 15px;
}

.insight-box p {
  line-height: 1.6;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.table th {
  background: #000000;
  color: #ffffff;
  padding: 12px;
  text-align: left;
  border: 1px solid #000000;
}

.table td {
  border: 1px solid #000000;
  padding: 12px;
}

.table tr:nth-child(even) {
  background: #f9f9f9;
}

.footer {
  border: 2px solid #000000;
  padding: 20px;
  margin-top: 40px;
  text-align: center;
}

.warning {
  border-left: 4px solid #000000;
  padding: 15px;
  background: #f9f9f9;
  margin: 15px 0;
}

.success {
  border-left: 4px solid #000000;
  padding: 15px;
  background: #f9f9f9;
  margin: 15px 0;
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .navbar-brand {
    font-size: 1.3em;
  }

  .navbar-right {
    flex-direction: column;
    width: 100%;
  }

  .navbar-user {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 2px solid #000000;
  }

  .sidebar-menu {
    display: flex;
    flex-wrap: wrap;
  }

  .sidebar-menu li {
    flex: 1;
    min-width: 100px;
    border-right: 1px solid #e0e0e0;
    border-bottom: none;
  }

  .sidebar-menu a {
    padding: 15px 10px;
  }

  .page-wrapper {
    padding: 20px;
  }

  .header {
    padding: 20px;
    flex-direction: column;
    gap: 15px;
  }

  .header h1 {
    font-size: 1.5em;
  }

  .header-right {
    text-align: left;
    width: 100%;
  }

  .priority-item,
  .data-row,
  .dashboard-metric {
    grid-template-columns: 1fr;
  }

  .button-group {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
