/* Variables */ :root { --primary: #1095c1; --primary-dark: #0c7ea3; --primary-light: #f0f9ff; --text-main: #1f1913; --text-secondary: #4a5568; --border-color: #e2e8f0; --bg-main: #f1f5f9; --bg-white: #ffffff; --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1); } /* Base styles */ body { font-family: system-ui, -apple-system, "Segoe UI", "Roboto", sans-serif; line-height: 1.5; background: var(--bg-main); color: var(--text-main); min-height: 100vh; display: flex; flex-direction: column; } /* Header styles */ header:not(.dashboard-header) { background: var(--primary); box-shadow: var(--shadow-sm); padding: 0.5rem 0; margin-bottom: 1.5rem; border-bottom: none; } header:not(.dashboard-header) nav { display: flex; justify-content: space-between; align-items: center; } header:not(.dashboard-header) nav ul { display: flex; align-items: center; gap: 1rem; margin: 0; padding: 0; list-style: none; } .logo { font-size: 1.2rem; font-weight: 600; color: var(--bg-white); text-decoration: none; list-style: none; transition: all 0.2s ease; } .logo:hover { color: var(--primary-light); transform: translateY(-1px); } /* Navigation links */ nav a { color: var(--bg-white); text-decoration: none; font-weight: 500; padding: 0.4rem 0.75rem; border-radius: 0.375rem; transition: all 0.2s ease; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.5rem; opacity: 0.9; } nav a i { font-size: 1rem; } nav a:hover { color: var(--bg-white); background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); opacity: 1; } nav a.active { color: var(--bg-white); background: rgba(255, 255, 255, 0.15); font-weight: 600; opacity: 1; } /* Navigation buttons that look like links */ button.nav-link { background: none; border: none; color: var(--bg-white); font-weight: 500; padding: 0.4rem 0.75rem; border-radius: 0.375rem; cursor: pointer; transition: all 0.2s ease; font-size: inherit; display: inline-flex; align-items: center; gap: 0.5rem; opacity: 0.9; } button.nav-link:hover { color: var(--bg-white); background: rgba(255, 255, 255, 0.1); opacity: 1; } /* Dashboard navigation */ .dashboard-nav { display: flex; gap: 1rem; margin-bottom: 2rem; background: var(--bg-white); padding: 1rem; border-radius: 0.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); } .dashboard-nav a { color: var(--text-secondary); text-decoration: none; padding: 0.5rem 1rem; border-radius: 0.375rem; transition: all 0.2s ease; font-weight: 500; display: inline-flex; align-items: center; gap: 0.5rem; background: var(--bg-main); border: 1px solid var(--border-color); } .dashboard-nav a:hover { color: var(--primary); background: var(--primary-light); border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); } .dashboard-nav a.active { color: var(--bg-white); background: var(--primary); border-color: var(--primary); } /* Logout button */ button.outline { padding: 0.5rem; border: 1px solid #e2e8f0; background: transparent; color: #4a5568; border-radius: 0.375rem; cursor: pointer; transition: all 0.2s ease; } button.outline:hover { background: #f0f9ff; color: #1095c1; border-color: #1095c1; } /* Main content */ main { flex: 1; padding: 1rem 0; } .container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; } /* Forms */ form { background: var(--bg-white); padding: 1.5rem; border-radius: 0.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); } .form-group { margin-bottom: 1.25rem; } label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-secondary); font-size: 0.95rem; } input[type="email"], input[type="password"], input[type="number"], input[type="text"] { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border-color); border-radius: 0.375rem; background: var(--bg-white); color: var(--text-main); transition: all 0.2s ease; font-size: 0.95rem; box-shadow: var(--shadow-sm); } input[type="email"]:focus, input[type="password"]:focus, input[type="number"]:focus, input[type="text"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16, 149, 193, 0.1); } input[type="checkbox"] { margin-right: 0.5rem; transform: scale(1.1); } /* Buttons */ .btn-primary { background: var(--primary); color: var(--bg-white); border: none; padding: 0.75rem 1.5rem; border-radius: 0.375rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; box-shadow: var(--shadow-sm); } .btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); } .btn-primary i { font-size: 1rem; } .btn-secondary { background: var(--bg-white); color: var(--text-secondary); border: 1px solid var(--border-color); padding: 0.75rem 1.5rem; border-radius: 0.375rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; font-size: 0.95rem; } .btn-secondary:hover { background: var(--bg-main); border-color: var(--primary); color: var(--primary); transform: translateY(-1px); } /* Login container */ .login-container { max-width: 400px; margin: 2rem auto; } .login-form h2 { margin-bottom: 1.5rem; color: #2d3748; text-align: center; } /* Dashboard */ .dashboard { background: #ffffff; padding: 2rem; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid #e2e8f0; } .user-info { text-align: right; } .user-info p { margin: 0.25rem 0; color: #4a5568; } /* Override user-info p styles for admin badge */ .user-info p .admin-badge, .admin-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--bg-white) !important; border-radius: 2rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em; box-shadow: 0 2px 4px rgba(16, 149, 193, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.2s ease; } .user-info p .admin-badge:before, .admin-badge:before { content: "\f509"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.75rem; } .user-info p .admin-badge:hover, .admin-badge:hover { transform: translateY(-1px); box-shadow: 0 4px 6px rgba(16, 149, 193, 0.3); } /* Users management */ .users-container { background: #ffffff; padding: 1.5rem; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); } .users-container h2 { margin-bottom: 1.25rem; color: #2d3748; font-size: 1.5rem; } .users-container h3 { color: #4a5568; font-size: 1.1rem; margin: 1.5rem 0 1rem; } /* Alerts */ .alert { padding: 1rem 1.25rem; border-radius: 0.5rem; margin-bottom: 1.5rem; font-size: 0.95rem; display: flex; align-items: center; gap: 0.75rem; box-shadow: var(--shadow-sm); } .alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; } .alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; } /* Footer */ footer { background: #ffffff; padding: 1.5rem 0; margin-top: 2rem; border-top: 1px solid #e2e8f0; } footer p { color: #4a5568; text-align: center; margin: 0; font-size: 0.9rem; } /* Responsive adjustments */ @media (max-width: 768px) { .dashboard-header { flex-direction: column; align-items: flex-start; gap: 1rem; } .user-info { text-align: left; } header nav { flex-direction: column; gap: 1rem; } header nav ul { flex-wrap: wrap; justify-content: center; } table { font-size: 0.9rem; } th, td { padding: 0.6rem 0.75rem; } } /* Modal styles */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; overflow-y: auto; padding: 1.5rem 1rem; backdrop-filter: blur(4px); } .modal-content { background: var(--bg-white); margin: 0 auto; padding: 1.25rem; width: 90%; max-width: 600px; border-radius: 0.5rem; box-shadow: var(--shadow-lg); position: relative; border: 1px solid var(--border-color); } .modal-content h3 { color: var(--text-main); font-size: 1.25rem; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-color); } /* Form actions */ .form-actions { display: flex; gap: 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border-color); } /* Form row in modals */ .modal-content .form-row { gap: 0.75rem; margin-bottom: 0.75rem; } .modal-content .form-group { margin-bottom: 0.75rem; } @media (max-width: 768px) { .modal-content { padding: 1rem; } } /* Table styles */ .table-responsive { width: 100%; overflow-x: auto; margin: 1rem 0; border: 1px solid var(--border-color); border-radius: 0.5rem; background: var(--bg-white); box-shadow: var(--shadow-sm); } table { width: 100%; border-collapse: collapse; white-space: nowrap; margin: 0; } th { background: var(--bg-main); font-weight: 600; text-align: left; padding: 1rem; border-bottom: 2px solid var(--border-color); white-space: nowrap; } td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border-color); vertical-align: middle; } /* Column specific widths */ .col-email { min-width: 200px; } .col-name { min-width: 150px; } .col-business { min-width: 200px; } .col-cuit { min-width: 120px; } .col-pdv { min-width: 80px; } .col-fiscal { min-width: 150px; } .col-admin { min-width: 80px; } .col-created { min-width: 120px; } .col-actions { min-width: 100px; text-align: center; } /* Action buttons */ .btn-edit, .btn-delete { padding: 0.5rem; border: none; background: none; cursor: pointer; transition: all 0.2s ease; border-radius: 0.375rem; margin: 0 0.25rem; } .btn-edit { color: var(--primary); } .btn-delete { color: #dc2626; } .btn-edit:hover { background: var(--primary-light); transform: translateY(-1px); } .btn-delete:hover { background: #fee2e2; transform: translateY(-1px); }