/*
Theme Name: Gestão Financeira Theme
Theme URI: https://rogeriocapucho.com.br
Author: Rogerio Capucho
Author URI: https://rogeriocapucho.com.br
Description: Tema especializado para o sistema de gestão financeira pessoal
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpf-theme
*/

/* Reset e variáveis */
:root {
    --primary-color: #1e3d59;
    --secondary-color: #ff6e40;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --border-color: #ddd;
    --header-height: 60px;
    --sidebar-width: 250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-bg);
}

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

/* Sidebar */
.wpf-sidebar {
    width: var(--sidebar-width);
    background: var(--primary-color);
    color: white;
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.wpf-logo-container {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.wpf-logo {
    max-width: 150px;
    height: auto;
}

.wpf-nav {
    list-style: none;
}

.wpf-nav-item {
    margin-bottom: 10px;
}

.wpf-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.wpf-nav-link:hover,
.wpf-nav-link.active {
    background: rgba(255,255,255,0.1);
}

.wpf-nav-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Conteúdo Principal */
.wpf-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
}

/* Header */
.wpf-header {
    background: white;
    height: var(--header-height);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.wpf-header-title {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.wpf-user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wpf-user-info {
    text-align: right;
}

.wpf-user-name {
    font-weight: 500;
}

.wpf-user-role {
    font-size: 0.8rem;
    color: #666;
}

/* Cards e Grids */
.wpf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.wpf-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.wpf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wpf-card-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Formulários */
.wpf-form-group {
    margin-bottom: 20px;
}

.wpf-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.wpf-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.wpf-form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 61, 89, 0.1);
}

/* Botões */
.wpf-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

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

.wpf-btn-primary:hover {
    background: darken(var(--primary-color), 10%);
}

.wpf-btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.wpf-btn-secondary:hover {
    background: darken(var(--secondary-color), 10%);
}

/* Tabelas */
.wpf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

.wpf-table th {
    background: var(--light-bg);
    font-weight: 500;
}

/* Responsividade */
@media (max-width: 768px) {
    .wpf-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .wpf-sidebar.active {
        transform: translateX(0);
    }
    
    .wpf-main {
        margin-left: 0;
    }
    
    .wpf-header {
        padding: 0 15px;
    }
    
    .wpf-grid {
        grid-template-columns: 1fr;
    }
    
    .wpf-table {
        display: block;
        overflow-x: auto;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wpf-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}
