/* MAIN */
main {
    flex: 1;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADER */
header {
    padding: 1.5rem 0;
}

.page-title {
    font-size: 2.25rem;
}

.page-subtitle {
    color: var(--color-gray-600);
    margin-top: 0.25rem;
}

/* SECTION - FORM */
.form-section {
    background-color: var(--color-white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #6a6a6a3d;
    padding: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.75rem 0 1.25rem 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--color-gray-700);
    font-size: 0.90rem;
    margin-bottom: 0.50rem;
}

.form-input, .form-select {
    padding: 0.50rem 1rem;
    border: 1px solid #6a6a6a31;
    border-radius: 0.5rem;
    font-family: var(--font-family);
    font-size: 1rem;
}

.btn {
    padding: 0.60rem 1rem;
    border: none;
    border-radius: 0.50rem;
    font-family: var(--font-family);
    font-weight: bold;
    color: var(--color-gray-200);
    background-color: var(--color-primary);
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.btn-secundary {
    display: none;
    color: var(--color-gray-800);
    font-weight: 600;
    background-color: var(--color-white);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-gray-200);
    margin-left: 0.5rem;
    transition: 0.3s;
}

.btn-secundary:hover {
    background-color: #6a6a6a1a;
}

/* SECTION - LIST */
.list-section {
    background-color: var(--color-white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #6a6a6a3d;
    padding: 1.5rem;
    margin-top: 2rem;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-count {
    font-size: 0.90rem;
    color: var(--color-gray-400);
}

.list-table {
    width: 100%;
    padding: 1.5rem 0.5rem;
}

.list-table thead {
    background-color: var(--color-gray-50);
}

.list-table thead th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--color-gray-500);
    border-bottom: 2px solid var(--color-gray-200);
}

.list-table thead th:last-child {
    text-align: right;
}

.list-table tbody td {
    padding: 1rem;
    font-size: 0.90rem;
    color: var(--color-gray-500);
    border-bottom: 1px solid var(--color-gray-200);
}

.list-table tbody tr td:first-child, #bold {
    font-weight: 500;
    color: var(--color-gray-800);
}

.list-table tbody tr td:last-child {
    text-align: right;
}

.list-table tbody tr td small {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.btn-edit, .btn-delete {
    padding: 0.50rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-gray-200);
    background-color: var(--color-white);
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    margin-left: 0.25rem;
    transition: 0.3s;
}

.btn-edit {
    color: var(--color-primary);
}

.btn-delete {
    color: red;
}

.btn-edit:hover {
    background-color: rgba(15, 143, 247, 0.123);
}

.btn-delete:hover {
    background-color: rgba(236, 0, 0, 0.13);
}

.empty-state {
    text-align: center;
    padding: 3rem 0;
    display: none;
}

.empty-state.show {
    display: block;
} 

.empty-icon {
    font-size: 3.75rem;
    margin-bottom: 1rem;
}

.empty-text {
    font-size: 1.10rem;
    color: var(--color-gray-600);
    margin-bottom: 0.5rem;
}

.empty-subtext {
    font-size: 0.90rem;
    color: var(--color-gray-400);
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-filter, .btn-confirm {
    padding: 0.50rem 0.75rem;
    border: none;
    border-radius: 0.50rem;
    font-family: var(--font-family);
    font-weight: 700;
    color: var(--color-gray-700);
    border: 1px solid #6a6a6a3d;
    background-color: var(--color-white);
    cursor: pointer;
    transition: 0.3s;
}

.btn-confirm {
    color: #00a63e;
    transition: 0.3s;
}

.btn-confirm:hover {
    background-color: #00a63d17;
}

.btn-filter:hover {
    background-color: var(--color-gray-200);
}

.btn-filter.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.status {
    border-radius: 1rem;
    padding: 0.25rem 0.75rem;
    font-weight: 500;
}

.sts-borrowed {
    color: #9f2d00;
    background-color: rgba(240, 131, 6, 0.288);
}

.sts-success {
    color: #026630;
    background-color: rgba(6, 231, 6, 0.185);
}

/* NOTIFICATION  */
.notification {
    position: fixed;
    bottom: 3rem;
    right: 5rem;
    background-color: var(--color-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #6a6a6a3d;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 9999;
    opacity: 0;
}

.notification.show {
    opacity: 1;
}

.notification.success {
    color: var(--color-success);
}

.notification.error {
    color: var(--color-error);
}


