* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #000;
    transition: background-color 0.3s, color 0.3s;
}

/* Header */
.custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 150px;
    position: fixed;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
}

    .custom-header img {
        width: 250px;
        height: auto;
    }

.nav-center {
    display: flex;
    gap: 20px;
}

#btn-site, #btn-suport {
    text-decoration: none;
    font-size: 16px;
    padding: 6px 20px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

#btn-site {
    background-color: #007bff;
    color: #fff;
    border: 2px solid #007bff;
}

    #btn-site:hover {
        background-color: #0056b3;
        border-color: #0056b3;
    }

#btn-suport {
    background-color: #fff;
    color: #007bff;
    border: 2px solid #007bff;
}

    #btn-suport:hover {
        background-color: #007bff;
        color: #fff;
    }

/* Container de Cards */
.cardContainer {
    padding-top: 115px;
    max-width: 1350px;
    margin: 0 auto;
}

.search-container {
    margin: 0 auto;
    max-width: 430px;
}

.form-control {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    }

.custom-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 25px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

    .custom-card:hover {
        transform: translateY(-5px);
    }

    .custom-card img {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }

    .custom-card h5 {
        font-size: 22px;
        font-weight: bold;
    }

    .custom-card p {
        font-size: 16px;
        color: #555;
        margin-bottom: 15px;
    }

    .custom-card .btn {
        min-width: 140px;
        font-size: 16px;
        font-weight: bold;
        margin-top: 10px;
        white-space: nowrap;
        border-radius: 10px;
        padding: 10px 20px;
    }

.btn-area {
    display: flex;
    column-gap: 10px;
    justify-content: center;
    width: 100%;
}

    .btn-area .btn {
        font-size: 15px;
        padding: 10px 20px;
        white-space: nowrap;
        border-radius: 10px;
    }

.btn-primary {
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    background-color: #007bff;
    transition: background-color 0.3s;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

    .btn-primary:disabled {
        background-color: #6c757d;
        cursor: not-allowed;
    }

.form-select {
    width: 320px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
}


footer {
    border-top: 1px solid #ccc;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: center;
    padding: 5px;
}

/* Botão de troca de tema */
.theme-toggle-btn {
    border: none;
    background: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

    .theme-toggle-btn:hover {
        color: #0d6efd;
    }

/* ===== DARK MODE ===== */
body.dark-mode {
    background-color: #121212;
    color: #f1f1f1;
}

    body.dark-mode .custom-header {
        background-color: #1e1e1e;
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    }

    body.dark-mode .custom-card {
        background-color: #1e1e1e;
        color: #f1f1f1;
    }

        body.dark-mode .custom-card p {
            color: #ccc;
        }


    body.dark-mode .form-control,
    body.dark-mode .form-select {
        background-color: #2c2c2c;
        color: #f1f1f1;
        border: 1px solid #444;
    }

    body.dark-mode .btn-primary {
        background-color: #0d6efd;
    }

        body.dark-mode .btn-primary:hover {
            background-color: #4784ff;
        }

    body.dark-mode #btn-suport {
        background-color: #1e1e1e;
        color: white;
        border-color: #0d6efd;
        transition: 0.3s;
    }

        body.dark-mode #btn-suport:hover {
            background-color: #0d6efd;
        }

    body.dark-mode #btn-site {
        background-color: #0d6efd;
        transition: 0.3s;
    }

        body.dark-mode #btn-site:hover {
            background-color: transparent;
        }

    body.dark-mode #searchInput::placeholder {
        color: white;
    }

    body.dark-mode .footer-content {
        color: #ccc;
    }

/* Ajustes para telas menores (abaixo de 1024px) */
@media (max-width: 1024px) {
    .btn-area {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        align-items: center;
    }

        .btn-area .btn {
            width: 100%;
            max-width: 180px;
            font-size: 14px;
            padding: 8px 14px;
        }
}


@media (max-width: 768px) {
    .custom-header {
        padding: 10px 15px;
    }

        .custom-header img {
            width: 120px;
        }

    .nav-center {
        gap: 5px;
    }

    #btn-site, #btn-suport {
        font-size: 12px;
        padding: 5px 10px;
    }

    .cardContainer {
        padding-top: 80px;
    }

    .search-container {
        flex-direction: column;
        gap: 8px;
        max-width: 70%;
    }

    .form-control {
        width: 100%;
        font-size: 14px;
        padding: 8px 12px;
    }

    .custom-card {
        padding: 15px;
    }

        .custom-card img {
            width: 40px;
            height: 40px;
        }

        .custom-card h5 {
            font-size: 16px;
        }

        .custom-card p {
            font-size: 12px;
        }

        .custom-card .btn {
            min-width: 120px;
            font-size: 12px;
            padding: 6px 12px;
        }

    .btn-area {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }

        .btn-area .btn {
            width: 100%;
            max-width: 160px;
            font-size: 12px;
            padding: 6px 12px;
            white-space: normal;
        }

    .form-select {
        font-size: 12px;
    }

    .btn-primary {
        font-size: 12px;
        padding: 6px 12px;
    }
}
