:root {
    --primary: #3a86ff;
    --secondary: #8338ec;
    --success: #38b000;
    --bg: #f8f9fa;
    --card: #ffffff;
    --text: #212529;
    --border: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    color: white;
}

.nav-blog-link {
    margin-left: auto;
    margin-right: 1rem;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}


.nav-blog-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.nav-blog-link svg {
    margin-right: 6px;
}

.subtitle {
    font-size: 1rem;
    color: #64748b;
    text-align: center;
    font-weight: 400;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
    animation-delay: 0.3s;
    display: flex;
    padding: 2rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.7s ease-in-out;
}

.location-item {
    background-color: var(--card);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.location-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.3rem;
}

.location-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.card {
    background-color: var(--card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content {
    font-size: 1.5rem;
    font-weight: 600;
    word-break: break-all;
    margin-top: auto;
    line-height: 1.4;
}

.circle-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.status-active {
    background-color: var(--success);
}

.status-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 1rem;
}

.update-time {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.5rem;
    display: block;
}

.footer {
    background-color: var(--card);
    border-top: 1px solid var(--border);
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: auto;
}

.info-text {
    text-align: center;
    color: #6c757d;
    margin: 2rem 0;
    font-size: 0.9rem;
    animation: fadeIn 1s ease-in-out;
}

.refresh-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin: 1rem auto;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.refresh-btn:active {
    transform: translateY(0);
}

/* Estilo atualizado para as seções informativas */
.ip-explanation {
    background-color: var(--card);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 30px auto 0;
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    max-width: 1200px; /* Mesma largura máxima do container */
    width: 100%;
}

.ip-explanation:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.ip-explanation h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1.2rem;
    color: var(--text);
    position: relative;
    padding-bottom: 0.8rem;
}

.ip-explanation h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.ip-explanation p, .ip-explanation li {
    color: var(--text);
    line-height: 1.7;
    font-size: 0.90rem;
    margin-bottom: 1rem;
}

.ip-explanation ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.ip-explanation h3 {
    font-size: 1.25rem;
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 500;
}

/* Estilo atualizado para FAQ */
.faq-section {
    max-width: 1200px; /* Mesma largura máxima do container */
    width: 100%;
    margin: 2rem auto;
    padding: 1.5rem;
}

.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
    position: relative;
    padding-bottom: 0.8rem;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background-color: var(--card);
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary);
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: rgba(58, 134, 255, 0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: var(--primary);
}

.faq-question.active {
    background-color: rgba(58, 134, 255, 0.08);
}

.faq-question.active::after {
    content: '−';
    color: var(--secondary);
}

.faq-answer {
    background-color: var(--card);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text);
    line-height: 1.6;
    font-size: 1rem;
}

.faq-answer.show {
    max-height: 500px;
    padding: 1.2rem 1.5rem;
    border-top: 1px solid var(--border);
}

.card-content-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.card-content {
    flex-grow: 1;
    font-size: 1.5rem;
    font-weight: 600;
    word-break: break-all;
    line-height: 1.4;
}

.copy-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn svg {
    transition: all 0.3s ease;
}

.copy-btn.copied svg {
    stroke: var(--success);
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 94%;
    transform: translateX(-50%);
    background-color: var(--success);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

.toast svg {
    width: 18px;
    height: 18px;
}

@media (prefers-color-scheme: dark) {
    .faq-question:hover {
        background-color: rgba(58, 134, 255, 0.15);
    }

    .faq-question.active {
        background-color: rgba(58, 134, 255, 0.2);
    }
}

@media (max-width: 768px) {
    .ip-explanation, .faq-section {
        padding: 1rem;
        margin: 1.5rem auto;
    }

    .ip-explanation h2, .faq-section h2 {
        font-size: 1.3rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
}

.breadcrumb {
    max-width: 1200px;
    width: 100%;
    margin: 1.25rem auto 0;
    padding: 0 2rem;
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 500;
}

.comparison-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) td {
    background-color: rgba(58, 134, 255, 0.04);
}

/* Seção "Leia também" nos artigos */
.related-articles {
    margin-top: 2rem;
}

.related-articles h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-card {
    background-color: var(--card);
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--text);
    border-left: 4px solid var(--primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.related-card-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.related-card-desc {
    font-size: 0.82rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Página de listagem do blog */
.blog-listing {
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 2rem;
    flex: 1;
}

.blog-listing h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
    position: relative;
    padding-bottom: 0.8rem;
}

.blog-listing h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.blog-article-card {
    background-color: var(--card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: block;
    color: var(--text);
}

.blog-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.blog-article-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.blog-article-card p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 176, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(56, 176, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 176, 0, 0);
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121212;
        --card: #1e1e1e;
        --text: #f8f9fa;
        --border: #343a40;
    }
}

@media (max-width: 480px) {
    .card-content {
        font-size: 1.2rem;
    }

    .copy-btn {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .navbar h1 {
        position: static;
        transform: none;
        font-size: 1.2rem;
        flex: 1;
        text-align: center;
    }

    .nav-blog-link {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .ip-grid, .info-grid {
        grid-template-columns: 1fr;
    }
}