* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb; /* Azul da logo */
    --secondary: #f57c00; /* Laranja da logo */
    --dark: #0f172a; /* Fundo escuro */
    --darker: #0b1120; /* Fundo mais escuro para sidebar */
    --light: #f9fafb; /* Texto claro */
    --gray: #6b7280; /* Cinza para textos secundários */
    --card-bg: #1e293b; /* Fundo dos cards */
    --sidebar-bg: #0b1120; /* Fundo da sidebar */
    --mobile-sidebar-width: 260px;
    --desktop-sidebar-width: 250px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--desktop-sidebar-width);
    background: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    padding: 20px 0;
    transition: transform 0.28s ease, width 0.28s ease;
    z-index: 1000;
    border-right: 1px solid #1e293b;
    left: 0;
    top: 0;
}

.sidebar.hidden {
    transform: translateX(-110%);
}

.logo {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 20px;
}

.logo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo-icon {
    font-size: 24px;
    color: var(--secondary);
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--light);
}

.search-box {
    padding: 0 15px 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #1e293b;
    background: var(--dark);
    color: var(--light);
    font-size: 14px;
}

.nav-links {
    list-style: none;
    margin-top: 6px;
}

.nav-links li {
    padding: 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.nav-links a:hover, .nav-links a.active {
    background: var(--card-bg);
    border-left: 4px solid var(--secondary);
}

.nav-links i {
    margin-right: 12px;
    font-size: 18px;
    color: var(--secondary);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--desktop-sidebar-width);
    padding: 20px;
    transition: margin-left 0.28s ease;
    width: 100%;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 20px;
    gap: 10px;
    align-items: center;
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.tool-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #1e293b;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(245, 124, 0, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    color: white;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

.card-description {
    color: #9ca3af;
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-button {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-button:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Slider */
.slider-container {
    margin-bottom: 40px;
    position: relative;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #1e293b);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.5s ease;
    padding: 20px;
    text-align: center;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-text {
    font-size: 18px;
    font-weight: 500;
    color: white;
    max-width: 80%;
    line-height: 1.5;
}

.slider-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4b5563;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.18s ease;
    border: 2px solid rgba(255,255,255,0.06);
}

.slider-dot.active {
    background: var(--secondary);
    transform: scale(1.1);
}

/* Contact Page */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid #1e293b;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #1e293b;
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* About Page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-section {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid #1e293b;
}

.about-section h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --desktop-sidebar-width: 70px;
    }

    .sidebar {
        width: var(--desktop-sidebar-width);
    }

    .logo span, .nav-links a span {
        display: none;
    }

    .logo-content {
        flex-direction: column;
        gap: 5px;
    }

    .logo-icon {
        font-size: 20px;
    }

    .logo-text {
        font-size: 12px;
    }

    .nav-links a {
        justify-content: center;
        padding: 15px;
    }

    .nav-links i {
        margin-right: 0;
        font-size: 20px;
    }

    .main-content {
        margin-left: var(--desktop-sidebar-width);
        padding: 16px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .mobile-toggle {
        display: inline-flex;
    }
}

/* Small phones - full overlay sidebar */
@media (max-width: 480px) {
    .sidebar {
        width: var(--mobile-sidebar-width);
        transform: translateX(-110%);
        position: fixed;
        box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
    }

    .logo span, .nav-links a span {
        display: inline;
    }

    /* make search full-width in header */
    .header {
        gap: 12px;
    }

    .page-title {
        font-size: 20px;
    }

    /* prevent body scroll when sidebar is open */
    body.no-scroll {
        height: 100vh;
        overflow: hidden;
    }
}

/* Accessibility focus */
a:focus, button:focus, input:focus {
    outline: 3px solid rgba(37,99,235,0.18);
    outline-offset: 2px;
}

/* Small helper for no-results */
.no-results {
    color: var(--gray);
    text-align: center;
    padding: 20px;
}