:root { font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; line-height: 1.5; font-weight: 400; color-scheme: light dark; color: #1e293b; background-color: #f8fafc; --primary: #2563eb; --primary-hover: #1d4ed8; --success: #10b981; --success-hover: #059669; --warning: #f59e0b; --warning-hover: #d97706; --danger: #ef4444; --danger-hover: #dc2626; --card-bg: #ffffff; --border-color: #e2e8f0; --text-primary: #0f172a; --text-secondary: #64748b; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } a { font-weight: 500; color: var(--primary); text-decoration: inherit; } a:hover { color: var(--primary-hover); } body { margin: 0; min-width: 320px; min-height: 100vh; } h1 { font-size: 3.2em; line-height: 1.1; } #app { width: 100%; min-height: 100vh; } .logo { height: 6em; padding: 1.5em; will-change: filter; transition: filter 300ms; } .logo:hover { filter: drop-shadow(0 0 2em #646cffaa); } .logo.vanilla:hover { filter: drop-shadow(0 0 2em #f7df1eaa); } .card { padding: 2em; } .read-the-docs { color: #888; } button { border-radius: 8px; border: 1px solid transparent; padding: 0.6em 1.2em; font-size: 1em; font-weight: 500; font-family: inherit; background-color: var(--primary); color: white; cursor: pointer; transition: background-color 0.25s, border-color 0.25s; } button:hover { background-color: var(--primary-hover); } button:focus, button:focus-visible { outline: 4px auto -webkit-focus-ring-color; } @media (prefers-color-scheme: light) { :root { color: var(--text-primary); background-color: #f8fafc; } a:hover { color: var(--primary-hover); } } .login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; } .login-card { background: var(--card-bg); padding: 2.5rem; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); width: 100%; max-width: 400px; border: 1px solid var(--border-color); } .login-title { color: var(--text-primary); margin: 0 0 2rem 0; font-size: 1.8rem; text-align: center; } .form-group { margin-bottom: 1.5rem; } .form-group label { display: block; color: var(--text-primary); margin-bottom: 0.5rem; font-weight: 500; } .form-group input { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 6px; background: #fff; color: var(--text-primary); font-size: 1rem; box-sizing: border-box; } .form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } .login-button { width: 100%; padding: 0.875rem; background-color: var(--primary); color: white; border: none; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background-color 0.25s; } .login-button:hover { background-color: var(--primary-hover); border-color: transparent; } .login-error { color: var(--danger); text-align: center; margin-top: 1rem; font-size: 0.9rem; } .dashboard { max-width: 1280px; margin: 0 auto; padding: 2rem; } .dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; } .dashboard-header h1 { font-size: 2rem; margin: 0; } .dashboard-content { background: var(--card-bg); padding: 2rem; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); } .logout-button { background-color: var(--danger); color: white; padding: 0.5rem 1rem; border: none; border-radius: 6px; cursor: pointer; } .logout-button:hover { background-color: var(--danger-hover); border-color: transparent; } .status-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; } .status-pending { background-color: #fef3c7; color: #000000; } .status-paid { background-color: #d1fae5; color: #000000; } .status-overdue { background-color: #fee2e2; color: #000000; } .status-draft { background-color: #f1f5f9; color: #000000; } .amount-display { font-family: 'Courier New', monospace; font-weight: 600; color: var(--text-primary); } .card-stat { background: var(--card-bg); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border-color); } .card-stat-label { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 0.5rem; } .card-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); } .card-stat.positive .card-stat-value { color: var(--success); } .card-stat.negative .card-stat-value { color: var(--danger); } /* App Layout with Sidebar */ .app-layout { display: flex; min-height: 100vh; width: 100%; } /* Sidebar Styles */ .sidebar { width: 250px; background-color: var(--card-bg); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; transition: width 0.3s ease, transform 0.3s ease; position: relative; z-index: 100; } .sidebar-header { padding: 1.5rem 1rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; } .sidebar-header h2 { margin: 0; font-size: 1.5rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidebar-toggle { background: transparent; border: none; cursor: pointer; padding: 0.5rem; color: var(--text-secondary); font-size: 1.25rem; border-radius: 4px; transition: background-color 0.2s; } .sidebar-toggle:hover { background-color: var(--border-color); border-color: transparent; } .sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem 0; } .sidebar-menu { list-style: none; margin: 0; padding: 0; } .sidebar-menu li { margin: 0; } .sidebar-link { display: flex; align-items: center; padding: 0.75rem 1rem; color: var(--text-secondary); text-decoration: none; transition: background-color 0.2s, color 0.2s; cursor: pointer; } .sidebar-link:hover { background-color: var(--border-color); color: var(--text-primary); } .sidebar-link.active { background-color: rgba(37, 99, 235, 0.1); color: var(--primary); border-left: 3px solid var(--primary); } .sidebar-icon { font-size: 1.25rem; margin-right: 0.75rem; min-width: 1.5rem; text-align: center; } .sidebar-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Collapsed Sidebar State */ .sidebar.collapsed { width: 70px; } .sidebar.collapsed .sidebar-header h2, .sidebar.collapsed .sidebar-text { opacity: 0; width: 0; overflow: hidden; } .sidebar.collapsed .sidebar-icon { margin-right: 0; } /* Main Content Area */ .main-content { flex: 1; overflow-y: auto; background-color: #f8fafc; } .main-content > div { max-width: 1280px; margin: 0 auto; padding: 2rem; } /* Responsive Design */ @media (max-width: 768px) { .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 1000; transform: translateX(0); } .sidebar.collapsed { transform: translateX(-100%); width: 250px; } .main-content { margin-left: 0; } } /* Facturas Page Styles */ .facturas-page { padding: 2rem; max-width: 1600px; margin: 0 auto; } .facturas-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; } .facturas-header h1 { color: var(--text-primary); font-size: 2rem; margin: 0; } .btn-new-invoice { background-color: var(--primary); color: white; padding: 0.75rem 1.5rem; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; transition: background-color 0.2s; } .btn-new-invoice:hover { background-color: var(--primary-hover); } .facturas-filters { display: flex; gap: 1rem; margin-bottom: 1.5rem; } .search-input, .filter-status { padding: 0.75rem 1rem; border: 1px solid var(--border-color); border-radius: 8px; font-size: 0.95rem; background: var(--card-bg); color: #000000; } .search-input { flex: 1; max-width: 400px; } .filter-status { min-width: 200px; cursor: pointer; } .invoices-table { background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; } .invoices-header, .invoice-item { display: grid; grid-template-columns: 40px 150px 120px 120px 120px 120px 120px 120px 80px; gap: 1rem; padding: 1rem 1.5rem; align-items: center; } .invoices-header { background: #f8fafc; font-weight: 600; color: var(--text-secondary); font-size: 0.85rem; text-transform: uppercase; border-bottom: 1px solid var(--border-color); } .invoice-item { border-bottom: 1px solid var(--border-color); transition: background-color 0.2s; } .invoice-item:hover { background-color: #f8fafc; } .invoice-item:last-child { border-bottom: none; } .invoice-checkbox input { width: 18px; height: 18px; cursor: pointer; } .invoice-number { font-weight: 600; color: var(--text-primary); } .status-badge { display: inline-block; padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-align: center; } .status-draft { background: #f3f4f6; color: #000000; } .status-validated { background: #dbeafe; color: #000000; } .status-paid { background: #d1fae5; color: #000000; } .status-unpaid { background: #fee2e2; color: #000000; } .status-canceled { background: #f3f4f6; color: #000000; text-decoration: line-through; } .invoice-client { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); } .client-icon { font-size: 1rem; } .invoice-date, .invoice-total, .invoice-remain { color: var(--text-primary); } .invoice-total, .invoice-remain { font-weight: 600; } .invoice-actions { display: flex; gap: 0.5rem; justify-content: center; } .btn-view { background: transparent; border: 1px solid var(--border-color); padding: 0.5rem; border-radius: 6px; cursor: pointer; font-size: 1.1rem; transition: all 0.2s; } .btn-view:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.05); } .loading, .error, .no-invoices { padding: 3rem; text-align: center; color: var(--text-secondary); font-size: 1.1rem; } .error { color: var(--danger); } /* Pagination Styles */ .pagination { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-top: 2rem; padding: 1.5rem; background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-color); } .pagination-info { font-weight: 600; color: var(--text-primary); font-size: 1rem; display: flex; gap: 0.5rem; align-items: center; } .pagination-info .current-page, .pagination-info .total-pages { font-weight: 700; color: var(--primary); min-width: 30px; text-align: center; } .btn-pagination { padding: 0.75rem 1.5rem; background-color: var(--primary); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem; } .btn-pagination:hover:not(:disabled) { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); } .btn-pagination:disabled { background-color: #cbd5e1; cursor: not-allowed; opacity: 0.6; } .btn-pagination:active:not(:disabled) { transform: translateY(0); } /* Responsive */ @media (max-width: 768px) { .pagination { flex-wrap: wrap; gap: 1rem; } .btn-pagination { flex: 1; min-width: 120px; } .pagination-info { order: 3; width: 100%; justify-content: center; } } @media (max-width: 1400px) { .invoices-header, .invoice-item { grid-template-columns: 40px 120px 100px 50px 130px 100px 100px 100px 70px; font-size: 0.9rem; } } @media (max-width: 1024px) { .facturas-page { padding: 1rem; } .invoices-header, .invoice-item { grid-template-columns: 40px 100px 90px 130px 90px 90px 60px; gap: 0.5rem; padding: 1rem; } .invoice-id, .invoice-remain { display: none; } } @media (max-width: 768px) { .facturas-filters { flex-direction: column; } .search-input { max-width: 100%; } .invoices-header { display: none; } .invoice-item { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem; } .invoice-item > div { display: flex; justify-content: space-between; align-items: center; } .invoice-item > div::before { content: attr(class); font-weight: 600; color: var(--text-secondary); text-transform: capitalize; } .invoice-checkbox { position: absolute; top: 1rem; right: 1rem; } } .test-page h1 { color: var(--text-primary); margin-bottom: 1rem; font-size: 2rem; } .test-content { background: var(--card-bg); padding: 2rem; border-radius: 12px; border: 1px solid var(--border-color); margin-top: 1rem; } .test-button { background-color: var(--success); color: white; padding: 0.5rem 1rem; border: none; border-radius: 6px; cursor: pointer; margin-top: 1rem; } .test-button:hover { background-color: var(--success-hover); border-color: transparent; } /* Adjust dashboard and login for new layout */ .login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; width: 100%; } /* Create Invoice Page Styles */ .create-invoice-page { padding: 2rem; max-width: 1200px; margin: 0 auto; } .create-invoice-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; } .create-invoice-header h1 { margin: 0; font-size: 2rem; color: var(--text-primary); } .create-invoice-header .subtitle { margin: 0.5rem 0 0 0; color: var(--text-secondary); } .btn-back { background: var(--card-bg); color: var(--text-primary); border: 1px solid var(--border-color); padding: 0.75rem 1.5rem; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.2s; } .btn-back:hover { background: #f1f5f9; } .invoice-form { background: var(--card-bg); border-radius: 12px; border: 1px solid var(--border-color); padding: 2rem; } .form-section { margin-bottom: 2rem; } .form-section h2 { font-size: 1.5rem; margin: 0 0 1.5rem 0; color: var(--text-primary); border-bottom: 2px solid var(--primary); padding-bottom: 0.5rem; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; } .section-header h2 { margin: 0; border: none; padding: 0; } .btn-add-line { background: var(--success); color: white; border: none; padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; font-weight: 600; transition: background 0.2s; } .btn-add-line:hover { background: var(--success-hover); } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; } .form-row-inline { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1rem; } .form-group { display: flex; flex-direction: column; } .form-group.full-width { grid-column: 1 / -1; } .form-group label { font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); } .form-group input, .form-group textarea, .form-group select { padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; color: #000000; background: var(--card-bg); transition: border-color 0.2s; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); } .form-group input[readonly] { background: #f1f5f9; cursor: not-allowed; } .invoice-line { background: #f8fafc; border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem; } .line-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; } .line-number { font-weight: 700; color: var(--text-primary); font-size: 1.1rem; } .btn-remove-line { background: var(--danger); color: white; border: none; padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: background 0.2s; } .btn-remove-line:hover { background: var(--danger-hover); } .line-content { display: flex; flex-direction: column; gap: 1rem; } .form-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border-color); } .btn-cancel { background: var(--card-bg); color: var(--text-primary); border: 1px solid var(--border-color); padding: 0.75rem 2rem; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.2s; } .btn-cancel:hover { background: #f1f5f9; } .btn-submit { background: var(--primary); color: white; border: none; padding: 0.75rem 2rem; border-radius: 8px; cursor: pointer; font-weight: 600; transition: background 0.2s; } .btn-submit:hover { background: var(--primary-hover); } .btn-submit:disabled { background: #cbd5e1; cursor: not-allowed; } @media (max-width: 768px) { .create-invoice-page { padding: 1rem; } .create-invoice-header { flex-direction: column; align-items: flex-start; gap: 1rem; } .form-row, .form-row-inline { grid-template-columns: 1fr; } .invoice-form { padding: 1rem; } }