/* Mutu admin styles — no build step required */

html {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
    background-color: #f4faf7;
    color: #0D2E1C;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Basic form controls (replaces @tailwindcss/forms) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="search"],
input[type="tel"],
input[type="file"],
select,
textarea {
    appearance: none;
    background-color: #fff;
    border-width: 1px;
    border-color: #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #167d74;
    box-shadow: 0 0 0 1px #167d74;
}

input[type="checkbox"],
input[type="radio"] {
    appearance: auto;
    width: 1rem;
    height: 1rem;
    color: #167d74;
    border-color: #d1d5db;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background-color: #167d74;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: background-color 0.15s ease;
}

.btn-primary:hover {
    background-color: #0D2E1C;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #167d74;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    border: 1px solid rgb(22 125 116 / 0.3);
    background-color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0D2E1C;
    transition: background-color 0.15s ease;
}

.btn-secondary:hover {
    background-color: #bfe4d2;
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #167d74;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background-color: #b91c1c;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    transition: background-color 0.15s ease;
}

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

.card {
    border-radius: 0.75rem;
    border: 1px solid rgb(13 46 28 / 0.1);
    background-color: #fff;
    padding: 1.25rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.admin-topbar {
    box-sizing: border-box;
    height: 4rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgb(13 46 28 / 0.1);
}

.form-input {
    margin-top: 0.4rem;
    display: block;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(13 46 28 / 0.2);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #0D2E1C;
    background-color: #fff;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
    border-color: #167d74;
    box-shadow: 0 0 0 1px #167d74;
}

.dataTables_wrapper {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.875rem;
    color: #0D2E1C;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #0D2E1C;
    margin-bottom: 0.75rem;
    margin-top: 0.75rem;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid rgb(13 46 28 / 0.2);
    border-radius: 0.375rem;
    padding: 0.35rem 0.5rem;
    background: #fff;
    color: #0D2E1C;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.375rem !important;
    border: 0 !important;
    padding: 0.25rem 0.6rem !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #167d74 !important;
    color: #fff !important;
    border: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #bfe4d2 !important;
    color: #0D2E1C !important;
    border: 0 !important;
}

table.dataTable thead th {
    border-bottom: 1px solid rgb(13 46 28 / 0.15) !important;
    font-weight: 700;
    color: #0D2E1C;
}

table.dataTable tbody td {
    border-bottom: 1px solid rgb(191 228 210 / 0.8) !important;
    vertical-align: middle;
}

table.dataTable.no-footer {
    border-bottom: 1px solid rgb(13 46 28 / 0.15) !important;
}

.user-avatar {
    display: inline-flex;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 9999px;
    background-color: #167d74;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
}

.dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.dataTables_wrapper .dataTables_length select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: inline-block;
    box-sizing: border-box;
    width: auto;
    min-width: 4.75rem;
    height: 2.25rem;
    margin: 0;
    padding: 0.35rem 2rem 0.35rem 0.75rem;
    border: 1px solid rgb(13 46 28 / 0.2);
    border-radius: 0.375rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%230D2E1C' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.1rem 1.1rem;
    color: #0D2E1C;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.25;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_length select:hover {
    border-color: #167d74;
}

.dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: #167d74;
    box-shadow: 0 0 0 2px rgb(22 125 116 / 0.25);
}

table.dataTable thead th,
.js-datatable thead th {
    font-weight: 700 !important;
    color: #0D2E1C !important;
}

.dataTables_wrapper .dataTables_filter:has(.dt-buttons) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    float: right;
}

.dataTables_wrapper .dataTables_filter .dt-buttons {
    float: none;
    display: inline-flex;
    margin: 0;
}

.dataTables_wrapper .dt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 0.375rem;
    background: #167d74;
    color: #fff;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
}

.dataTables_wrapper .dt-button:hover {
    background: #0D2E1C;
    color: #fff;
}

.status-switch {
    position: relative;
    display: inline-block;
    width: 2.5rem;
    height: 1.375rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background-color: #d1d5db;
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.status-switch.is-active {
    background-color: #167d74;
}

.status-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 9999px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgb(13 46 28 / 0.2);
    transition: transform 0.15s ease;
}

.status-switch.is-active .status-switch-thumb {
    transform: translateX(1.125rem);
}

.status-switch:focus-visible {
    outline: 2px solid #167d74;
    outline-offset: 2px;
}

.catch-log-filters .table-filter-input {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 2.25rem;
    margin: 0;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgb(13 46 28 / 0.2);
    border-radius: 0.375rem;
    background-color: #fff;
    color: #0D2E1C;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.25;
}

.catch-log-filters select.table-filter-input {
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%230D2E1C' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.1rem 1.1rem;
    cursor: pointer;
}

.catch-log-filters .table-filter-input:hover {
    border-color: #167d74;
}

.catch-log-filters .table-filter-input:focus {
    outline: none;
    border-color: #167d74;
    box-shadow: 0 0 0 2px rgb(22 125 116 / 0.25);
}

#catch-logs-table th.location-cell,
#catch-logs-table td.location-cell {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
    vertical-align: middle;
}

#snakes-table th.species-cell,
#snakes-table td.species-cell {
    width: 180px;
    min-width: 160px;
    max-width: 180px;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
    vertical-align: middle;
}

.table-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    line-height: 0;
}
