/* public/assets/css/estilo.css */

:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --accent: #3b82f6;
  --muted: #6b7280;
  --danger: #ef4444;
  --success: #10b981;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--bg);
  color: #111
}

.container {
  max-width: 960px;
  margin: 24px auto;
  padding: 16px
}

.topbar {
  background: #09648f;
  border-bottom: 1px solid #e6e9ee;
  padding: 10px 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02)
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.logo a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 20px
}

nav a {
  margin-left: 14px;
  /* color: var(--muted); */
  color: #e6e9ee;
  text-decoration: none
}

nav a:hover {
  color: var(--accent)
}

.main {
  padding: 16px;
}

.form {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(11, 15, 26, 0.04)
}

.form label {
  display: block;
  margin-bottom: 12px;
  color: #333
}

.form input[type="text"],
.form input[type="password"],
.form input[type="email"],
.form input[type="number"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  font-size: 14px
}

.form button,
.btn {
  display: inline-block;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none
}

.alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px
}

.alert.error {
  background: #fff0f0;
  border: 1px solid #f8d7da;
  color: var(--danger)
}

.alert.success {
  background: #f0fff6;
  border: 1px solid #d1fae5;
  color: var(--success)
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid #eef2f7;
  text-align: left
}

.table thead {
  background: #fbfdff
}

.footer {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px
}

/* Layout container */
.layout {
    display: flex;
    min-height: calc(100vh - 60px); /* Adjust for navbar height */
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #1e293b; /* slate-800 */
    color: white;
    padding: 20px;
    box-shadow: 2px 0 6px rgba(0,0,0,0.15);
}

.sidebar-title a {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: bold;
    color: #e2e8f0; /* slate-200 */
    border-bottom: 1px solid #334155;
    padding-bottom: 8px;
    text-decoration: none;
}

/* Sidebar menu */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 12px;
}

.sidebar-menu a {
    text-decoration: none;
    color: #cbd5e1; /* slate-300 */
    padding: 10px;
    display: block;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}

.sidebar-menu a:hover {
    background: #334155; /* slate-700 */
    color: #ffffff;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 30px;
}

.sidebar-menu a i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.data-table th, .data-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.data-table th {
    background: #f0f4f8;
}

/* Actions */
.action {
    padding: 6px;
    margin-right: 5px;
}
.action.edit { color: #2563eb; }
.action.delete { color: #dc2626; }

/* Search form */
.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.search-form input {
    padding: 7px;
    flex: 1;
}
.search-form select, .search-form button {
    padding: 7px 10px;
}

/* Pagination */
.pagination {
    margin: 20px 0;
}

/* Modal form */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
}
.modal-content {
    background: white;
    width: 400px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 8px;
}
.modal-content label {
    margin-top: 10px;
    display: block;
}
.modal-content input, .modal-content select {
    width: 100%;
    padding: 7px;
    margin-top: 5px;
}
