/* Estilos Globais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* Variáveis de cores */
:root {
    --primary-color: #c2df0c;
    --secondary-color: #121c4d;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666;
    --white: #fff;
    --black: #333;
    --success: #4CAF50;
    --warning: #ff9800;
    --danger: #f44336;
}

/* Cabeçalho */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Conteúdo Principal */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Títulos */
h1, h2, h3, h4 {
    color: var(--secondary-color);
    margin-top: 0;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Texto destacado */
.highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* Listas */
ul, ol {
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Tabelas */
.action-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.action-table th {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: left;
    padding: 0.75rem;
}

.action-table td {
    border-bottom: 1px solid var(--medium-gray);
    padding: 0.75rem;
    vertical-align: top;
}

.action-table tr:hover {
    background-color: var(--light-gray);
}

/* Checkboxes e Status */
.action-checkbox {
    transform: scale(1.5);
    margin-right: 0.5rem;
    cursor: pointer;
}

.status-text {
    font-weight: 500;
}

/* Dashboard de Progresso */
.dashboard-progresso {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.meta-progresso {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.barra-progresso-container {
    width: 100%;
    background-color: var(--medium-gray);
    border-radius: 10px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.barra-progresso {
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 10px;
    text-align: center;
    line-height: 20px;
    color: var(--white);
    font-weight: bold;
    transition: width 0.5s ease-in-out;
}

/* Recursos */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.resource-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.resource-content {
    flex-grow: 1;
}

.resource-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.resource-content p {
    margin: 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.resource-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    background-color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.resource-link:hover {
    background-color: #a8c30a;
}

.resource-card.book .resource-icon {
    color: #9c27b0;
}

.resource-card.course .resource-icon {
    color: #2196f3;
}

.resource-card.tool .resource-icon {
    color: #ff9800;
}

/* Rodapé */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.desenvolvido-por {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.desenvolvido-por img {
    height: 50px;
    margin-top: 0.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    
    nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    .dashboard-progresso {
        grid-template-columns: 1fr;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para campos de evidências */
.evidence-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.evidence-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.evidence-btn:hover {
    background-color: #1a2a70;
}

.evidence-suggestions {
    display: none;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-top: 5px;
    font-size: 0.9rem;
}

.evidence-suggestions ul {
    margin: 5px 0 0 20px;
    padding: 0;
}

.evidence-suggestions li {
    margin-bottom: 5px;
}

.evidence-upload {
    display: none;
}

.upload-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
}

.upload-btn:hover {
    background-color: #a8c30a;
}

.evidence-files {
    margin-top: 8px;
}

.evidence-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f0f0;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.file-size {
    color: #666;
    font-size: 0.8rem;
    margin: 0 10px;
}

.remove-file-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-file-btn:hover {
    background-color: #d32f2f;
}



/* Estilos para evidências */
.evidence-container {
    margin-top: 10px;
}

.evidence-list {
    margin-top: 10px;
}

.evidence-item {
    background: #f0f8ff;
    border: 1px solid #c2df0c;
    border-radius: 4px;
    padding: 8px;
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remove-evidence {
    color: #ff4444;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

.remove-evidence:hover {
    color: #cc0000;
}

/* Estilos para sugestões */
.suggestions {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
    font-size: 0.9rem;
}

.suggestions h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1rem;
}

.suggestions ul {
    margin: 0;
    padding-left: 20px;
}

.suggestions li {
    margin: 5px 0;
    color: #555;
}

/* Estilos para status */
.status-text.completed {
    color: #27ae60;
    font-weight: bold;
}

.status-text.pending {
    color: #e74c3c;
}

/* Estilos para progresso */
.progress-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.progress-item {
    margin: 15px 0;
}

.progress-bar-container {
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin: 5px 0;
}

.progress-bar {
    background: linear-gradient(90deg, #c2df0c, #a8c700);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    font-size: 0.9rem;
    color: #495057;
    margin-top: 5px;
}

/* Estilos para status geral */
.status-geral {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 20px 0;
}

.status-geral.completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-geral.almost-complete {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-geral.good-progress {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

.status-geral.started {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.status-geral.not-started {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}


/* Estilos para arquivos anexados */
.file-evidence {
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    padding: 8px 12px;
    margin: 5px 0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
}

.file-info:hover {
    color: #007bff;
}

.file-icon {
    font-size: 16px;
}

.file-name {
    font-weight: 500;
    color: #333;
}

.file-size {
    color: #666;
    font-size: 0.9em;
}

.evidence-item.file-evidence {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Melhorias nos inputs de arquivo */
input[type="file"] {
    margin: 10px 0;
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background-color: #fafafa;
    width: 100%;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

/* Indicador de arquivo carregado */
.file-uploaded {
    color: #28a745;
    font-size: 0.9em;
    margin-top: 5px;
}


/* ===== RESPONSIVIDADE MOBILE ===== */

/* Meta viewport já incluída no HTML */

/* Media Queries para Responsividade */
@media screen and (max-width: 768px) {
    /* Header responsivo */
    header {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    /* Navegação responsiva */
    nav {
        margin-top: 15px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 5px;
    }
    
    nav a {
        padding: 12px 15px;
        font-size: 0.9rem;
        text-align: center;
        border-radius: 8px;
        margin: 2px 0;
    }
    
    /* Container principal */
    .container {
        padding: 10px;
        margin: 0;
    }
    
    /* Cards responsivos */
    .card {
        margin: 10px 0;
        padding: 15px;
        border-radius: 8px;
    }
    
    /* Títulos responsivos */
    h2 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    /* Tabelas responsivas */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 10px 0;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    table {
        min-width: 100%;
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 8px 6px;
        min-width: 120px;
        word-wrap: break-word;
    }
    
    th {
        font-size: 0.8rem;
        position: sticky;
        top: 0;
        background-color: var(--primary-color);
        z-index: 10;
    }
    
    /* Layout de cards para tabelas em mobile */
    @media screen and (max-width: 480px) {
        .mobile-card-layout {
            display: block;
        }
        
        .mobile-card-layout table,
        .mobile-card-layout thead,
        .mobile-card-layout tbody,
        .mobile-card-layout th,
        .mobile-card-layout td,
        .mobile-card-layout tr {
            display: block;
        }
        
        .mobile-card-layout thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }
        
        .mobile-card-layout tr {
            border: 1px solid #ccc;
            margin-bottom: 10px;
            padding: 10px;
            border-radius: 8px;
            background: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .mobile-card-layout td {
            border: none;
            position: relative;
            padding: 8px 8px 8px 35%;
            min-height: 30px;
        }
        
        .mobile-card-layout td:before {
            content: attr(data-label) ": ";
            position: absolute;
            left: 6px;
            width: 30%;
            padding-right: 10px;
            white-space: nowrap;
            font-weight: bold;
            color: var(--primary-color);
        }
    }
    
    /* Botões responsivos */
    .evidence-btn,
    .suggestion-btn,
    .upload-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        margin: 5px 2px;
        min-width: auto;
        width: 100%;
        max-width: 200px;
    }
    
    /* Checkboxes maiores para mobile */
    .action-checkbox {
        transform: scale(1.2);
        margin-right: 8px;
    }
    
    /* Status text responsivo */
    .status-text {
        font-size: 0.85rem;
        padding: 4px 8px;
        border-radius: 4px;
        display: inline-block;
        margin-left: 5px;
    }
    
    /* Evidências responsivas */
    .evidence-container {
        margin: 10px 0;
    }
    
    .evidence-item {
        margin: 5px 0;
        padding: 8px;
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    .file-evidence {
        padding: 10px;
    }
    
    .file-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .file-name {
        font-size: 0.85rem;
        word-break: break-all;
    }
    
    /* Inputs de arquivo responsivos */
    input[type="file"] {
        font-size: 0.8rem;
        padding: 6px;
    }
    
    /* Sugestões responsivas */
    .suggestions {
        margin-top: 10px;
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .suggestions ul {
        padding-left: 15px;
    }
    
    .suggestions li {
        margin: 5px 0;
        line-height: 1.4;
    }
    
    /* Progresso responsivo */
    .progress-container {
        margin: 15px 0;
    }
    
    .progress-item {
        margin: 10px 0;
    }
    
    .progress-bar-container {
        height: 20px;
        margin: 5px 0;
    }
    
    .progress-text {
        font-size: 0.85rem;
        text-align: center;
        margin-top: 5px;
    }
    
    /* Recursos responsivos */
    .resource-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .resource-card {
        padding: 15px;
    }
    
    .resource-card h4 {
        font-size: 1rem;
    }
    
    .resource-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .resource-link {
        padding: 10px 15px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    /* Footer responsivo */
    footer {
        padding: 15px 10px;
        text-align: center;
        font-size: 0.8rem;
    }
    
    /* Scroll suave em mobile */
    html {
        scroll-behavior: smooth;
    }
    
    /* Melhorar toque em mobile */
    button, a, input[type="checkbox"] {
        touch-action: manipulation;
    }
    
    /* Espaçamento entre seções */
    section {
        margin-bottom: 20px;
    }
    
    /* Texto responsivo */
    p {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: justify;
    }
    
    /* Listas responsivas */
    ul, ol {
        padding-left: 20px;
    }
    
    li {
        margin: 5px 0;
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Media query para telas muito pequenas */
@media screen and (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    .card {
        padding: 10px;
        margin: 5px 0;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    nav a {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    table {
        font-size: 0.75rem;
    }
    
    th, td {
        padding: 6px 4px;
        min-width: 100px;
    }
}

/* Media query para tablets */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    table {
        font-size: 0.9rem;
    }
}

/* Melhorias gerais para touch */
@media (hover: none) and (pointer: coarse) {
    button:hover,
    a:hover {
        transform: none;
    }
    
    button:active,
    a:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}


/* Estilos para status de progresso */
.status-not-started {
    color: #6c757d;
}

.status-in-progress {
    color: #ffc107;
    font-weight: bold;
}

.status-completed {
    color: #28a745;
    font-weight: bold;
}

/* Estilos para upload de evidências */
.file-date {
    color: var(--dark-gray);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 2px;
}

.upload-indicator {
    padding: 10px;
    background-color: var(--light-gray);
    border-radius: 5px;
    margin: 5px 0;
    border-left: 3px solid var(--primary-color);
}

.upload-indicator span {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.upload-progress {
    width: 100%;
    height: 4px;
    background-color: var(--medium-gray);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.upload-progress::after {
    content: '';
    display: block;
    width: 30%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    animation: upload-animation 1.5s infinite;
}

@keyframes upload-animation {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

