@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&display=swap');

:root {
    --sidebar-bg: #111c2e;
    --sidebar-active: #1e2c41;
    --sidebar-text: #94a3b8;
    --sidebar-text-hover: #ffffff;
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --green: #10b981;
    --red: #ef4444;
    --blue: #3b82f6;
    --teal: #14b8a6;
    --indigo: #6366f1;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed {
    margin-left: -250px;
}

.sidebar-header {
    padding: 24px;
}

.sidebar-header h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0 12px;
}

.nav-title {
    font-size: 0.75rem;
    color: var(--sidebar-text);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 16px 12px 8px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-item i {
    font-size: 1.25rem;
    margin-right: 12px;
}

.nav-item:hover {
    color: var(--sidebar-text-hover);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--sidebar-text-hover);
    background-color: var(--sidebar-active);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Topbar */
.topbar {
    height: 60px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Content Area */
.content-wrapper {
    padding: 32px 48px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

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

.welcome-section h1 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.welcome-section p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Cards Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.card-header i {
    font-size: 1.25rem;
}

.card-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-main);
}

.activities-card {
    grid-column: 1 / -1;
}

.activities-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-teal { color: var(--teal); }
.text-indigo { color: var(--indigo); }

/* --- Finanças Page Styles --- */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-header-info h1 {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.page-header-info p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Button Primary */
.btn-primary {
    background-color: #337194;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary i {
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: #275874;
    transform: translateY(-1px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-title {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Transactions Card */
.transactions-card {
    min-height: 300px;
}

.transactions-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
}

/* --- Diário Page Styles --- */
.diary-empty-card {
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.empty-state-large {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.empty-state-large i {
    font-size: 5rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.empty-title {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.empty-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}
 
 