/* File: public/assets/css/style.css */

/* ====== RESET & BASE ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f6f8fa;
  color: #333;
  line-height: 1.5;
}
a {
  color: #0d6efd;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1, h2, h3, h4, h5 {
  margin-bottom: 10px;
  color: #222;
}
p {
  margin-bottom: 10px;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-block;
  background: #198754;
  color: #fff;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  margin-right: 5px;
  font-size: 14px;
}
.btn:hover {
  background: #146c43;
  text-decoration: none;
}
.btn-danger {
  background: #dc3545;
}
.btn-secondary {
  background: #6c757d;
}
.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
}

/* ====== TABLES ====== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
th, td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
}
th {
  background-color: #198754;
  color: #fff;
  font-weight: 600;
}
tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* ====== FORMS ====== */
input[type=text],
input[type=password],
input[type=number],
input[type=date],
input[type=month],
textarea,
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}
button,
input[type=submit] {
  background: #198754;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}
button:hover,
input[type=submit]:hover {
  background: #146c43;
}

/* ====== LAYOUT ====== */
header {
  background-color: #198754;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 {
  font-size: 20px;
}
main {
  display: flex;
  min-height: calc(100vh - 60px);
}
aside {
  width: 220px;
  background: #e9ecef;
  padding: 20px;
}
aside ul {
  list-style: none;
  padding: 0;
}
aside li {
  margin: 8px 0;
}
aside a {
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  color: #333;
}
aside a:hover {
  background: #d1e7dd;
}
section.content {
  flex-grow: 1;
  padding: 20px;
  background: #fff;
  margin: 15px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* ====== FOOTER ====== */
footer {
  background: #198754;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 14px;
}

/* ====== ALERTS ====== */
.alert {
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 15px;
}
.alert-success {
  background: #d1e7dd;
  color: #0f5132;
}
.alert-danger {
  background: #f8d7da;
  color: #842029;
}
.alert-warning {
  background: #fff3cd;
  color: #664d03;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  main {
    flex-direction: column;
  }
  aside {
    width: 100%;
  }
  section.content {
    margin: 0;
  }
}
