/* style.css – Design profissional e responsivo */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}
.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span {
    font-weight: 400;
    color: #6b7280;
}
.nav {
    display: flex;
    gap: 24px;
}
.nav a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav a:hover, .nav a.active {
    background: #eff6ff;
    color: #2563eb;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 32px 0;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    text-align: center;
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.03), 0 8px 10px -6px rgba(0,0,0,0.02);
    transition: all 0.2s;
    border: 1px solid #f3f4f6;
    margin-bottom: 24px;
}
.card:hover {
    box-shadow: 0 20px 30px -10px rgba(37,99,235,0.05);
    border-color: #e5e7eb;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 10px;
}
.balance-card {
    display: flex;
    align-items: center;
    gap: 20px;
}
.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 60px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.8rem;
}
.big-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111827;
    margin: 8px 0;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    line-height: 1;
}
.btn-primary {
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px -4px rgba(37,99,235,0.4);
}
.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -4px rgba(37,99,235,0.5);
}
.btn-success { background: #10b981; color: white; }
.btn-warning { background: #f59e0b; color: white; }
.btn-danger { background: #ef4444; color: white; }
.btn-outline {
    background: transparent;
    border: 1.5px solid #d1d5db;
    color: #374151;
}
.btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}
.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Tabelas */
.table-responsive {
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th {
    text-align: left;
    padding: 16px 12px;
    background: #f9fafb;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}
.table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
}
.table tbody tr:hover {
    background: #f9fafb;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fed7aa; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Formulários */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Alertas */
.alert {
    padding: 16px 20px;
    border-radius: 16px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    position: relative;
}
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-warning { background: #ffedd5; color: #7c2d12; border-left: 4px solid #f97316; }
.close-alert {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
    color: currentColor;
}

/* Login */
.login-page {
    background: linear-gradient(145deg, #2563eb, #1e40af);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-card {
    background: white;
    border-radius: 32px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    text-align: center;
}
.login-card .logo i {
    color: #2563eb;
}
.login-card h2 {
    font-size: 1.8rem;
    margin: 16px 0 8px;
    color: #111827;
}
.login-card p {
    color: #6b7280;
    margin-bottom: 32px;
}
.input-group {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border-radius: 60px;
    padding: 4px 4px 4px 20px;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}
.input-group i {
    color: #9ca3af;
    font-size: 1.1rem;
}
.input-group input {
    width: 100%;
    padding: 14px 12px;
    border: none;
    background: transparent;
    font-size: 1rem;
}
.input-group input:focus {
    outline: none;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
    gap: 8px;
}
.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.tab-btn:hover {
    color: #2563eb;
}
.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Inline forms */
.inline-form {
    display: inline-block;
    margin-right: 5px;
}

/* Responsividade */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 16px;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .login-card {
        padding: 32px 24px;
    }
}