/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #f0f2f5;
    --bg-sidebar: #1e2a53;
    --bg-sidebar-gradient-start: #2a3a6a;
    --text-sidebar: #a9b4d4;
    --text-sidebar-hover: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-primary: #4f46e5;
    --accent-secondary: #10b981;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Sidebar --- */
.sidebar {
    background: linear-gradient(180deg, var(--bg-sidebar-gradient-start) 0%, var(--bg-sidebar) 100%);
}
.sidebar-link {
    color: var(--text-sidebar);
    transition: all 0.2s ease-in-out;
}
.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-sidebar-hover);
}
.sidebar-link.active {
    background-color: var(--accent-primary);
    color: var(--text-sidebar-hover);
    box-shadow: 0 4px 12px -1px rgb(79 70 229 / 40%);
}

/* --- Cards --- */
.card {
    background-color: var(--card-bg);
    border-radius: 1rem; /* Bordas mais arredondadas */
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

/* --- Formulários e Botões --- */
.input-group {
    position: relative;
}

.input-field {
    width: 100%;
    height: 3rem; /* 48px */
    padding-left: 1rem;
    padding-right: 2.5rem; /* Espaço para o ícone */
    border: 1px solid #cbd5e1; /* slate-300 */
    border-radius: 0.5rem; /* rounded-lg */
    background-color: #f8fafc; /* slate-50 */
    color: #1e293b; /* slate-800 */
    transition: all 0.2s ease-in-out;
}
.input-field::placeholder {
    color: #94a3b8; /* slate-400 */
}
.input-field:focus {
    outline: none;
    border-color: transparent;
    --tw-ring-color: #4f46e5; /* indigo-500 */
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
textarea.input-field {
    height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: #94a3b8; /* slate-400 */
}

.button-primary {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.625rem 1rem; /* 10px 16px */
    height: 3rem; /* 48px */
    background-color: #4f46e5; /* indigo-600 */
    color: white;
    font-weight: 600;
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: all 0.2s ease-in-out;
}
.button-primary:hover {
    background-color: #4338ca; /* indigo-700 */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}
.button-primary:focus {
    outline: none;
    --tw-ring-color: #4f46e5;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 2px #ffffff;
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + 2px) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.button-primary:disabled {
    opacity: 0.5;
}


.button-secondary {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.625rem 1rem;
    height: 3rem;
    background-color: #e2e8f0; /* slate-200 */
    color: #334155; /* slate-700 */
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: all 0.2s ease-in-out;
}
.button-secondary:hover {
    background-color: #cbd5e1; /* slate-300 */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}
.button-secondary:focus {
     outline: none;
    --tw-ring-color: #94a3b8;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 2px #ffffff;
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + 2px) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.button-secondary:disabled {
    opacity: 0.5;
}


/* --- Específicos da Aplicação --- */
#mobile-sidebar {
    transition: transform 0.3s ease-in-out;
}
.content-view {
    display: none;
}
.content-view.active {
    display: block;
}

/* --- Estilos do Checklist --- */
.status-btn {
    background-color: #f1f5f9;
    color: #64748b;
    transition: all 0.2s ease-in-out;
}
.status-btn:hover {
    background-color: #e2e8f0;
}
.status-btn.active[data-status="OK"] {
    background-color: #22c55e; /* green-500 */
    color: white;
    border-color: #16a34a;
}
.status-btn.active[data-status="NOK"] {
    background-color: #ef4444; /* red-500 */
    color: white;
    border-color: #dc2626;
}
.status-btn.active[data-status="NA"] {
    background-color: #64748b; /* slate-500 */
    color: white;
    border-color: #475569;
}
.toggle-icon {
    transition: transform 0.2s ease-in-out;
}
.checklist-evidence-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* 8px */
    align-items: center;
}
