/* 
   Personal Control - Dashboard CSS
   Sistema de gestão para Personal Trainers
   Estilo moderno e futurístico em tons vermelhos
*/

:root {
    --primary-color: #e60023;
    --primary-dark: #b8001b;
    --primary-light: #ff3351;
    --secondary-color: #333333;
    --text-dark: #212121;
    --text-medium: #424242;
    --text-light: #757575;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --success-color: #0a8043;
    --warning-color: #cc7000;
    --danger-color: #d50020;
    --info-color: #0288d1;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --primary-gradient: linear-gradient(135deg, #e60023 0%, #a60019 100%);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(230, 0, 35, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 50%, rgba(230, 0, 35, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 40% 80%, rgba(230, 0, 35, 0.1) 0%, transparent 15%);
    background-attachment: fixed;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

button {
    cursor: pointer;
    outline: none;
    border: none;
    transition: var(--transition);
}

input, select, textarea {
    font-family: 'Poppins', sans-serif;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    background-color: rgba(33, 33, 33, 0.5);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(230, 0, 35, 0.25);
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: var(--secondary-color);
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    z-index: 100;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    width: 40px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.sidebar-toggle {
    background: transparent;
    color: var(--text-dark);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background-color: rgba(230, 0, 35, 0.1);
    color: var(--primary-color);
}

.user-profile {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-role {
    font-size: 0.875rem;
    color: var(--text-light);
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
}

.sidebar-nav a:hover, .sidebar-nav li.active a {
    background-color: rgba(230, 0, 35, 0.1);
}

.sidebar-nav li.active a::before {
    transform: scaleY(1);
}

.sidebar-nav a i {
    font-size: 1.25rem;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-nav a span {
    flex: 1;
    white-space: nowrap;
}

.sidebar-nav a .badge {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.sidebar-footer a i {
    font-size: 1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    transition: var(--transition);
}

.main-content.expanded {
    margin-left: 80px;
}

/* Top Bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.search-container {
    position: relative;
    flex: 0 0 400px;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 50px;
    background-color: rgba(33, 33, 33, 0.6);
    border: 1px solid var(--border-color);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-icon, .message-icon {
    position: relative;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.notification-icon:hover, .message-icon:hover {
    color: var(--primary-light);
}

.notification-icon .badge, .message-icon .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
}

.quick-actions {
    display: flex;
    gap: 1rem;
}

.btn-action {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(230, 0, 35, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-action:hover, .btn-action:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 0, 35, 0.4);
    color: white;
}

.btn-action i {
    margin-right: 8px;
}

/* Content Wrapper */
.content-wrapper {
    padding: 2rem;
}

/* Welcome Banner */
.welcome-banner {
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/pattern.png');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.welcome-text {
    position: relative;
    z-index: 1;
}

.welcome-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.welcome-text p {
    font-size: 1rem;
    opacity: 0.9;
}

.welcome-text .highlight {
    font-weight: 700;
    color: #fff;
    text-decoration: underline;
}

.date-info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.current-date, .weather-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.current-date i, .weather-info i {
    font-size: 1rem;
}

/* Dashboard KPIs */
.dashboard-kpis {
    margin-bottom: 2rem;
}

.kpi-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.kpi-card::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.kpi-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    bottom: -75px;
    left: -75px;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(230, 0, 35, 0.3);
}

.kpi-info {
    flex: 1;
}

.kpi-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.kpi-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.kpi-trend.up {
    color: var(--success-color);
}

.kpi-trend.down {
    color: var(--danger-color);
}

.card-red {
    border-top: 3px solid var(--primary-light);
}

.card-red-light {
    border-top: 3px solid var(--primary-color);
}

.card-red-dark {
    border-top: 3px solid var(--primary-dark);
}

.card-red-darker {
    border-top: 3px solid #6d0f0f;
}

/* Dashboard Cards */
.dashboard-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.dashboard-card:hover {
    box-shadow: var(--box-shadow);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
}

.chart-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-filter {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    transition: var(--transition);
}

.btn-filter:hover, .btn-filter.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-view-all {
    font-size: 0.75rem;
    color: var(--primary-light);
}

.card-body {
    padding: 1.5rem;
}

/* Charts */
.charts-section {
    margin-bottom: 2rem;
}

canvas {
    width: 100% !important;
}

/* Agenda Timeline */
.agenda-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.agenda-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.agenda-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
}

.agenda-time span {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-line {
    height: 80px;
    width: 2px;
    background-color: var(--border-color);
    position: relative;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.agenda-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(33, 33, 33, 0.5);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.agenda-content:hover {
    background-color: rgba(33, 33, 33, 0.7);
}

.agenda-content.ongoing {
    border-left: 3px solid var(--success-color);
}

.agenda-content.upcoming {
    border-left: 3px solid var(--warning-color);
}

.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agenda-details {
    flex: 1;
}

.agenda-details h5 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.agenda-details p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.agenda-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}

.status-badge.ongoing {
    background-color: rgba(0, 200, 83, 0.2);
    color: var(--success-color);
}

.status-badge.upcoming {
    background-color: rgba(255, 214, 0, 0.2);
    color: var(--warning-color);
}

.agenda-actions {
    display: flex;
    gap: 0.5rem;
}

.agenda-actions .btn-action {
    height: 30px;
    width: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(33, 33, 33, 0.7);
    color: var(--text-dark);
}

.agenda-actions .btn-action:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Recent Clients */
.recent-clients-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.client-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: rgba(33, 33, 33, 0.5);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.client-item:hover {
    background-color: rgba(33, 33, 33, 0.7);
}

.client-info {
    flex: 1;
}

.client-info h5 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.client-info p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.client-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(33, 33, 33, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.progress-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) calc(var(--value) * 1%), transparent 0);
    mask: radial-gradient(white 55%, transparent 0);
    mask-mode: alpha;
    -webkit-mask: radial-gradient(white 55%, transparent 0);
    -webkit-mask-mode: alpha;
}

.client-progress p {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Estilos para a página de Configurações */
.configuracoes-content {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.configuracoes-content .nav-tabs {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0 15px;
}

.configuracoes-content .nav-tabs .nav-link {
    border: none;
    color: #495057;
    font-weight: 500;
    padding: 15px 20px;
    position: relative;
    transition: all 0.2s ease;
}

.configuracoes-content .nav-tabs .nav-link i {
    margin-right: 8px;
}

.configuracoes-content .nav-tabs .nav-link.active {
    border: none;
    color: #e60023;
    background-color: transparent;
}

.configuracoes-content .nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #e60023;
}

.configuracoes-content .tab-content {
    padding: 25px;
}

.config-section {
    margin-bottom: 30px;
}

.config-section h4 {
    color: #343a40;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.profile-picture-container {
    padding: 15px;
}

.profile-picture-container img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #e60023;
}

.profile-picture-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.sessoes-ativas {
    margin: 15px 0;
}

.sessao-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.sessao-item.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}

.tema-option {
    background-color: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    padding: 15px;
    text-align: center;
    transition: all 0.2s ease;
}

.tema-option:hover {
    background-color: #e9ecef;
}

.tema-option.active {
    background-color: #e9ecef;
    border: 2px solid #e60023;
}

.tema-preview {
    border-radius: 8px;
    height: 80px;
    margin-bottom: 10px;
    width: 100%;
}

.tema-claro {
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
    border: 1px solid #dee2e6;
}

.tema-escuro {
    background: linear-gradient(to bottom right, #343a40, #212529);
    border: 1px solid #495057;
}

.tema-sistema {
    background: linear-gradient(to right, #ffffff, #f8f9fa 45%, #343a40 55%, #212529);
    border: 1px solid #dee2e6;
}

.color-option {
    border-radius: 50%;
    cursor: pointer;
    height: 40px;
    width: 40px;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #212529;
}

.notif-setting-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
}

.notif-setting-item h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.notif-setting-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.notif-options {
    min-width: 200px;
}

.integracao-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.integracao-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.integracao-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.integracao-info h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.integracao-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .notif-setting-item, 
    .integracao-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notif-options, 
    .integracao-status {
        margin-top: 15px;
        width: 100%;
    }
    
    .configuracoes-content .nav-tabs .nav-link {
        padding: 10px;
    }
    
    .configuracoes-content .nav-tabs .nav-link i {
        margin-right: 0;
    }
    
    .configuracoes-content .nav-tabs .nav-link span {
        display: none;
    }
}

/* Melhorias de acessibilidade e contraste */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(230, 0, 35, 0.25);
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: #fff !important;
}

.badge.bg-info {
    background-color: var(--info-color) !important;
}

/* Melhorias para elementos interativos */
.btn, .form-control, .form-select, .card, .dropdown-menu {
    border-radius: var(--border-radius);
}

.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
}

/* Melhorias para tabelas */
.table {
    --bs-table-hover-bg: rgba(230, 0, 35, 0.05);
    --bs-table-hover-color: var(--text-dark);
}

.table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-medium);
    padding: 0.75rem 1rem;
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

/* Melhorias para modais */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.modal-header .btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(230, 0, 35, 0.25);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Melhorias para alertas e notificações */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

.toast {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

/* Melhorias para abas e navegação */
.nav-tabs .nav-link {
    color: var(--text-medium);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-color: var(--border-color) var(--border-color) transparent;
}

.nav-tabs .nav-link:hover:not(.active) {
    border-color: transparent transparent var(--border-color);
}

/* Estilos para os dropdowns */
.notification-dropdown,
.message-dropdown,
.user-menu-dropdown {
    position: absolute;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 320px;
    max-width: 90vw;
    z-index: 1050;
    overflow: hidden;
    animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.dropdown-header h6 {
    margin: 0;
    font-weight: 600;
    color: var(--text-medium);
}

.dropdown-header a {
    font-size: 0.875rem;
    color: var(--primary-color);
}

.dropdown-body {
    max-height: 350px;
    overflow-y: auto;
}

.dropdown-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.dropdown-footer a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
}

/* Notificações */
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.notification-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.notification-item.unread {
    background-color: rgba(230, 0, 35, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 50%;
    margin-right: 12px;
}

.notification-icon i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0 0 5px;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.notification-actions {
    margin-left: 10px;
}

.notification-actions .btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-medium);
}

/* Mensagens */
.message-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.message-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.message-item.unread {
    background-color: rgba(230, 0, 35, 0.05);
}

.message-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    flex: 1;
}

.message-content h6 {
    margin: 0 0 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.message-content p {
    margin: 0 0 5px;
    font-size: 0.8rem;
    color: var(--text-medium);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Menu do usuário */
.user-menu-dropdown {
    width: 250px;
}

.user-menu-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--primary-color);
    color: white;
}

.user-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.user-menu-info h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.user-menu-info p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.user-menu-body {
    padding: 10px 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-dark);
    transition: var(--transition);
    text-decoration: none;
}

.user-menu-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.user-menu-item i {
    width: 20px;
    margin-right: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.user-menu-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

/* Toasts personalizados */
.toast-container {
    z-index: 1060;
}

.toast {
    backdrop-filter: blur(5px);
    border: none;
    border-radius: var(--border-radius);
}

.toast.bg-success {
    background-color: var(--success-color) !important;
}

.toast.bg-danger {
    background-color: var(--danger-color) !important;
}

.toast.bg-warning {
    background-color: var(--warning-color) !important;
}

/* Melhorias para elementos de formulário */
.form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-control:focus::placeholder {
    opacity: 0.5;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-medium);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Animações */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Suporte para tema escuro */
[data-theme="dark"] {
    --bg-light: #2a2a2a;
    --text-dark: #e0e0e0;
    --text-medium: #c0c0c0;
    --text-light: #a0a0a0;
    --border-color: #3a3a3a;
}

[data-theme="dark"] .notification-dropdown,
[data-theme="dark"] .message-dropdown,
[data-theme="dark"] .user-menu-dropdown {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
}

[data-theme="dark"] .notification-item:hover,
[data-theme="dark"] .message-item:hover,
[data-theme="dark"] .user-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .notification-item.unread,
[data-theme="dark"] .message-item.unread {
    background-color: rgba(230, 0, 35, 0.15);
}

/* Estilos para banners e imagens */
.treino-banner, .avaliacao-banner, .financeiro-banner, .dashboard-banner, .mensagens-banner, .relatorios-banner {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.treino-image {
    height: 200px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.treino-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.progress-chart-image, 
.financeiro-chart-image, 
.dashboard-chart-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 10px;
}

.integracao-logo {
    width: 120px;
    height: 40px;
    object-fit: contain;
    margin-right: 15px;
    background-color: #f8f9fa;
    padding: 5px;
    border-radius: 5px;
}

/* Media queries para imagens responsivas */
@media (max-width: 768px) {
    .treino-image {
        height: 150px;
    }
    
    .progress-chart-image, 
    .financeiro-chart-image,
    .dashboard-chart-image {
        max-width: 90%;
        margin: 0 auto;
        display: block;
    }
}

/* Estilos para página de Mensagens */
.conversas-panel .card-header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.list-group-item-action {
    transition: var(--transition);
}

.list-group-item-action:hover {
    background-color: rgba(230, 0, 35, 0.05);
}

.list-group-item-action.active {
    background-color: rgba(230, 0, 35, 0.1);
    border-color: var(--border-color);
    color: var(--text-dark);
}

.chat-messages {
    background-color: var(--bg-light);
}

.chat-messages .bg-primary {
    background-color: var(--primary-color) !important;
}

/* Estilos para página de Relatórios */
.icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(230, 0, 35, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.icon-container i {
    color: var(--primary-color);
}

/* Media queries para responsividade */
@media (max-width: 768px) {
    .conversas-panel {
        margin-bottom: 20px;
    }
    
    .icon-container {
        width: 60px;
        height: 60px;
    }
    
    .icon-container i {
        font-size: 1.5rem !important;
    }
} 