.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.suggestions-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border);
}

.suggestion-item:hover {
    background-color: var(--bg-secondary);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.suggestion-details {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.search-button:hover::before {
    left: 100%;
}

.president-result-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 10px 16px;
    margin: 0;
    box-shadow: 0 16px 48px rgba(0,0,0,0.28), 0 4px 16px rgba(0,0,0,0.14);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

.president-result-card * {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

.president-card-header {
    display: flex;
    width: 100%;
}

.president-photo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.president-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.president-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.president-info {
    flex: 1;
}

.president-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.president-full-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    font-weight: 400;
}

.president-compact-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0;
}

.president-compact-info .gradient-btn {
    margin-top: -24px; /* move o botão mais para cima */
}

.president-period {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.gradient-btn {
    width: 7em;
    height: 2.5em;
    border-radius: 30em;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    color: #1e3a8a;
    font-weight: 700;
    box-shadow: 4px 4px 8px #c5c5c5,
                -4px -4px 8px #ffffff;
}

.gradient-btn::before {
    content: '';
    width: 0;
    height: 2.5em;
    border-radius: 30em;
    position: absolute;
    top: 0;
    left: 0;
    background-image: linear-gradient(to right, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    transition: .5s ease;
    display: block;
    z-index: -1;
}

.gradient-btn:hover::before {
    width: 7em;
}

.gradient-btn:hover {
    color: white;
    transition: color 0.3s ease 0.2s;
}

.badge.period {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.president-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.quick-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.president-summary {
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.president-summary p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.president-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary);
    border: 2px solid rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.president-indicators {
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.president-indicators h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicators-grid {
    display: grid;
    gap: 16px;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.indicator-label {
    min-width: 80px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.indicator-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.indicator-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 1s ease-out;
    position: relative;
}

.indicator-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.indicator-value {
    min-width: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .president-card-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .president-photo {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .president-quick-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .president-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        justify-content: center;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .president-result-card {
        padding: 24px 20px;
    }

    .president-name {
        font-size: 1.5rem;
    }

    .president-full-name {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .indicator-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .indicator-label {
        min-width: auto;
        text-align: center;
    }
}

/* Notificações modernas */
.notification {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.notification-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 0.9rem;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.6s ease-out;
}

.icon-container {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.icon-container:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.main-title {
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.instruction-item {
    position: relative;
    overflow: hidden;
}

.instruction-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: left 0.6s ease;
}

.instruction-item:hover::before {
    left: 100%;
}

.president-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.05rem;
}

.president-name-elegant {
    font-family: 'Inter', sans-serif; /* alterado de 'Playfair Display' */
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.president-approval {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1;
}

.approval-value {
    font-weight: 700;
    color: #059669;
}

.approval-low {
    font-weight: 700;
    color: #DC2626;
}

.president-party {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1;
}

.president-republica {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1;
}

.period-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-republica-velha {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
}

.badge-era-vargas {
    background: linear-gradient(135deg, #4A5568, #2D3748);
    color: white;
}

.badge-republica-nova {
    background: linear-gradient(135deg, #2B6CB0, #3182CE);
    color: white;
}

.badge-anos-ouro {
    background: linear-gradient(135deg, #DAA520, #FFD700, #FFA500);
    color: #000000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    border: 1px solid #B8860B;
    box-shadow: 0 2px 6px rgba(218, 165, 32, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.badge-ditadura-militar {
    background: linear-gradient(135deg, #744210, #975A16);
    color: white;
}

.badge-nova-republica {
    background: linear-gradient(135deg, #38A169, #48BB78);
    color: white;
}

.badge-default {
    background: linear-gradient(135deg, #718096, #A0AEC0);
    color: white;
}

.mandate-period {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;  
    padding: 0;
    border-radius: 0;
    border: none;
    white-space: nowrap;
}

.president-details-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.president-details-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 0;
}

.details-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.period-badge,
.badge-default {
    display: none !important;
}