AndesOps-AI / frontend /globals.css
Álvaro Valenzuela Valdes
Optimize mobile UI, fix layout overlaps and add tender questions link
bd7895c
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;
--card: 240 10% 3.9%;
--card-foreground: 0 0% 98%;
--popover: 240 10% 3.9%;
--popover-foreground: 0 0% 98%;
--primary: 263.4 70% 50.4%;
--primary-foreground: 210 20% 98%;
--secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0% 98%;
--muted: 240 3.7% 15.9%;
--muted-foreground: 240 5% 64.9%;
--accent: 240 3.7% 15.9%;
--accent-foreground: 0 0% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 0% 98%;
--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
--ring: 263.4 70% 50.4%;
--radius: 0.75rem;
}
@layer base {
body {
background-color: #030303;
color: hsl(var(--foreground));
font-feature-settings: "rlig" 1, "calt" 1;
-webkit-font-smoothing: antialiased;
background-image:
radial-gradient(at 0% 0%, hsla(263, 70%, 50%, 0.15) 0px, transparent 50%),
radial-gradient(at 100% 100%, hsla(190, 70%, 50%, 0.1) 0px, transparent 50%);
background-attachment: fixed;
}
}
@layer components {
.glass-card {
background-color: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
transition: all 0.2s ease-out;
}
.glass-card:hover {
border-color: rgba(255, 255, 255, 0.2);
background-color: rgba(0, 0, 0, 0.5);
}
.premium-gradient {
background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
}
.text-gradient {
background-image: linear-gradient(to right, #818cf8, #c084fc, #f472b6);
-webkit-background-clip: text;
color: transparent;
}
}
/* Global Scrollbar Reset & Premium 2026 Styling */
* {
scrollbar-width: thin;
scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
}
::-webkit-scrollbar {
width: 3px;
height: 3px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, rgba(168, 85, 247, 0.5) 0%, rgba(99, 102, 241, 0.5) 100%);
border-radius: 10px;
border: none;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, rgba(168, 85, 247, 0.8) 0%, rgba(99, 102, 241, 0.8) 100%);
width: 5px;
}
/* Specific for the sidebar to ensure absolute minimalism */
.custom-scrollbar::-webkit-scrollbar {
width: 2px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: #a855f7;
box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}
::selection {
background: rgba(34, 211, 238, 0.3);
}
button,
input,
textarea,
select {
font: inherit;
}
/* Professional PDF Print Styles for AndesOps AI reports */
@media print {
@page {
margin: 2cm;
size: A4;
}
body {
background: white !important;
color: black !important;
font-family: 'Inter', system-ui, sans-serif !important;
}
.glass-card {
background: white !important;
border: 1px solid #e2e8f0 !important;
box-shadow: none !important;
backdrop-filter: none !important;
page-break-inside: avoid;
margin-bottom: 20px !important;
color: black !important;
}
.premium-gradient,
.bg-purple-600,
.bg-cyan {
background: #f8fafc !important;
color: black !important;
border: 1px solid #000 !important;
}
.text-white,
.text-slate-300,
.text-slate-400,
.text-purple-400,
.text-cyan {
color: black !important;
}
/* Hide UI elements */
nav,
aside,
footer,
button,
.no-print {
display: none !important;
}
/* Force display of hidden elements in print */
.print-only {
display: block !important;
}
/* Professional spacing */
h1, h2, h3, h4 {
color: #1e293b !important;
margin-top: 1.5rem !important;
margin-bottom: 0.75rem !important;
}
.prose {
color: #334155 !important;
line-height: 1.6 !important;
}
.border-white\/5 {
border-color: #e2e8f0 !important;
}
}
@media (max-width: 640px) {
.glass-card {
padding: 1.25rem !important;
}
h2 {
font-size: 1.5rem !important;
line-height: 2rem !important;
}
.premium-gradient {
padding: 1rem !important;
}
}