/* Global variables and styles */
:root {
    --e-global-color-primary: #6EC1E4;
    --e-global-color-secondary: #54595F;
    --e-global-color-text: #7A7A7A;
    --e-global-color-accent: #61CE70;
    --e-global-color-1b54620: #AA68FA;
    --e-global-color-18f1023: #55F2D8;
    --e-global-color-7d661af: #2871BA;
    --e-global-color-5242966: #3F3B44;
    --e-global-color-8662702: #EEEEEE;
    --e-global-color-e34db72: #12487E;
    --e-global-typography-primary-font-family: "Roboto";
    --e-global-typography-primary-font-weight: 600;
    --e-global-typography-secondary-font-family: "Roboto Slab";
    --e-global-typography-secondary-font-weight: 400;
    --e-global-typography-text-font-family: "Roboto";
    --e-global-typography-text-font-weight: 400;
    --e-global-typography-accent-font-family: "Roboto";
    --e-global-typography-accent-font-weight: 500;
}

.elementor-kit-20 e-page-transition {
    background-color: #FFBC7D;
}

.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1140px;
}

.e-con {
    --container-max-width: 1140px;
}

.elementor-widget:not(:last-child) {
    margin-block-end: 20px;
}

.elementor-element {
    --widgets-spacing: 20px 20px;
    --widgets-spacing-row: 20px;
    --widgets-spacing-column: 20px;
}

h1.entry-title {
    display: var(--page-title-display);
}

.site-header .site-branding {
    flex-direction: column;
    align-items: stretch;
}

/* Header and Navigation Styles */
.site-header {
    padding-inline-end: 0px;
    padding-inline-start: 0px;
    background-color: #f9f9f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    max-width: 1140px;
    margin: 0 auto;
}

.navbar-brand {
    font-size: 32px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    margin-right: 20px;
    font-family: var(--e-global-typography-primary-font-family);
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation .navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation .nav-item {
    position: relative;
    margin: 0 2px;
}

.main-navigation .nav-link {
    color: var(--e-global-color-secondary);
    font-weight: 500;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
    letter-spacing: 0.5px;
}

.main-navigation .nav-link:hover {
    color: var(--e-global-color-1b54620);
}

.main-navigation .nav-item.highlight {
    background-color: var(--e-global-color-1b54620);
}

.main-navigation .nav-item.highlight .nav-link {
    color: #fff;
}

.main-navigation .nav-item.highlight:hover {
    background-color: #9550e9;
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.navbar-toggler-icon {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--e-global-color-secondary);
    margin: 6px 0;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .navbar-logo {
        height: 40px;
        max-width: 150px;
    }
    
    .navbar-toggler {
        display: block;
        align-self: flex-end;
        margin-top: -40px;
    }
    
    .navbar-collapse {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .navbar-collapse.show {
        max-height: 500px;
    }
    
    .main-navigation .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .main-navigation .nav-item {
        width: 100%;
        margin: 2px 0;
    }
    
    .main-navigation .nav-link {
        padding: 12px 15px;
    }
}

.site-footer .site-branding {
    flex-direction: column;
    align-items: stretch;
}

/* Responsive styles */
@media(max-width: 1024px) {
    .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 1024px;
    }

    .e-con {
        --container-max-width: 1024px;
    }
}

@media(max-width: 767px) {
    .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 767px;
    }

    .e-con {
        --container-max-width: 767px;
    }
}

/* Dashboard specific styles */
body {
    font-family: var(--e-global-typography-text-font-family), sans-serif;
    font-weight: var(--e-global-typography-text-font-weight);
    margin: 0;
    padding: 0;
    color: var(--e-global-color-text);
}

.container {
    width: 100%;
    max-width: var(--container-max-width, 1140px);
    margin: 0 auto;
    padding: 20px;
}

/* Full-screen dashboard container */
.dashboard-container {
    width: 100%;
    height: calc(100vh - 60px); /* Subtract header height */
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 16px;
    color: var(--e-global-color-secondary);
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

#retryButton {
    background-color: var(--e-global-color-7d661af);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

#retryButton:hover {
    background-color: var(--e-global-color-e34db72);
}

#reportContainer {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background-color: #ffffff; /* Fundo branco para o container */
    position: absolute;
    top: 0;
    left: 0;
}

#reportContainer iframe {
    background-color: transparent !important;
    border: none;
    width: 100%;
    height: 100%;
}

/* Estilos para o container de countdown */
.service-inactive {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    width: 100%;
}

.countdown-box {
    background-color: #f8f9fa;
    border: 1px solid var(--e-global-color-8662702);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.countdown-box h3 {
    color: var(--e-global-color-primary);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    font-family: var(--e-global-typography-primary-font-family);
    font-weight: var(--e-global-typography-primary-font-weight);
}

.countdown-box p {
    color: var(--e-global-color-text);
    margin-bottom: 20px;
    font-size: 16px;
}

.countdown {
    margin: 25px 0;
}

.countdown p {
    font-size: 18px;
    font-weight: bold;
}

#countdownTimer {
    font-size: 24px;
    font-weight: bold;
}

/* Powered by AK Intel - Footer */
.powered-by-footer {
    font-size: 13px;
}

.powered-by-footer a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.powered-by-footer a:hover {
    color: #667eea;
}

.powered-by-footer strong {
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background-color: var(--e-global-color-8662702);
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar .progress {
    height: 100%;
    background-color: var(--e-global-color-18f1023);
    width: 100%;
    animation: countdown 60s linear forwards;
}

@keyframes countdown {
    from { width: 100%; }
    to { width: 0%; }
}

.retry-button {
    background-color: var(--e-global-color-accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    font-family: var(--e-global-typography-accent-font-family);
    font-weight: var(--e-global-typography-accent-font-weight);
}

.retry-button:hover {
    background-color: var(--e-global-color-7d661af);
}
