/* ===== AREAS PAGES STYLES ===== */

/* Area Hero Section */
.area-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.area-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.area-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* New Flex Layout for Hero Section */
.hero-content-flex {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image {
    flex: 0 0 45%;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    max-height: 500px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.area-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 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.area-icon i {
    font-size: 36px;
    color: white;
}

.area-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.area-hero .hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 500;
}

.area-hero .hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.area-hero .hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 173, 97, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(52, 173, 97, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 32px;
    color: white;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.service-features i {
    color: var(--primary-color);
    font-size: 14px;
}

/* Debtor Panel */
.debtor-panel {
    display: flex;
    justify-content: center;
    align-items: start;
    margin-top: 120px;
    margin-bottom: 120px;
}

/* Debtor Panel Styles */
.debtor-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.debtor-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.debtor-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.debtor-detail {
    display: flex;
    flex-direction: column;
}

.debtor-detail label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.debtor-detail span {
    color: var(--text-color);
    font-size: 1rem;
}

.titles-section {
    margin-top: 2rem;
}

.titles-section h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.titles-section h3::before {
    content: '📄';
    font-size: 1.2rem;
}

.titles-grid {
    display: grid;
    gap: 1rem;
}

.title-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.title-card:hover {
    box-shadow: 0 4px 15px rgba(52, 173, 97, 0.1);
    border-color: var(--primary-color);
}

.title-card.overdue {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
}

.title-card.open {
    border-left: 4px solid #ffc107;
    background: #fffbf0;
}

.title-card.paid {
    border-left: 4px solid #28a745;
    background: #f0fff4;
}

.title-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.title-number {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.title-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.title-status.overdue {
    background: #dc3545;
    color: white;
}

.title-status.open {
    background: #ffc107;
    color: #212529;
}

.title-status.paid {
    background: #28a745;
    color: white;
}

.title-description {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.title-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.value-item {
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.value-item label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.value-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.value-item .current-value .value {
    color: var(--primary-color);
}

.title-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-negotiate {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-negotiate:hover {
    background: #2a8f4f;
    transform: translateY(-1px);
}

.btn-details {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-details:hover {
    background: var(--primary-color);
    color: white;
}

.no-titles {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Title Details Modal Styles */
.title-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.title-details-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.title-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.title-details-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.title-details-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-label {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 1rem;
}

.detail-value {
    color: #34495e;
    text-align: right;
}

.detail-value.status {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.detail-value.status.overdue {
    background: #e74c3c;
    color: white;
}

.detail-value.status.open {
    background: #f39c12;
    color: white;
}

.negotiate-button {
    width: 100%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.negotiate-button:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Form Validation Styles */
.form-group input.error {
    border: 2px solid #e74c3c;
    background-color: #fdf2f2;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.field-error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.field-error i {
    font-size: 0.875rem;
}

/* Success state for inputs */
.form-group input.valid {
    border: 2px solid #27ae60;
    background-color: #f8fff8;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.detail-header h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.3rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.detail-item label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.detail-item .current-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.detail-item .status-overdue {
    color: #dc3545;
    font-weight: 600;
}

.detail-item .status-open {
    color: #ffc107;
    font-weight: 600;
}

.detail-item .status-paid {
    color: #28a745;
    font-weight: 600;
}

.overdue-notice {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.overdue-notice i {
    color: #dc3545;
    font-size: 1.2rem;
}

.overdue-notice p {
    margin: 0;
    color: #dc3545;
    font-weight: 500;
}

.no-titles i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.panel-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 40px rgba(52, 173, 97, 0.15);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.info-icon i {
    font-size: 24px;
    color: white;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.panel-access {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(52, 173, 97, 0.1);
    max-width: 500px;
    width: 100%;
}

.access-form h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
}

.access-form > p {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 30px;
}

.debtor-form .form-group {
    margin-bottom: 25px;
}

.debtor-form label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.debtor-form input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.debtor-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 173, 97, 0.1);
}

.privacy-notice {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
}

.privacy-notice p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.privacy-notice i {
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.privacy-link:hover {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Process Timeline */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
}

.timeline-item {
    text-align: center;
    position: relative;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(52, 173, 97, 0.3);
}

.timeline-icon i {
    font-size: 28px;
    color: white;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Rights Grid (Trabalhista) */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.right-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.right-item:hover {
    transform: translateY(-5px);
}

.right-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.right-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.right-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Retirement Types (Previdenciário) */
.retirement-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.retirement-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.retirement-card:hover {
    transform: translateY(-5px);
}

.retirement-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.retirement-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.retirement-requirements h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.retirement-requirements ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.retirement-requirements li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid #eee;
}

.retirement-requirements li:last-child {
    border-bottom: none;
}

/* Documents Grid (Previdenciário) */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.document-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.document-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.document-list {
    list-style: none;
    padding: 0;
}

.document-list li {
    padding: 0.75rem 0;
    color: var(--text-light);
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.document-list li:last-child {
    border-bottom: none;
}

.document-list i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Simulator (Previdenciário) */
.simulator-container {
    max-width: 800px;
    margin: 0 auto;
}

.simulator-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.simulator-result {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.simulator-result h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.result-content {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.result-disclaimer {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* FAQ Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.btn-white {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-white:hover {
    background: transparent;
    color: white;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-color);
}

/* Debtor Panel Styles */
.debtor-panel-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.panel-header {
    background: white;
    color: var(--text-dark);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-top: 120px;
}

.debtor-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.debtor-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    opacity: 0.8;
}

.debtor-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.panel-summary {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.summary-card.overdue {
    background: white;
    border: 1px solid #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.summary-content {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.summary-value, .summary-count {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Titles Section */
.titles-section {
    padding: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.view-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.view-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Titles Table */
.titles-table-view, .titles-cards-view {
    display: none;
}

.titles-table-view.active, .titles-cards-view.active {
    display: block;
}

.titles-table {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    background: #f8f9fa;
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

.table-body {
    max-height: 400px;
    overflow-y: auto;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.table-row:hover {
    background: #f8f9fa;
}

.table-row.overdue {
    border-left: 4px solid #e74c3c;
    background: #fdf2f2;
}

.table-row.overdue:hover {
    background: #fce4e4;
}

.td {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title-number {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.title-description {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.3;
}

.creditor-name {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.creditor-cnpj {
    font-size: 0.875rem;
    color: #6c757d;
}

.current-value {
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 0.25rem;
}

.original-value {
    font-size: 0.875rem;
    color: #6c757d;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.status-badge.status-open {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-overdue {
    background: #f8d7da;
    color: #721c24;
}

.actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-outline {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-outline:hover {
    background: #f8f9fa;
    color: #495057;
}

.no-titles {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.no-titles i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Panel Actions */
.panel-actions {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.panel-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

/* Modal Improvements */
.title-details-content {
    max-width: 600px;
    width: 95%;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h4, .detail-section h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.detail-grid {
    display: grid;
    gap: 1rem;
}

.modal-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .area-hero {
        padding: 100px 0 60px;
    }
    
    .area-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .area-hero .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .area-hero .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .area-hero .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .debtor-panel {
        margin-bottom: 60px;
    }
    
    .debtor-details {
        grid-template-columns: 1fr;
    }
    
    .title-values {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .title-actions {
        flex-direction: column;
    }
    
    .title-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .panel-access {
        padding: 30px 20px;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .panel-summary {
        width: 100%;
        justify-content: space-between;
    }
    
    .summary-card {
        flex: 1;
        min-width: auto;
    }
    
    .table-header, .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .th, .td {
        padding: 0.5rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .th:last-child, .td:last-child {
        border-bottom: none;
    }
    
    .view-controls {
        margin-top: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .title-details-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .detail-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .area-icon {
        width: 60px;
        height: 60px;
    }
    
    .area-icon i {
        font-size: 28px;
    }
    
    .area-hero .hero-title {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 24px;
    }
    
    .timeline-icon {
        width: 60px;
        height: 60px;
    }
    
    .timeline-icon i {
        font-size: 20px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}