:root {
    --primary: #0e3b9c;
    --secondary: #3b82f6;
    --text: #333;
    --text-light: #666;
    --border: #e2e8f0;
    --bg: #f8fafc;
}



/*Estilos da Main Page da Dashboard*/
.tcd-container {
    display: flex;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
}

.tcd-sidebar {
    width: 280px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.tcd-logo {
    padding: 20px;
    background: var(--primary);
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
}

.tcd-nav {
    padding: 15px 0;
}

.tcd-nav-header {
    padding: 10px 20px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: bold;
}

.tcd-nav-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s;
}

.tcd-nav-item:hover, .tcd-nav-item.active {
    background: var(--primary);
    color: white;
}

.tcd-main {
    flex: 1;
    padding: 20px;
}

.tcd-header {
    margin-bottom: 30px;
}

.tcd-header h1 {
    margin: 0;
    color: var(--primary);
}

.tickera-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    margin-bottom: 5px;
}

.stat-change {
    font-size: 12px;
    color: var(--text-light);
}

.tcd-table-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.tcd-table {
    width: 100%;
    border-collapse: collapse;
}

.tcd-table th {
    background: var(--bg);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

.tcd-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.tcd-table tr:hover td {
    background: var(--bg);
}

/* Estilos da Gestão de Eventos */
.tcd-events-manager {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tcd-events-header {
    margin-bottom: 20px;
}

.tcd-events-header h2 {
    margin: 0 0 5px 0;
    color: #0e3b9c;
}

.tcd-events-header p {
    margin: 0 0 15px 0;
    color: #666;
}

.tcd-events-table {
    width: 100%;
    border-collapse: collapse;
}

.tcd-events-table th {
    background: #f8fafc;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #334155;
    border-bottom: 2px solid #e2e8f0;
}

.tcd-events-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.tcd-no-events td {
    padding: 40px;
    text-align: center;
}

.tcd-empty-state p {
    margin: 0 0 10px 0;
    color: #666;
}

.tcd-empty-state p:first-child {
    font-weight: 600;
    color: #333;
}

.tcd-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tcd-status-badge.publish {
    background: #d1fae5;
    color: #065f46;
}

.tcd-status-badge.draft {
    background: #fef3c7;
    color: #92400e;
}

.tcd-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    margin: 0 5px;
}

.tcd-action-btn:hover {
    color: #0e3b9c;
}

.tcd-action-btn.delete:hover {
    color: #dc2626;
}

/* Modal */
.tcd-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.tcd-modal-content {
    background: white;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    border-radius: 8px;
    position: relative;
}

.tcd-event-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.tcd-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.tcd-button {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.tcd-button.primary {
    background: #0e3b9c;
    color: white;
}

.tcd-button.primary:hover {
    background: #0c3485;
}

@media (max-width: 768px) {
    .tcd-container {
        flex-direction: column;
    }
    
    .tcd-sidebar {
        width: 100%;
    }
    
    .tickera-stats-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .tickera-stats-container {
        grid-template-columns: 1fr;
    }
}