/* Estilos gerais para o painel administrativo */
.admin-body {
    background-color: #f8fafc;
    min-height: 100vh;
}

.admin-container {
    display: flex;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos para a barra lateral */
.admin-sidebar {
    width: 250px;
    background-color: #1e3a8a; /* Azul escuro */
    color: white;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.admin-sidebar.collapsed {
    width: 60px;
}

.admin-sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-header h2 {
    margin: 0;
    font-size: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar-content {
    padding: 10px 0;
}

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

.admin-menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.admin-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #3b82f6; /* Azul médio */
}

.admin-menu-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: #3b82f6; /* Azul médio */
}

.admin-menu-item i {
    min-width: 20px;
    margin-right: 10px;
    font-size: 1rem;
}

.admin-menu-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar.collapsed .admin-menu-item span {
    display: none;
}

.admin-menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

/* Estilos para o conteúdo principal */
.admin-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.admin-content.expanded {
    margin-left: 60px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3B82F6;
}

.admin-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-title i {
    color: #3B82F6;
    font-size: 1.5rem;
}

.admin-title h1 {
    margin: 0;
    color: #1E3A8A;
}

.back-button {
    padding: 8px 15px;
    background-color: #3B82F6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #1E40AF;
}

.sources-form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.sources-form h2 {
    margin-top: 0;
    color: #3B82F6;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #4B5563;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.save-btn {
    background-color: #10B981;
    color: white;
}

.save-btn:hover {
    background-color: #059669;
}

.reset-btn {
    background-color: #6B7280;
    color: white;
}

.reset-btn:hover {
    background-color: #4B5563;
}

.sources-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sources-table th {
    background-color: #3B82F6;
    color: white;
    text-align: left;
    padding: 12px 15px;
}

.sources-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #E5E7EB;
}

.sources-table tr:last-child td {
    border-bottom: none;
}

.sources-table tr:nth-child(even) {
    background-color: #F9FAFB;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-btn {
    background-color: #F59E0B;
}

.edit-btn:hover {
    background-color: #D97706;
}

.reset-records-btn {
    background-color: #3B82F6;
}

.reset-records-btn:hover {
    background-color: #2563EB;
}

.delete-btn {
    background-color: #EF4444;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    display: inline;
    margin: 0;
    font-weight: normal;
}

.status-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.source-name {
    vertical-align: middle;
}

.count-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.count-zero {
    background-color: #e5e5e5;
    color: #888;
}

.count-normal {
    background-color: #3B82F6;
    color: white;
}

.count-high {
    background-color: #10B981;
    color: white;
}

.new-source-btn {
    padding: 10px 16px;
    background-color: #3B82F6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.new-source-btn:hover {
    background-color: #2563EB;
    transform: translateY(-2px);
}

.new-source-btn i {
    font-size: 16px;
}

/* Estilos para as páginas */
.admin-page {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.admin-page.hidden {
    display: none;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h2 {
    margin: 0;
    color: #1e3a8a; /* Azul escuro */
    font-size: 1.5rem;
}

.add-new-btn {
    background-color: #3b82f6; /* Azul médio */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.add-new-btn:hover {
    background-color: #2563eb; /* Azul médio escuro */
}

/* Estilos para o Dashboard */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    align-items: center;
    border-left: 4px solid #3b82f6; /* Azul médio */
}

.card-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6; /* Azul médio */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 15px;
}

.card-info h3 {
    margin: 0 0 5px 0;
    font-size: 0.875rem;
    color: #64748b;
}

.card-value {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a8a; /* Azul escuro */
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.dashboard-widget {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.dashboard-widget h3 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #1e3a8a; /* Azul escuro */
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

/* Estilos para a tabela de fontes */
.sources-table-container {
    overflow-x: auto;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.active {
    background-color: #ecfdf5;
    color: #047857;
}

.status-badge.inactive {
    background-color: #fef2f2;
    color: #b91c1c;
}

/* Responsividade */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 60px;
    }
    
    .admin-sidebar .admin-menu-item span,
    .admin-sidebar .admin-sidebar-header h2 {
        display: none;
    }
    
    .admin-content {
        margin-left: 60px;
    }
    
    .admin-sidebar.expanded {
        width: 250px;
    }
    
    .admin-sidebar.expanded .admin-menu-item span,
    .admin-sidebar.expanded .admin-sidebar-header h2 {
        display: block;
    }
    
    .dashboard-cards,
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .calendar-container {
        grid-template-columns: 1fr;
    }
    
    .events-list {
        border-left: none;
        padding-left: 0;
        margin-top: 20px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .back-button {
        align-self: flex-end;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .sources-table th, 
    .sources-table td {
        padding: 8px;
    }
} 