/* Estilos para a página de Integrações API */
.integracoes-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 1rem;
}

.page-header h2 {
    color: var(--blue-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-add {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 114, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-add:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 114, 255, 0.4);
}

.integracoes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.integracao-card {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.integracao-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--blue-light);
}

.integracao-header {
    padding: 1.5rem;
    background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue-light) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 15px;
}

.integracao-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.integracao-logo {
    max-width: 120px;
    max-height: 40px;
    object-fit: contain;
    background-color: white;
    padding: 5px;
    border-radius: 5px;
}

.integracao-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.integracao-body {
    padding: 1.5rem;
}

.integracao-body p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.integracao-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.btn-edit, .btn-delete, .btn-save, .btn-cancel {
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-edit {
    background-color: var(--blue-light);
    color: white;
}

.btn-edit:hover {
    background-color: var(--blue-dark);
}

.btn-delete {
    background-color: #ff4d4f;
    color: white;
}

.btn-delete:hover {
    background-color: #ff1f1f;
}

.btn-save {
    background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue-light) 100%);
    color: white;
    padding: 10px 20px;
    font-weight: 600;
}

.btn-save:hover {
    background: linear-gradient(90deg, var(--blue-dark) 0%, var(--orange-light) 100%);
    transform: translateY(-2px);
}

.btn-cancel {
    background-color: #f5f5f5;
    color: #666;
    padding: 10px 20px;
}

.btn-cancel:hover {
    background-color: #e6e6e6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: slideDown 0.3s forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--blue-dark);
    font-weight: 600;
}

.modal-close {
    color: #aaa;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--blue-dark);
}

.modal-body {
    padding: 1.5rem;
}

.integracao-opcoes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.integracao-opcao {
    background: #f9f9f9;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.integracao-opcao:hover {
    border-color: var(--blue-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.integracao-opcao img {
    max-width: 150px;
    margin-bottom: 15px;
}

.integracao-opcao h4 {
    margin: 0.5rem 0;
    color: var(--blue-dark);
}

.integracao-opcao p {
    color: #666;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Estado vazio */
.empty-state {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    grid-column: 1 / -1;
    border: 2px dashed #ddd;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 114, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--blue-dark);
    margin: 0 auto 1.5rem;
}

.empty-state h3 {
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #777;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .integracoes-list {
        grid-template-columns: 1fr;
    }
    
    .integracao-opcoes {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue-light: #00c6ff;
    --blue-dark: #0072ff;
    --orange-light: #ff9500;
    --orange-dark: #ff5500;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --dark-gray: #333333;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--light-gray) 0%, #c3cfe2 100%);
    color: var(--dark-gray);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Efeito de Partículas */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Estilos do Header */
header {
    background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue-light) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 114, 255, 0.3);
    position: relative;
    z-index: 10;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--orange-light);
    font-weight: 900;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 5px;
}

nav ul li a:hover {
    color: var(--orange-light);
    transform: translateY(-2px);
}

/* Conteúdo Principal */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Estilos do Footer */
footer {
    background: var(--blue-dark);
    color: var(--white);
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

/* Estilos de Login */
.login-container,
.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem 0;
}

.login-box,
.register-box {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.register-box {
    max-width: 800px;
}

.login-box::before,
.register-box::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(45deg, rgba(0, 114, 255, 0.03) 0%, rgba(255, 149, 0, 0.03) 100%);
    z-index: -1;
    transform: rotate(-3deg);
}

.login-header,
.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 20px rgba(0, 114, 255, 0.2);
}

.icon-circle i {
    font-size: 1.8rem;
    color: var(--white);
}

.login-header h2,
.register-header h2 {
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-header p,
.register-header p {
    color: #777;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    transition: color 0.3s ease;
}

.input-icon input,
.input-icon select {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.input-icon input:focus,
.input-icon select:focus {
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
    outline: none;
}

.input-icon input:focus + i,
.input-icon select:focus + i {
    color: var(--blue-dark);
}

.btn-login,
.btn-register {
    background: linear-gradient(90deg, var(--blue-dark) 0%, var(--blue-light) 100%);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover,
.btn-register:hover {
    background: linear-gradient(90deg, var(--blue-dark) 0%, var(--orange-light) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 114, 255, 0.3);
}

.error-message {
    background-color: #fff1f0;
    color: #f5222d;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #f5222d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message {
    background-color: #f6ffed;
    color: #52c41a;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #52c41a;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Estilos do Dashboard */
.dashboard-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 1rem;
}

.dashboard-header h2 {
    color: var(--blue-dark);
    font-weight: 600;
}

.user-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.user-badge.master {
    background-color: var(--orange-light);
    color: var(--white);
}

.user-badge.vendedor {
    background-color: var(--blue-light);
    color: var(--white);
}

.user-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--blue-light);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.info-content h3 {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}

.info-content p {
    font-weight: 600;
    color: var(--dark-gray);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.section-header i {
    color: var(--blue-dark);
    font-size: 1.5rem;
}

.section-header h3 {
    color: var(--blue-dark);
    font-weight: 600;
}

.admin-section,
.vendor-section {
    margin-top: 2rem;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #eee;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background-color: #f1f1f1;
    font-weight: 600;
    color: #555;
}

table tr:hover {
    background-color: #f9f9f9;
}

.badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.master {
    background-color: var(--orange-light);
    color: var(--white);
}

.badge.vendedor {
    background-color: var(--blue-light);
    color: var(--white);
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.stat-content h4 {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
}

/* Animações e Efeitos */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(20px) translateX(10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Definição das partículas */
.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: rgba(0, 198, 255, 0.3);
    pointer-events: none;
    animation: float 15s infinite ease-in-out;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1rem;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.75rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .user-info,
    .stats-cards {
        grid-template-columns: 1fr;
    }
}
/* Adicione este CSS no bloco <style> existente em dashboard.php */

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-header i {
    font-size: 24px;
    margin-right: 10px;
    color: #0072ff;
}

.section-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.ml-auto {
    margin-left: auto;
}

.btn-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 5px;
    background: linear-gradient(135deg, #33ccff, #3366ff);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-refresh:hover {
    background: linear-gradient(135deg, #3366ff, #33ccff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 102, 255, 0.3);
}

.btn-refresh i {
    margin-right: 8px;
    color: #fff;
}

.btn-refresh:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}