/* Dashboard Card-Based Design - Inspirado na imagem */

/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #ff6b35;
    --blue-card: #4285f4;
    --orange-card: #ff6b35;
    --green-card: #34a853;
    --purple-card: #9c27b0;
    --red-card: #ea4335;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --text-white: #ffffff;
    --border-light: #e2e8f0;
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --radius-card: 16px;
    --radius-button: 12px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Layout principal */
.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* Sidebar moderna */
.sidebar {
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    padding: 24px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.sidebar-nav {
    padding: 0 16px;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-button);
    margin-bottom: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 107, 53, 0.08);
    color: var(--primary-orange);
}

.nav-item.active {
    background: var(--primary-orange);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.nav-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Content area */
.content {
    background: var(--bg-light);
    padding: 32px;
    overflow-y: auto;
}

/* Header da página */
.page-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 32px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.page-subtitle {
    color: var(--text-light);
    margin-top: 4px;
    font-size: 16px;
}

.page-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Cards de métricas */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--bg-white);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.metric-card.blue { background: linear-gradient(135deg, var(--blue-card) 0%, #5a9fd4 100%); color: white; }
.metric-card.orange { background: linear-gradient(135deg, var(--orange-card) 0%, #ff8a50 100%); color: white; }
.metric-card.green { background: linear-gradient(135deg, var(--green-card) 0%, #4caf50 100%); color: white; }
.metric-card.purple { background: linear-gradient(135deg, var(--purple-card) 0%, #ba68c8 100%); color: white; }
.metric-card.red { background: linear-gradient(135deg, var(--red-card) 0%, #f44336 100%); color: white; }

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.metric-title {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

.metric-icon {
    font-size: 24px;
    opacity: 0.8;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}

.metric-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.9;
}

/* Cards de conteúdo */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.content-card {
    background: var(--bg-white);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.card-action {
    color: var(--primary-orange);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* Botões de ação rápida */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-button);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
}

.quick-action-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.quick-action-btn.primary {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.quick-action-btn.primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 20px;
}

/* Lista de itens */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-button);
    transition: all 0.2s ease;
}

.list-item:hover {
    background: #f1f5f9;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.item-avatar.pending { background: rgba(255, 107, 53, 0.1); color: var(--orange-card); }
.item-avatar.approved { background: rgba(52, 168, 83, 0.1); color: var(--green-card); }
.item-avatar.rejected { background: rgba(234, 67, 53, 0.1); color: var(--red-card); }

.item-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: var(--text-dark);
}

.item-details p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

.item-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending { background: rgba(255, 107, 53, 0.1); color: var(--orange-card); }
.badge-approved { background: rgba(52, 168, 83, 0.1); color: var(--green-card); }
.badge-rejected { background: rgba(234, 67, 53, 0.1); color: var(--red-card); }

/* Botões modernos */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-button);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-orange);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-light);
}

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

.btn-success {
    background: var(--green-card);
    color: white;
}

.btn-danger {
    background: var(--red-card);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .content {
        padding: 16px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

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

.metric-card,
.content-card,
.quick-action-btn {
    animation: slideIn 0.3s ease forwards;
}

.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.2s; }
.metric-card:nth-child(3) { animation-delay: 0.3s; }
.metric-card:nth-child(4) { animation-delay: 0.4s; }

/* Estados vazios */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 24px;
}
