/* Dashboard Specific Styles */

/* Layout ajustado para dashboard */
body.yuno-dashboard {
    background-color: var(--background-color);
}

body.yuno-dashboard .yuno-main {
    margin-left: 280px;
    padding: 2rem;
    min-height: calc(100vh - 70px);
}

/* Animações de entrada */
.yuno-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Métricas aprimoradas */
.yuno-metrics-container .yuno-card {
    position: relative;
    overflow: hidden;
}

.yuno-metrics-container .yuno-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.yuno-metric {
    position: relative;
    z-index: 1;
}

.yuno-metric-value {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards com hover effects aprimorados */
.yuno-card {
    position: relative;
    overflow: hidden;
}

.yuno-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.yuno-card:hover::after {
    left: 100%;
}

/* Gráficos responsivos */
.yuno-chart-container {
    position: relative;
    background: var(--background-secondary);
    border-radius: var(--radius);
    padding: 1rem;
}

.yuno-chart-container canvas {
    max-height: 400px;
}

/* Atividades com timeline */
.yuno-activities-list {
    position: relative;
}

.yuno-activities-list::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.yuno-activity-item {
    position: relative;
    margin-left: 0;
}

.yuno-activity-icon {
    position: relative;
    z-index: 2;
    border: 3px solid var(--background-secondary);
}

/* Ações rápidas com efeitos */
.yuno-quick-action {
    position: relative;
    overflow: hidden;
}

.yuno-quick-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.yuno-quick-action:hover::before {
    width: 200px;
    height: 200px;
}

.yuno-quick-action i,
.yuno-quick-action span {
    position: relative;
    z-index: 1;
}

/* Sidebar aprimorada */
.yuno-sidebar {
    background: linear-gradient(180deg, var(--background-secondary) 0%, #f1f5f9 100%);
    backdrop-filter: blur(10px);
}

.yuno-nav-item {
    position: relative;
    margin: 0.25rem 1rem;
    border-radius: var(--radius);
}

.yuno-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--primary-color);
    border-radius: var(--radius);
    transition: width 0.3s ease;
}

.yuno-nav-item:hover::before,
.yuno-nav-item.active::before {
    width: 4px;
}

/* Estados de loading */
.yuno-loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Notificações */
.yuno-notification {
    position: fixed;
    top: 90px;
    right: 2rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    max-width: 400px;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.yuno-notification.show {
    transform: translateX(0);
}

.yuno-notification.success {
    border-left: 4px solid var(--success-color);
}

.yuno-notification.error {
    border-left: 4px solid var(--error-color);
}

.yuno-notification.warning {
    border-left: 4px solid var(--warning-color);
}

/* Modais */
.yuno-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.yuno-modal.show {
    opacity: 1;
    visibility: visible;
}

.yuno-modal-content {
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.yuno-modal.show .yuno-modal-content {
    transform: scale(1);
}

.yuno-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.yuno-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.yuno-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.yuno-modal-close:hover {
    background: var(--background-color);
    color: var(--text-primary);
}

.yuno-modal-body {
    padding: 1.5rem;
}

.yuno-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Formulários aprimorados */
.yuno-form-floating {
    position: relative;
}

.yuno-form-floating .yuno-input {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.yuno-form-floating .yuno-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    pointer-events: none;
    background: var(--background-secondary);
    padding: 0 0.25rem;
}

.yuno-form-floating .yuno-input:focus + .yuno-label,
.yuno-form-floating .yuno-input:not(:placeholder-shown) + .yuno-label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.75rem;
    color: var(--primary-color);
}

/* Tabelas responsivas */
.yuno-table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.yuno-table {
    min-width: 600px;
}

.yuno-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Filtros e pesquisa */
.yuno-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.yuno-search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.yuno-search-box .yuno-input {
    padding-left: 2.5rem;
}

.yuno-search-box::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 1;
}

/* Responsividade aprimorada */
@media (max-width: 1024px) {
    body.yuno-dashboard .yuno-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .yuno-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .yuno-sidebar.open {
        transform: translateX(0);
    }
    
    .yuno-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .yuno-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .yuno-grid-2,
    .yuno-grid-3,
    .yuno-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .yuno-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .yuno-search-box {
        min-width: auto;
    }
    
    .yuno-modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .yuno-notification {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #0f172a;
        --background-secondary: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #64748b;
        --border-color: #334155;
    }
    
    .yuno-sidebar {
        background: linear-gradient(180deg, var(--background-secondary) 0%, #0f172a 100%);
    }
    
    .yuno-loading-skeleton {
        background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
        background-size: 200% 100%;
    }
}

/* Print styles */
@media print {
    .yuno-sidebar,
    .yuno-dashboard-header,
    .yuno-quick-actions-section {
        display: none !important;
    }
    
    body.yuno-dashboard .yuno-main {
        margin-left: 0;
        padding: 0;
    }
    
    .yuno-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

