* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --secondary-color: #10B981;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-light);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-badge {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline.active {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 200px;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--bg-light);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--bg-white);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Auth Section */
.auth-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

.user-type-switcher {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--bg-light);
    padding: 0.5rem;
    border-radius: 8px;
}

.type-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--text-light);
}

.type-btn.active {
    background: var(--primary-color);
    color: white;
}

.type-btn:hover {
    background: var(--primary-color);
    color: white;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group[style*="display: none"] {
    display: none !important;
}

/* Esconder elementos com classe hidden */
.hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

.hidden input,
.hidden label,
.hidden * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Regras específicas para campos de senha quando são colaboradores */
#campo-senha.hidden,
#campo-confirmar-senha.hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    position: relative !important;
    left: auto !important;
}

#campo-senha.hidden *,
#campo-confirmar-senha.hidden * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Quando NÃO tem a classe hidden, mostrar os campos */
#campo-senha:not(.hidden),
#campo-confirmar-senha:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    margin: inherit !important;
    padding: inherit !important;
    opacity: 1 !important;
}

#campo-senha:not(.hidden) label,
#campo-confirmar-senha:not(.hidden) label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#campo-senha:not(.hidden) input,
#campo-confirmar-senha:not(.hidden) input {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
} 

.form-group input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
}

.auth-footer p {
    margin: 0.5rem 0;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* About Section */
.about-section {
    padding: 3rem 0;
    background: var(--bg-white);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

.values-list {
    list-style: none;
    padding-left: 0;
}

.values-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.values-list strong {
    color: var(--primary-color);
}

/* Dashboard Section */
.dashboard-section {
    padding: 3rem 0;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.dashboard-header p {
    font-size: 1.25rem;
    color: var(--text-light);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dashboard-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.dashboard-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Jobs Section */
.jobs-section,
.candidates-section {
    margin-top: 3rem;
}

.jobs-section h2,
.candidates-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.jobs-list,
.candidates-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.job-card,
.candidate-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.job-card:hover,
.candidate-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.job-header,
.candidate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.job-header h3,
.candidate-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.job-badge {
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.candidate-status {
    padding: 0.25rem 0.75rem;
    background: var(--warning-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.candidate-status:contains("Aprovada") {
    background: var(--success-color);
}

.company-name,
.candidate-role {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.job-description,
.candidate-experience {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 0.85rem;
}

.job-footer,
.candidate-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.job-salary {
    font-weight: 600;
    color: var(--success-color);
    font-size: 1.1rem;
}

/* Stats Section */
.stats-section {
    margin-top: 3rem;
}

.stats-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--text-dark);
    color: white;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 360px;
    min-width: 260px;
    font-size: 0.95rem;
    line-height: 1.35;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.toast.success { border-left: 5px solid var(--success-color); }
.toast.warn { border-left: 5px solid var(--warning-color); }
.toast.error { border-left: 5px solid var(--error-color); }

.toast-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.toast-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Perfil do colaborador (abas horizontais + edição por bloco) */
.perfil-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px 0;
}

.perfil-tab-btn {
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.perfil-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.perfil-tab-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.perfil-tab-panel {
    display: none;
}

.perfil-tab-panel.active {
    display: block;
}

.perfil-section {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.perfil-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.perfil-muted {
    color: var(--text-light);
    margin-top: 4px;
}

.perfil-readonly p {
    margin: 6px 0;
    color: var(--text-dark);
}

/* Edição campo a campo */
.perfil-field-editable {
    margin: 12px 0;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.perfil-field-editable:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.perfil-field-view {
    cursor: pointer;
    user-select: none;
}

.perfil-field-view p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perfil-field-view .field-value {
    color: var(--text-dark);
    font-weight: normal;
}

.perfil-field-edit {
    margin-top: 8px;
}

.perfil-field-edit-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.perfil-field-input {
    flex: 1;
    min-width: 200px;
    padding: 0.6rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.perfil-field-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.perfil-field-input[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.perfil-field-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.perfil-icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.perfil-icon-save {
    background-color: #10b981;
    color: white;
}

.perfil-icon-save:hover {
    background-color: #059669;
    transform: scale(1.05);
}

.perfil-icon-cancel {
    background-color: #ef4444;
    color: white;
}

.perfil-icon-cancel:hover {
    background-color: #dc2626;
    transform: scale(1.05);
}

.perfil-field-note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.perfil-form {
    margin-top: 12px;
}

.perfil-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .dashboard-grid,
    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Experiências Profissionais */
.experiences-container {
    margin-top: 20px;
}

.experience-block {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.experience-block:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.experience-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.experience-period {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.experience-website {
    margin: 0.25rem 0;
    font-size: 0.85rem;
}

.experience-website a {
    color: var(--primary-color);
    text-decoration: none;
}

.experience-website a:hover {
    text-decoration: underline;
}

.experience-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-edit {
    background-color: #3b82f6;
    color: white;
}

.btn-edit:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

.btn-delete {
    background-color: #ef4444;
    color: white;
}

.btn-delete:hover {
    background-color: #dc2626;
    transform: scale(1.05);
}

.experience-content {
    margin-top: 1rem;
}

.experience-activities {
    white-space: pre-wrap;
    margin: 8px 0;
    color: var(--text-dark);
    line-height: 1.6;
    font-family: inherit;
}

.no-experiences {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    font-style: italic;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

/* Importar Currículo (Dropzone) */
.perfil-header-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.dropzone {
    margin-top: 12px;
    border: 2px dashed var(--border-color);
    border-radius: 14px;
    padding: 18px;
    background: #fafafa;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.dropzone:hover {
    border-color: var(--primary-color);
    background: #f5f9ff;
}

.dropzone.dragover {
    border-color: var(--primary-color);
    background: #eef6ff;
    transform: scale(1.01);
}

.dropzone-title {
    font-weight: 700;
    color: var(--text-dark);
}

.dropzone-subtitle {
    margin-top: 6px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.dropzone-filename {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.9;
    word-break: break-word;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: var(--text-dark);
}

.modal form {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

