/* assets/css/style.css */

/* Reset some default styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f3f4f6; /* light gray */
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 900px;
  margin: 20px auto;
}

/* Header */
.header {
  background-color: #2774AE; /* your preferred nav color */
  color: white;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.header a.btn {
  background-color: #1e5f8a;
  color: white;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 20px;
  transition: background-color 0.3s ease;
}

.header a.btn:hover {
  background-color: #174a69;
}

/* Cards */
.card {
  background-color: white;
  border-radius: 6px;
  padding: 20px 25px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
  margin-bottom: 30px;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  align-items: center;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
  padding: 10px 12px;
  border: 1.5px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus {
  border-color: #2774AE;
  outline: none;
}

/* Buttons */
.btn {
  cursor: pointer;
  display: inline-block;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  padding: 10px 18px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  user-select: none;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
}

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

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

.btn-primary {
  background-color: #2774AE;
  color: white;
  padding: 8px 16px;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: #1f5785;
}

/* List */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  background-color: #fefefe;
  border: 1px solid #ddd;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.list-item div.actions button {
  margin-left: 10px;
}

/* Responsive */
@media (max-width: 480px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .header a.btn {
    margin-left: 0;
    margin-top: 10px;
    display: inline-block;
  }
}
body {
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  margin: 0;
  padding: 0;
}

.header {
  background: #2774AE;
  color: white;
  padding: 15px;
  text-align: center;
}

.container {
  padding: 20px;
  background: white;
  margin: 20px auto;
  max-width: 1100px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

table, th, td {
  border: 1px solid #ddd;
}

th, td {
  padding: 12px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

.actions {
  margin-top: 20px;
}

.btn {
  padding: 10px 20px;
  margin-right: 10px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}
