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

:root {
    --primary: #1a56db;
    --secondary: #1e429f;
    --accent: #3b82f6;
    --dark: #111827;
    --dark-gray: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: white;
    min-height: 100vh;
    color: var(--dark);
}

/* Landing Page */
.landing-page {
    background: white;
}

.landing-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-brand i {
    color: var(--primary);
    font-size: 2rem;
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.badge-free {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.hero-visual {
    display: grid;
    gap: 1.5rem;
}

.visual-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s;
}

.visual-card:hover {
    transform: translateX(10px);
}

.visual-card i {
    font-size: 2.5rem;
    color: var(--primary);
}

.visual-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: white;
}

.features-container {
    max-width: 1000px;
    margin: 0 auto;
}

.features-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 4rem;
    font-weight: 700;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-item i {
    font-size: 2rem;
    color: var(--success);
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--gray);
    line-height: 1.6;
}

/* Developer Section */
.developer {
    padding: 6rem 2rem;
    background: #f9fafb;
}

.developer-container {
    max-width: 800px;
    margin: 0 auto;
}

.developer-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
}

.developer-content > i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.developer-content h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.developer-content > p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.developer-content strong {
    color: var(--success);
    font-weight: 700;
}

.support-box {
    background: #f9fafb;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.support-box h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.support-box h3 i {
    color: #ef4444;
    margin-right: 0.5rem;
}

.support-box > p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    margin-bottom: 1.5rem;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.support-note {
    font-size: 0.95rem;
    color: var(--gray);
    margin-top: 1rem;
}

/* Footer */
.landing-footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2.5rem 2rem;
}

.landing-footer p {
    margin-bottom: 0.5rem;
}

.landing-footer p:last-child {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.page-header p {
    color: var(--gray);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert i {
    font-size: 1.2rem;
}

/* Table */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px var(--shadow);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.data-table th {
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    color: var(--gray);
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.client-name {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--dark);
}

.client-name i {
    font-size: 1.5rem;
    color: var(--primary);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-edit {
    background: #dbeafe;
    color: var(--primary);
}

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

.btn-delete {
    background: #fee2e2;
    color: var(--danger);
}

.btn-delete:hover {
    background: var(--danger);
    color: white;
}

/* Empty State */
.empty-state {
    background: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 1px 3px var(--shadow);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* Form Page */
.form-page {
    max-width: 900px;
}

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

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--primary);
}

.form-header h1 {
    font-size: 2rem;
    color: var(--dark);
    font-weight: 700;
}

.form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-card textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #f9fafb;
    font-family: inherit;
    resize: vertical;
}

.form-card textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Inventory Tabs */
.inventory-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tab {
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 1px 3px var(--shadow);
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    background: var(--primary);
    color: white;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px var(--shadow);
    transition: all 0.2s;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

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

.category-header h3 {
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 600;
}

.category-card p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.category-stats {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.category-stats span {
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px var(--shadow);
    transition: all 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.product-image {
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: var(--gray);
    font-size: 3rem;
    opacity: 0.3;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success);
}

.stock {
    color: var(--gray);
    font-size: 0.9rem;
}

.category-tag {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* File Input */
.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-display {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
}

.file-input-display:hover {
    border-color: var(--primary);
    background: #eff6ff;
    color: var(--primary);
}

.file-input-display i {
    font-size: 1.5rem;
}

.current-image {
    margin-top: 1rem;
    text-align: center;
}

.current-image img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
}

.current-image span {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.form-card select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #f9fafb;
    cursor: pointer;
}

.form-card select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* Invoice Styles */
.header-actions {
    display: flex;
    gap: 1rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.btn-view {
    background: #f3f4f6;
    color: var(--dark);
}

.btn-view:hover {
    background: var(--dark);
    color: white;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Invoice Form */
.invoice-form {
    max-width: 1200px;
}

.invoice-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px var(--shadow);
    overflow: hidden;
}

.invoice-header {
    background: #f9fafb;
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-info h2 {
    color: var(--dark);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.invoice-parties {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.invoice-items {
    padding: 2rem;
}

.invoice-items h3 {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.add-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.add-item select {
    flex: 2;
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

.add-item input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

.items-table {
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
}

.items-table table {
    width: 100%;
    border-collapse: collapse;
}

.items-table th {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.items-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.invoice-totals {
    padding: 2rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.totals-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid #e5e7eb;
    padding-top: 1rem;
}

.totals-row input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    text-align: center;
}

/* Invoice Print */
.invoice-print {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.invoice-container {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

.invoice-container .invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--primary);
}

.company-info h1 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.company-info p {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.invoice-details {
    text-align: right;
}

.invoice-details h2 {
    color: var(--dark);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.invoice-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.bill-to h3, .payment-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
}

.invoice-table th {
    background: var(--primary);
    color: white;
    padding: 1.2rem;
    text-align: left;
}

.invoice-table td {
    padding: 1.2rem;
    border-bottom: 1px solid #e5e7eb;
}

.invoice-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.totals-section {
    max-width: 300px;
    margin-left: auto;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    font-size: 1.1rem;
}

.final-total {
    border-top: 2px solid var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
}

.invoice-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 4rem 0;
}

.signature-section {
    text-align: center;
}

.signature-line {
    height: 2px;
    background: #e5e7eb;
    margin-bottom: 1rem;
}

.invoice-footer {
    border-top: 2px solid #e5e7eb;
    padding-top: 2rem;
    text-align: center;
    color: var(--gray);
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-content a {
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
}

.footer-content a:hover {
    text-decoration: underline;
}

.print-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Form Styles Consistency */
.form-select, .form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #f9fafb;
    font-family: inherit;
}

.form-select {
    cursor: pointer;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.add-item .form-select {
    flex: 2;
}

.add-item .form-input {
    flex: 1;
}

/* Reports Styles */
.reports-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.reports-overview .stat-card .stat-info h3.positive {
    color: var(--success);
}

.reports-overview .stat-card .stat-info h3.negative {
    color: var(--danger);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.report-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px var(--shadow);
    transition: all 0.2s;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.report-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.report-header i {
    font-size: 2rem;
    color: var(--primary);
}

.report-header h3 {
    color: var(--dark);
    font-size: 1.3rem;
}

.report-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.report-actions {
    display: flex;
    justify-content: flex-end;
}

.recent-activity {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px var(--shadow);
}

.recent-activity h3 {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
}

.activity-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.activity-type {
    background: #e5e7eb;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.activity-amount {
    font-weight: 700;
    color: var(--success);
}

.activity-date {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Report Print Styles */
.report-print {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
}

.report-container {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

.report-container .report-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--primary);
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.summary-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.summary-card.positive {
    border-left-color: var(--success);
}

.summary-card.negative {
    border-left-color: var(--danger);
}

.summary-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.summary-card .amount {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.summary-card.positive .amount {
    color: var(--success);
}

.summary-card.negative .amount {
    color: var(--danger);
}

.summary-card small {
    color: var(--gray);
}

.report-section {
    margin-bottom: 3rem;
}

.report-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.report-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.report-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.in-stock {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.low-stock {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.out-stock {
    background: #fee2e2;
    color: #991b1b;
}

.positive {
    color: var(--success) !important;
}

.negative {
    color: var(--danger) !important;
}

/* Balance Styles */
.balance-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.balance-section {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
}

.balance-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.balance-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 2px solid var(--primary);
    margin-top: 1rem;
}

/* Botones */
.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 86, 219, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-secondary:hover {
    background: var(--dark);
    color: white;
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Páginas de Autenticación */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-box {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.auth-header h2 {
    font-size: 2rem;
    color: var(--dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary);
    margin-right: 0.5rem;
    width: 18px;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #f9fafb;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.auth-footer {
    text-align: center;
    color: var(--gray);
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.back-link:hover {
    color: var(--dark);
}

/* Dashboard */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f3f4f6;
}

.sidebar {
    width: 280px;
    background: white;
    box-shadow: 2px 0 15px var(--shadow);
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar .logo i {
    font-size: 2.8rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.8rem;
}

.sidebar .logo h2 {
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar .menu {
    list-style: none;
    padding: 1.5rem 0;
    flex: 1;
}

.sidebar .menu li {
    margin-bottom: 0.3rem;
}

.sidebar .menu li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 1rem;
}

.sidebar .menu li a i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.sidebar .menu li a:hover {
    background: #f3f4f6;
    color: var(--primary);
}

.sidebar .menu li.active a {
    background: #eff6ff;
    color: var(--primary);
    border-right: 3px solid var(--primary);
    font-weight: 600;
}

.main-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

.dashboard-header {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 3px var(--shadow);
    border-left: 4px solid var(--primary);
}

.dashboard-header h1 {
    color: var(--dark);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.dashboard-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.stat-card:hover {
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateY(-2px);
}

.stat-card i {
    font-size: 3rem;
    color: var(--primary);
    background: #eff6ff;
    padding: 1.2rem;
    border-radius: 12px;
}

.stat-info h3 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.stat-info p {
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .developer-content {
        padding: 2rem 1.5rem;
    }
    
    .support-box {
        padding: 2rem 1.5rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .sidebar .logo {
        text-align: center;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-header .btn {
        width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 600px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
}
