:root {
    --prh-bg: #f3f6fa;
    --prh-surface: rgba(255, 255, 255, 0.92);
    --prh-surface-strong: #ffffff;
    --prh-surface-soft: #eef3f8;
    --prh-border: #d6dfe8;
    --prh-border-strong: rgba(18, 59, 93, 0.18);
    --prh-text: #111c28;
    --prh-text-soft: #5b6c7d;
    --prh-title: #101926;
    --prh-trust: #123b5d;
    --prh-trust-strong: #0b2942;
    --prh-green: #2f7f78;
    --prh-green-soft: rgba(47, 127, 120, 0.1);
    --prh-rose: #ef7d21;
    --prh-rose-soft: #fff1e3;
    --prh-focus: #0b6f8f;
    --prh-graphite: #17212b;
    --prh-mist: #f5f7fa;
    --prh-emerald-900: #0b2942;
    --prh-emerald-800: #123b5d;
    --prh-emerald-700: #2f7f78;
    --prh-teal: #2f7f78;
    --prh-teal-soft: rgba(47, 127, 120, 0.1);
    --prh-orange: #ef7d21;
    --prh-orange-soft: #fff1e3;
    --prh-danger: #c85252;
    --prh-danger-soft: #fff0ef;
    --prh-warning: #ef7d21;
    --prh-warning-soft: rgba(239, 125, 33, 0.12);
    --prh-success: #2f7f78;
    --prh-success-soft: rgba(47, 127, 120, 0.1);
    --prh-info: #123b5d;
    --prh-info-soft: rgba(18, 59, 93, 0.08);
    --prh-shadow-soft: 0 18px 38px rgba(18, 59, 93, 0.08);
    --prh-shadow-strong: 0 28px 54px rgba(18, 59, 93, 0.14);
    --prh-radius-lg: 30px;
    --prh-radius-md: 22px;
    --prh-radius-sm: 16px;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--prh-text);
    background:
        radial-gradient(circle at top left, rgba(18, 59, 93, 0.06), transparent 24%),
        radial-gradient(circle at top right, rgba(47, 127, 120, 0.08), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, var(--prh-bg) 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    overflow-y: auto;
    background:
        radial-gradient(circle at 10% 0%, rgba(18, 59, 93, 0.08), transparent 22%),
        radial-gradient(circle at 88% 5%, rgba(239, 125, 33, 0.09), transparent 20%),
        radial-gradient(circle at 80% 86%, rgba(47, 127, 120, 0.08), transparent 24%),
        linear-gradient(180deg, #fbfcfe 0%, var(--prh-bg) 100%);
}

a {
    color: var(--prh-trust);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--prh-green);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--prh-title);
    letter-spacing: -0.04em;
}

p {
    color: var(--prh-text-soft);
}

::selection {
    background: rgba(239, 125, 33, 0.18);
    color: var(--prh-title);
}

#app {
    min-height: 100vh;
}

.card {
    background:
        radial-gradient(circle at top right, rgba(239, 125, 33, 0.08), transparent 30%),
        radial-gradient(circle at bottom left, rgba(18, 59, 93, 0.05), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 246, 250, 0.96) 100%);
    border: 1px solid var(--prh-border);
    border-radius: var(--prh-radius-lg);
    box-shadow: var(--prh-shadow-soft);
    padding: 1.45rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(18px);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card h3,
.card h4 {
    margin-bottom: 0.9rem;
    color: var(--prh-title);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--prh-shadow-strong);
}

input.form-control,
select.form-select,
textarea.form-control,
input.form-select,
select.form-control,
textarea.form-select {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(18, 59, 93, 0.12);
    background: rgba(255, 255, 255, 0.97);
    color: var(--prh-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input.form-control::placeholder,
textarea.form-control::placeholder {
    color: #7a8896;
}

input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus,
input.form-select:focus,
select.form-control:focus,
textarea.form-select:focus {
    border-color: rgba(11, 111, 143, 0.36);
    box-shadow: 0 0 0 0.24rem rgba(11, 111, 143, 0.12);
    outline: none;
    transform: translateY(-1px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.8rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(18, 53, 47, 0.14);
}

.btn-primary,
.btn-success {
    background: linear-gradient(135deg, var(--prh-trust-strong) 0%, var(--prh-trust) 58%, var(--prh-green) 100%);
    color: #f8fffc;
}

.btn-primary:hover,
.btn-success:hover {
    background: linear-gradient(135deg, #081f34 0%, var(--prh-trust-strong) 56%, #256f68 100%);
    color: #f8fffc;
}

.btn-info {
    background: linear-gradient(135deg, #ffffff 0%, #f3f6f9 100%);
    color: var(--prh-trust);
    border-color: rgba(18, 59, 93, 0.16);
}

.btn-info:hover {
    background: linear-gradient(135deg, #ffffff 0%, #edf2f6 100%);
    color: var(--prh-trust-strong);
}

.btn-outline-primary {
    background: rgba(255, 255, 255, 0.76);
    color: var(--prh-trust);
    border-color: rgba(18, 59, 93, 0.18);
}

.btn-outline-primary:hover {
    background: rgba(18, 59, 93, 0.06);
    color: var(--prh-trust-strong);
    border-color: rgba(18, 59, 93, 0.28);
}

.btn-sm {
    min-height: 2.55rem;
    padding: 0.62rem 0.95rem;
    font-size: 0.92rem;
}

.alert {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid transparent;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(18, 53, 47, 0.06);
}

.alert-success {
    background: var(--prh-success-soft);
    color: #235f5a;
    border-color: rgba(47, 127, 120, 0.12);
}

.alert-danger {
    background: var(--prh-danger-soft);
    color: #a14141;
    border-color: rgba(200, 82, 82, 0.14);
}

.alert-warning {
    background: var(--prh-warning-soft);
    color: #9f5716;
    border-color: rgba(239, 125, 33, 0.16);
}

.alert-info {
    background: var(--prh-info-soft);
    color: var(--prh-trust);
    border-color: rgba(18, 59, 93, 0.12);
}

.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.kanban-column {
    flex: 1 1 280px;
    min-width: 280px;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--prh-border);
    box-shadow: var(--prh-shadow-soft);
    display: flex;
    flex-direction: column;
}

.kanban-column h5 {
    color: var(--prh-title);
    margin-bottom: 1rem;
    text-align: center;
}

.kanban-card {
    padding: 0.95rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 18px;
    background: #f8fbfa;
    border-left: 5px solid var(--prh-teal);
    box-shadow: 0 10px 24px rgba(18, 53, 47, 0.08);
    cursor: grab;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(18, 53, 47, 0.12);
}

.kanban-atrasada {
    border-left-color: var(--prh-danger) !important;
}

.kanban-fechada {
    border-left-color: #728880 !important;
}

.kanban-cancelada {
    border-left-color: var(--prh-warning) !important;
}

.kanban-board::-webkit-scrollbar {
    height: 8px;
}

.kanban-board::-webkit-scrollbar-thumb {
    background: rgba(23, 60, 53, 0.18);
    border-radius: 999px;
}

.kanban-board::-webkit-scrollbar-thumb:hover {
    background: rgba(23, 60, 53, 0.28);
}

.kanban-board::-webkit-scrollbar-track {
    background: transparent;
}

.loading-progress {
    display: block;
    width: 4rem;
    height: 4rem;
    border: 5px solid rgba(47, 141, 129, 0.14);
    border-top-color: var(--prh-orange);
    border-right-color: var(--prh-green);
    border-radius: 50%;
    animation: spin 0.95s linear infinite;
    margin: 20vh auto 1rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.gap-2 {
    gap: 0.5rem;
}

.fw-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--prh-text-soft) !important;
}

.fst-italic {
    font-style: italic;
}

.position-fixed {
    position: fixed !important;
}

.top-0 {
    top: 0 !important;
}

.end-0 {
    right: 0 !important;
}

.m-3 {
    margin: 1rem !important;
}

.shadow {
    box-shadow: var(--prh-shadow-soft) !important;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(18, 59, 93, 0.35), rgba(239, 125, 33, 0.35));
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: rgba(18, 59, 93, 0.05);
}

@media (max-width: 768px) {
    html,
    body {
        font-size: 15px;
    }

    .card {
        padding: 1.15rem;
        border-radius: 22px;
    }
}
