/* Importação de fonte moderna */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-gradient: linear-gradient(45deg, #f32c86, #7a36f3);
    --bg-color: #f8f9fe;
    --sidebar-width: 260px;
    --text-main: #32325d;
    --text-muted: #8898aa;
    --card-shadow: 0 0 2rem 0 rgba(136, 152, 170, .15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 2rem 0 rgba(0,0,0,0.05);
    position: fixed;
    height: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
    padding-left: 10px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    transition: 0.3s;
}

.sidebar ul li.active {
    background: #f6f9fc;
    color: #f32c86;
    font-weight: 600;
}

.sidebar ul li:hover:not(.active) {
    background: #fcfcfc;
    color: var(--text-main);
}

/* --- CONTEÚDO PRINCIPAL --- */
.content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 30px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* --- CARDS E FORMULÁRIO --- */
.card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    max-width: 800px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.input-group input[type="file"],
.input-group input[type="text"],
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    outline: none;
    transition: 0.2s;
}

.input-group input:focus {
    border-color: #7a36f3;
}

/* --- BOTÃO ESTILO LECTOR --- */
.btn-send {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 15px rgba(243, 44, 134, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 44, 134, 0.4);
}

/* --- BADGES DE STATUS (Igual à tabela da imagem) --- */
.status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status.process { background: #fff; color: #fff; }
.status.open { background: #e8f9ec; color: #2dce89; }
.status.hold { background: #e5f3ff; color: #11cdef; }



/* ... (Mantenha o CSS anterior e adicione/ajuste estes) ... */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card-gradient {
    padding: 20px;
    border-radius: 12px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.card-gradient.purple { background: linear-gradient(80deg, #f32c86, #7a36f3); }
.card-gradient.blue { background: linear-gradient(80deg, #21d4fd, #2152ff); }
.card-gradient.orange { background: linear-gradient(80deg, #ff9a44, #ff4b2b); }

.card-chart-main {
    background: white;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    justify-content: center;
    box-shadow: var(--card-shadow);
}

.card-chart-main canvas { max-width: 100px !important; max-height: 100px !important; }

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
}

/* Tabela Estilo Lector */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    color: #8898aa;
    padding: 12px;
    background: #f6f9fc;
}

td {
    padding: 12px;
    font-size: 13px;
    border-bottom: 1px solid #f6f9fc;
}

.email-cell { font-weight: 500; color: #32325d; }

.row { display: flex; gap: 10px; }
.row .input-group { flex: 1; }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    width: 50%;
    border-radius: 15px;
}
.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    width: 50%;
    border-radius: 15px;
}
.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}