:root {
    --bg-primary: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --primary: #15803d; /* Verde Recon */
    --primary-hover: #166534;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.5;
}

header {
    background: var(--card-bg);
    padding: 15px 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
}

header h1 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

header .user-info {
    font-size: 0.9rem;
    color: #6b7280;
    display: flex;
    gap: 15px;
    align-items: center;
}

header a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

header a:hover {
    text-decoration: underline;
}

.container {
    padding: 30px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

/* Tipografia */
h2 { color: var(--primary); margin-top: 0; font-weight: 700; }
h3 { margin-top: 0; color: #374151; font-weight: 600; }

/* Botões Globais */
button, .btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--danger-hover); }

.btn-sec { background: #f3f4f6; color: #4b5563; border-color: #d1d5db; }
.btn-sec:hover { background: #e5e7eb; color: #1f2937; }

/* Inputs e Formulários */
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="time"] {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
    background: #fff;
}
input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21,128,61,0.15);
}

/* Tabelas (Dashboard) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
table th {
    background: #f9fafb;
    color: #4b5563;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid var(--border);
}
table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
table tr:hover {
    background: #f8fafc;
}

/* Utilitários */
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-10 { gap: 10px; }
.mt-20 { margin-top: 20px; }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}
.modal {
    background: white;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}
.modal-header h3 { margin: 0; color: var(--primary); }
.modal-close {
    background: transparent; border: none; font-size: 1.5rem; cursor: pointer; color: #9ca3af;
}
.modal-close:hover { color: var(--danger); }
