/*
Theme Name: Yuno Theme
Description: Tema personalizado para o Yuno SaaS - Assistente Pessoal
Version: 1.0
Author: Yuno Team
*/

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de Cores Premium */
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --background-color: #f8fafc;
    --background-secondary: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Layout Principal */
.yuno-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.yuno-sidebar {
    width: 280px;
    background: var(--background-secondary);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.yuno-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.yuno-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.yuno-nav {
    padding: 1rem 0;
}

.yuno-nav-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.yuno-nav-item:hover,
.yuno-nav-item.active {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.yuno-nav-item i {
    margin-right: 0.75rem;
    width: 1.25rem;
}

/* Conteúdo Principal */
.yuno-main {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
}

.yuno-header {
    margin-bottom: 2rem;
}

.yuno-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.yuno-page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Cards */
.yuno-card {
    background: var(--background-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s ease;
}

.yuno-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.yuno-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.yuno-card-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.yuno-card-content {
    padding: 1.5rem;
}

/* Grid System */
.yuno-grid {
    display: grid;
    gap: 1.5rem;
}

.yuno-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.yuno-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.yuno-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Métricas */
.yuno-metric {
    text-align: center;
    padding: 1.5rem;
}

.yuno-metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.yuno-metric-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.yuno-metric-change {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.yuno-metric-change.positive {
    color: var(--success-color);
}

.yuno-metric-change.negative {
    color: var(--error-color);
}

/* Botões */
.yuno-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

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

.yuno-btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.yuno-btn-secondary {
    background-color: var(--background-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.yuno-btn-secondary:hover {
    background-color: var(--background-secondary);
    border-color: var(--primary-color);
}

/* Formulários */
.yuno-form-group {
    margin-bottom: 1.5rem;
}

.yuno-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.yuno-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.yuno-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.yuno-table th,
.yuno-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

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

.yuno-table tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

/* Status Badges */
.yuno-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.yuno-badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.yuno-badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.yuno-badge-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

/* Gráficos */
.yuno-chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

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

@media (max-width: 768px) {
    .yuno-main {
        padding: 1rem;
    }
    
    .yuno-grid-2,
    .yuno-grid-3,
    .yuno-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .yuno-page-title {
        font-size: 1.5rem;
    }
    
    .yuno-metric-value {
        font-size: 2rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yuno-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading States */
.yuno-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utilities */
.yuno-text-center {
    text-align: center;
}

.yuno-text-right {
    text-align: right;
}

.yuno-mb-0 {
    margin-bottom: 0;
}

.yuno-mb-1 {
    margin-bottom: 0.5rem;
}

.yuno-mb-2 {
    margin-bottom: 1rem;
}

.yuno-mb-3 {
    margin-bottom: 1.5rem;
}

.yuno-mt-0 {
    margin-top: 0;
}

.yuno-mt-1 {
    margin-top: 0.5rem;
}

.yuno-mt-2 {
    margin-top: 1rem;
}

.yuno-mt-3 {
    margin-top: 1.5rem;
}

.yuno-hidden {
    display: none;
}

.yuno-flex {
    display: flex;
}

.yuno-justify-between {
    justify-content: space-between;
}

.yuno-items-center {
    align-items: center;
}

.yuno-w-full {
    width: 100%;
}

.yuno-h-full {
    height: 100%;
}

