:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #1abc9c;
    --dark-color: #34495e;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --text-color: #333;
    --text-light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 2rem;
}

.navbar-brand {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    margin-right: auto;
}

.navbar-menu {
    display: flex;
    list-style-type: none;
    margin-left: auto;
    padding: 0;
}

.navbar-menu li {
    margin-left: 1.5rem;
}

.navbar-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-menu a i {
    margin-right: 5px;
}

.navbar-menu a:hover {
    color: var(--accent-color);
}

/* Login e Registro */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 76px);
}

.auth-card {
    background-color: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-card h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.auth-logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
}

.auth-description {
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

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

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--light-color);
}

.btn-block {
    width: 100%;
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: white;
}

.auth-footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alertas */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    color: white;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.2);
    border: 1px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid var(--danger-color);
}

/* Dashboard */
.dashboard {
    padding: 2rem 0;
}

.dashboard-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dashboard-title {
    color: var(--dark-color);
    font-size: 1.8rem;
}

/* Tabelas */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: var(--light-color);
    font-weight: 600;
}

.table tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-title {
        margin-bottom: 1rem;
    }
}

/* Dashboard Container */
.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 76px);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow: visible !important;
}

.sidebar {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 2rem 1rem;
}

.main-content {
    padding: 2rem;
    background-color: var(--light-color);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative !important;
    z-index: 50 !important;
}

/* Sidebar */
.sidebar-user {
    text-align: center;
    margin-bottom: 2rem;
}

.sidebar-user img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: block;
    object-fit: cover;
}

.sidebar-user h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.sidebar-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-menu a.active {
    background-color: var(--primary-color);
}

.sidebar-menu i {
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
}

/* Sidebar Divider */
.sidebar-divider {
    padding: 10px 0;
    margin: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Facebook Integration */
.btn-facebook {
    background-color: #4267B2;
    color: white;
}

.btn-facebook:hover {
    background-color: #365899;
}

.bm-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

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

.bm-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.bm-body {
    padding: 1rem 1.5rem;
}

.ad-account-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ad-account-item:last-child {
    border-bottom: none;
}

.ad-account-info {
    flex: 1;
}

.ad-account-name {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.ad-account-id {
    color: #666;
    font-size: 0.9rem;
}

.ad-account-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(243, 156, 18, 0.2);
    color: var(--warning-color);
}

.badge-danger {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger-color);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
}

/* Regras globais para evitar overflow horizontal */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Garantir que a tabela tenha barra de rolagem própria e não afete o layout global */
.table-responsive {
    overflow-x: auto;
    max-width: 100%;
    display: block;
}

/* Garantir que os cards se comportem bem em telas menores */
.card {
    max-width: 100%;
    box-sizing: border-box;
}

/* Garantir que todos os elementos tenham box-sizing adequado */
* {
    box-sizing: border-box;
}

/* Garantir que imagens e outros elementos de mídia sejam responsivos */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Garantir que não há elementos posicionados absolutamente que estejam causando problemas */
.main-content::before,
.main-content::after {
    display: none !important;
}

/* Força a visibilidade dos elementos principais */
.profile-grid, 
.card,
.dashboard-header,
.dashboard-content-wrapper {
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: auto !important;
} 