/* assets/css/style.css */

/* Estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    color: #2c3e50;
}

p {
    margin-bottom: 10px;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    font-size: 14px;
}

.btn:hover {
    background-color: #2980b9;
    text-decoration: none;
}

.btn-primary {
    background-color: #3498db;
}

.btn-secondary {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #2ecc71;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

.required {
    color: #e74c3c;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-actions {
    margin-top: 20px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
}

/* Alertas */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Login e Cadastro */
.login-container {
    max-width: 500px;
    margin: 50px auto;
}

.login-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 10px 15px;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
    background-color: #f5f5f5;
}

.tab.active {
    background-color: #3498db;
    color: #fff;
}

.register-link {
    margin-top: 20px;
    text-align: center;
}

.action-links {
    margin-top: 20px;
    text-align: center;
}

/* Sucesso de cadastro */
.success-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.success-message {
    margin: 30px 0;
}

.info-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

/* Candidatura */
.candidatura-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.candidatura-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.phase-message {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.phase-message.success {
    background-color: #d4edda;
    color: #155724;
}

.feedback-message {
    margin-bottom: 20px;
}

/* Documentos */
.documents-upload {
    margin-top: 20px;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    margin-bottom: 5px;
}

.document-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
}

.document-status.uploaded {
    color: #28a745;
}

.document-status.pendente {
    color: #dc3545;
}

.document-upload {
    margin-left: 20px;
}

.file-input {
    display: none;
}

.upload-progress {
    margin-top: 10px;
    min-height: 24px;
}

.progress-bar {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background-color: #3498db;
    width: 0;
    transition: width 0.3s;
}

.progress-text {
    font-size: 12px;
    text-align: center;
}

.success {
    color: #28a745;
}

.error {
    color: #dc3545;
}

.loading {
    color: #6c757d;
}

.submit-documents {
    margin-top: 20px;
    text-align: center;
}

.documents-list {
    margin-top: 20px;
}

.documents-list ul {
    list-style: none;
}

.documents-list li {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dashboard do Gestor */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-nav {
    display: flex;
    margin-bottom: 20px;
    padding: 0 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dashboard-nav a {
    padding: 15px;
    color: #333;
    text-decoration: none;
}

.dashboard-nav a.active {
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #3498db;
    margin: 10px 0;
}

.stat-subtitle {
    font-size: 0.8em;
    color: #6c757d;
}

.dashboard-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.dashboard-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.activity-list {
    max-height: 500px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.activity-icon {
    margin-right: 15px;
    font-size: 1.5em;
}

.activity-details {
    flex: 1;
}

.activity-title {
    margin-bottom: 5px;
}

.activity-meta {
    font-size: 0.8em;
    color: #6c757d;
}

/* Lista de Candidaturas */
.filters-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.filters-form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.candidaturas-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.candidaturas-count {
    margin-bottom: 15px;
    color: #6c757d;
}

.candidaturas-table {
    width: 100%;
    border-collapse: collapse;
}

.candidaturas-table th,
.candidaturas-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.candidaturas-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.candidaturas-table tr:hover {
    background-color: #f8f9fa;
}

.fase-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    background-color: #e9ecef;
}

.fase-1 {
    background-color: #cff4fc;
    color: #055160;
}

.fase-2 {
    background-color: #fff3cd;
    color: #664d03;
}

.fase-3 {
    background-color: #ffe5d0;
    color: #7a4419;
}

.fase-4 {
    background-color: #d1e7dd;
    color: #0a3622;
}

.fase-5 {
    background-color: #f8d7da;
    color: #58151c;
}

.fase-6 {
    background-color: #d1e7dd;
    color: #0a3622;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-link {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #3498db;
    text-decoration: none;
}

.page-link.active {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

/* Detalhes da Candidatura */
.candidatura-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.candidatura-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.candidato-dados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dados-grupo {
    margin-bottom: 20px;
}

.dados-grupo h4 {
    margin-bottom: 10px;
    color: #3498db;
}

.full-width {
    grid-column: 1 / -1;
}

.ideia-descricao {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    white-space: pre-wrap;
}

.documentos-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.documento-item {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.feedback-section {
    background-color: #fff3cd;
}

.feedback-content {
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
}

.feedback-comentario {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-top: 10px;
    white-space: pre-wrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    max-width: 600px;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* Responsividade */
@media (max-width: 768px) {
    .filters-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .candidato-dados {
        grid-template-columns: 1fr;
    }
    
    .candidatura-header {
        flex-direction: column;
    }
    
    .candidatura-actions {
        margin-top: 10px;
    }
    
    .document-item {
        flex-direction: column;
    }
    
    .document-upload {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}
