* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #f3f6f9;
}

/* LOGIN */
.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0b3d2e, #155f45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 390px;
    min-height: 400px;
    background: #ffffff;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-header h2 {
    color: #0b3d2e;
    font-size: 24px;
    margin-bottom: 8px;
}

.login-header p {
    color: #6b7280;
    font-size: 14px;
}

.login-card label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
}

.login-card input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}

.login-card input:focus {
    border-color: #155f45;
    box-shadow: 0 0 0 3px rgba(21, 95, 69, 0.15);
}

.login-card button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: #0b3d2e;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.login-card button:hover {
    background: #155f45;
}

.login-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    text-align: center;
}
/* LAYOUT PRINCIPAL */

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #0b3d2e;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
}

.sidebar-title h2 {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 35px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu a {
    color: #d1fae5;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}

.sidebar-user {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.18);
    padding-top: 18px;
    font-size: 13px;
}

.sidebar-user strong,
.sidebar-user span {
    display: block;
    margin-bottom: 6px;
}

.sidebar-user a {
    display: inline-block;
    margin-top: 8px;
    color: #fde68a;
    text-decoration: none;
    font-weight: 700;
}

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

.topbar {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.topbar h1 {
    color: #0b3d2e;
    margin-bottom: 6px;
}

.topbar p {
    color: #6b7280;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.card h3 {
    color: #0b3d2e;
    margin-bottom: 10px;
}

.card p {
    color: #6b7280;
    font-size: 14px;
}
.card input,
.card select {
    width: 100%;
    padding: 11px 13px;
    margin: 8px 0 16px 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
}

.card label {
    font-weight: 600;
    color: #374151;
}

.card button {
    background: #0b3d2e;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}
.module-header {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.module-header h1 {
    color: #0b3d2e;
    margin-bottom: 6px;
}

.module-header p {
    color: #6b7280;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: #0b3d2e;
    color: #ffffff;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.table-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    color: #374151;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
}

.data-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    font-size: 14px;
}

.data-table small {
    color: #6b7280;
}

.link-action {
    color: #0b3d2e;
    font-weight: 700;
    text-decoration: none;
}

.link-danger {
    color: #b91c1c;
    font-weight: 700;
    text-decoration: none;
}

.form-wrapper {
    display: flex;
    justify-content: center;
}

.form-card-large {
    width: 720px;
    background: #ffffff;
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.form-title {
    text-align: center;
    margin-bottom: 26px;
}

.form-title h2 {
    color: #0b3d2e;
    margin-bottom: 8px;
}

.form-title p {
    color: #6b7280;
    font-size: 14px;
}

.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group.full,
.form-actions.full {
    grid-column: 1 / -1;
}

.form-group label,
.alert-box label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.alert-box input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #155f45;
    box-shadow: 0 0 0 3px rgba(21, 95, 69, 0.15);
}

.form-actions {
    text-align: center;
    margin-top: 8px;
}

.alert-box {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 22px;
}
.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}
