/* Modal de Feedback Profissional */
.feedback-modal-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-modal-overlay.show {
    opacity: 1 !important;
}

.feedback-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-modal-overlay.show .feedback-modal {
    transform: translate(-50%, -50%) scale(1);
}

.feedback-modal-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feedback-modal-header.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.feedback-modal-header.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feedback-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.feedback-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    animation: bounceIn 0.6s ease-out 0.2s both;
}

.feedback-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    animation: slideInUp 0.4s ease-out 0.3s both;
}

.feedback-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.feedback-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.feedback-modal-body {
    padding: 40px 35px;
    text-align: center;
}

.feedback-modal-body p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 20px 0;
    animation: fadeInUp 0.4s ease-out 0.4s both;
}

.feedback-details {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid #10b981;
    text-align: left;
}

.feedback-details h4 {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

.feedback-details ul {
    margin: 0;
    padding-left: 20px;
    color: #6b7280;
}

.feedback-details li {
    margin-bottom: 5px;
}

.feedback-modal-footer {
    padding: 25px 35px 35px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
}

.feedback-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 140px;
    justify-content: center;
    animation: slideInUp 0.4s ease-out 0.5s both;
}

.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.feedback-btn.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.feedback-btn.error:hover {
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.feedback-btn.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feedback-btn.warning:hover {
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* Animações */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 576px) {
    .feedback-modal {
        width: 95%;
        margin: 0 10px;
    }

    .feedback-modal-header,
    .feedback-modal-body,
    .feedback-modal-footer {
        padding-left: 25px;
        padding-right: 25px;
    }

    .feedback-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .feedback-modal-header h3 {
        font-size: 1.3rem;
    }
}

/* Modal de Toggle Status da Vaga */
.toggle-job-modal {
    max-width: 550px;
    width: 95%;
}

.toggle-job-header {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 24px 30px;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.toggle-job-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.toggle-job-body {
    padding: 30px;
    background: white;
}

.job-status-info {
    margin-bottom: 25px;
}

.job-title-display {
    background: #f8fafc;
    border-left: 4px solid #AE2C2A;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.job-title-display i {
    color: #AE2C2A;
    font-size: 1.1rem;
}

.job-title-display span {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

.job-title-display strong {
    font-weight: 600;
    background: linear-gradient(135deg, #AE2C2A, #ff5555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.status-change-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.current-status-display,
.new-status-display {
    text-align: center;
    flex: 1;
}

.status-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.status-badge-container {
    margin-top: 5px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.status-badge.current.active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-badge.current.inactive {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.status-badge.new.active {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.status-badge.new.inactive {
    background: #fef2f2;
    color: #991b1b;
    border: 2px solid #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.status-arrow {
    padding: 0 15px;
    color: #ef4444;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-implications {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.implication-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #0ea5e9;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.implication-icon.activate, .implication-icon.deactivate {
    background: #ef4444;
}

.implication-text {
    flex: 1;
}

.implication-text p {
    margin: 0;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.5;
}

.toggle-message-section {
    margin-top: 25px;
}

.toggle-message-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.toggle-message-section label i {
    color: #ef4444;
}

.toggle-message-section textarea {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.toggle-message-section textarea:focus {
    outline: none;
    border-color: #ef4444;
    background: white;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.character-count {
    text-align: right;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
}

.last-message-section {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

.last-message-section .last-message-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.last-message-section .last-message-label i {
    color: #ef4444;
}

.last-message-section .last-message-content {
    font-size: 0.9rem;
    color: #343a40;
    line-height: 1.4;
    font-style: italic;
    margin: 0;
}

.toggle-job-footer {
    padding: 15px 30px 30px;
    background: #fafbfc;
    border-radius: 0 0 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-1px);
}

.btn-confirm-toggle {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-width: 140px;
    justify-content: center;
}

.btn-confirm-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.btn-confirm-toggle.activate {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.btn-confirm-toggle.activate:hover {
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

/* Responsividade para o modal de toggle */
@media (max-width: 576px) {
    .toggle-job-modal {
        width: 95%;
        margin: 0 10px;
    }

    .toggle-job-header,
    .toggle-job-body,
    .toggle-job-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .status-change-visual {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .status-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }

    .toggle-job-footer {
        flex-direction: column;
        gap: 10px;
    }

    .btn-cancel,
    .btn-confirm-toggle {
        width: 100%;
        justify-content: center;
    }

    .status-implications {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .implication-icon {
        margin: 0 auto;
    }
}
