/* Reset and base */
* {
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  color: #333;
}

/* Container styling */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

/* Navigation */
nav {
  background-color: #007bff;
}
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav li {
  margin: 0;
}
nav li a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
}
nav li a:hover {
  background-color: #0056b3;
}

/* Forms and cards */
.form-container {
  background-color: #fff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
input, textarea, select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Buttons */
button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
}
button:hover {
  background-color: #0056b3;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  margin-top: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
table {
  width: 100%;
  border-collapse: collapse;
}
table th, table td {
  padding: 12px;
  border: 1px solid #dee2e6;
  text-align: left;
}
table th {
  background-color: #007bff;
  color: #fff;
}

/* Modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.5);
}
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 5px;
  max-width: 500px;
  position: relative;
}
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* Cost row styling in project edit form */
.cost-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.cost-row input {
  flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .modal-content {
    width: 90%;
  }
}
