/* Estilos frontend do Impacto Cultural */
.ic-frontend-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ic-frontend-dashboard,
.ic-profile-page,
.ic-editais-page {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

.ic-dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ic-dashboard-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.ic-dashboard-header p {
    color: #666;
    font-size: 16px;
}

/* Estatísticas */
.ic-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ic-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.ic-stat-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.ic-stat-content h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.9;
}

.ic-stat-number {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.ic-stat-desc {
    margin: 5px 0 0 0;
    font-size: 12px;
    opacity: 0.8;
}

/* Abas */
.ic-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.ic-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.ic-tab:hover {
    color: #667eea;
}

.ic-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.ic-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.ic-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Listas de conteúdo */
.ic-contracts-list,
.ic-editais-grid {
    display: grid;
    gap: 20px;
}

.ic-contract-card,
.ic-edital-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ic-contract-card:hover,
.ic-edital-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ic-contract-header,
.ic-edital-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.ic-contract-header h3,
.ic-edital-header h3 {
    margin: 0;
    color: #333;
}

.ic-edital-code {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.ic-contract-body,
.ic-edital-body {
    margin-bottom: 20px;
}

.ic-edital-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
}

.ic-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.ic-meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ic-edital-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ic-contract-actions,
.ic-edital-actions {
    display: flex;
    gap: 10px;
}

/* Formulários */
.ic-profile-form-container {
    margin-top: 30px;
}

.ic-form-sections {
    display: grid;
    gap: 30px;
}

.ic-form-section {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
}

.ic-form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.ic-form-group {
    margin-bottom: 20px;
}

.ic-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.ic-form-group input,
.ic-form-group select,
.ic-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.ic-form-group input:focus,
.ic-form-group select:focus,
.ic-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ic-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.ic-form-help {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: block;
}

.ic-form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Botões */
.ic-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.ic-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ic-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ic-btn-secondary {
    background: #6c757d;
    color: white;
}

.ic-btn-secondary:hover {
    background: #5a6268;
}

.ic-btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.ic-btn-outline:hover {
    background: #667eea;
    color: white;
}

.ic-btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Status badges */
.ic-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ic-status-ativo,
.ic-status-active {
    background: #d4edda;
    color: #155724;
}

.ic-status-pendente,
.ic-status-pending {
    background: #fff3cd;
    color: #856404;
}

.ic-status-rascunho,
.ic-status-draft {
    background: #e2e3e5;
    color: #383d41;
}

.ic-status-assinado,
.ic-status-signed {
    background: #cce5ff;
    color: #004085;
}

/* Notificações */
.ic-notice {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.ic-notice-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.ic-notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.ic-notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.ic-notice-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Filtros */
.ic-filters {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.ic-filter-form {
    margin: 0;
}

.ic-filter-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.ic-search-input,
.ic-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}

/* Estados vazios */
.ic-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.ic-empty-state p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Documentos */
.ic-documents-list {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.ic-documents-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ic-documents-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.ic-documents-list li:last-child {
    border-bottom: none;
}

.ic-document-status {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.ic-no-documents {
    text-align: center;
    color: #999;
    font-style: italic;
    margin: 0;
}

/* Upload de imagem */
.ic-current-image {
    margin-top: 10px;
}

.ic-current-image p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

/* Modal */
.ic-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ic-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
}

.ic-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.ic-modal-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Validação */
.ic-error {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 1px #dc3232 !important;
}

.ic-field-error {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
}

/* Responsividade */
@media (max-width: 768px) {
    .ic-frontend-container {
        padding: 10px;
    }
    
    .ic-frontend-dashboard,
    .ic-profile-page,
    .ic-editais-page {
        padding: 20px;
    }
    
    .ic-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ic-tabs {
        flex-wrap: wrap;
    }
    
    .ic-tab {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 14px;
    }
    
    .ic-contract-actions,
    .ic-edital-actions {
        flex-direction: column;
    }
    
    .ic-btn {
        width: 100%;
        text-align: center;
    }
    
    .ic-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ic-search-input,
    .ic-select {
        min-width: auto;
        width: 100%;
    }
    
    .ic-edital-meta {
        flex-direction: column;
        gap: 10px;
    }
}