Files
tenderpilot/public/backup-20260214/app.css

1530 lines
27 KiB
CSS
Raw Normal View History

/**
* TenderRadar App Styles
* Shared styles for dashboard, profile, alerts, and other app pages
* Complements the landing page styles.css
*/
/* ===========================
EXTENDED COLOR VARIABLES
=========================== */
:root {
/* Existing variables */
--primary: #1e40af;
--primary-dark: #1e3a8a;
--primary-light: #3b82f6;
--accent: #f59e0b;
--text-primary: #1f2937;
--text-secondary: #6b7280;
--text-light: #9ca3af;
--bg-primary: #ffffff;
--bg-secondary: #f9fafb;
--bg-alt: #f3f4f6;
--border: #e5e7eb;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
/* App-specific colors */
--success: #10b981;
--success-light: #d1fae5;
--danger: #ef4444;
--danger-light: #fee2e2;
--warning: #f59e0b;
--warning-light: #fef3c7;
--info: #3b82f6;
--info-light: #dbeafe;
--neutral-50: #f9fafb;
--neutral-100: #f3f4f6;
--neutral-200: #e5e7eb;
--neutral-300: #d1d5db;
--neutral-400: #9ca3af;
--neutral-500: #6b7280;
--neutral-600: #4b5563;
--neutral-700: #374151;
--neutral-800: #1f2937;
--neutral-900: #111827;
}
/* ===========================
APP LAYOUT & STRUCTURE
=========================== */
/* Page wrapper for proper layout */
html, body {
height: 100%;
}
body {
display: flex;
flex-direction: column;
background: var(--bg-secondary);
}
/* Main content area that sits between navbar and footer */
main, .app-main {
flex: 1;
padding-top: 80px; /* Account for fixed navbar */
padding-bottom: 0;
min-height: calc(100vh - 160px); /* Approximate for navbar + footer */
}
/* ===========================
NAVBAR STYLES
=========================== */
.app-header {
position: fixed;
top: 0;
left: 0;
right: 0;
background: var(--bg-primary);
border-bottom: 1px solid var(--border);
box-shadow: var(--shadow-sm);
z-index: 1000;
height: 72px;
}
.nav-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 1.5rem;
height: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.nav-brand {
display: flex;
align-items: center;
gap: 0.75rem;
flex-shrink: 0;
}
.brand-link {
display: flex;
align-items: center;
gap: 0.75rem;
text-decoration: none;
color: var(--primary);
font-weight: 700;
font-size: 1.25rem;
transition: opacity 0.2s;
}
.brand-link:hover {
opacity: 0.8;
}
.nav-logo {
width: auto;
height: 50px;
display: block;
}
.brand-text {
color: var(--text-primary);
display: none;
}
/* Mobile menu wrapper */
.nav-menu-wrapper {
display: flex;
align-items: center;
gap: 2rem;
flex: 1;
justify-content: flex-end;
}
.nav-menu {
display: flex;
list-style: none;
gap: 0.5rem;
align-items: center;
margin: 0;
padding: 0;
}
.nav-link {
color: var(--text-secondary);
text-decoration: none;
font-weight: 500;
font-size: 0.9375rem;
padding: 0.75rem 1rem;
border-radius: 0.375rem;
transition: all 0.2s;
position: relative;
}
.nav-link:hover {
color: var(--primary);
background: var(--bg-secondary);
}
.nav-link.active {
color: var(--primary);
background: var(--primary);
background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(30, 64, 175, 0.05) 100%);
font-weight: 600;
}
.nav-link.active::after {
content: '';
position: absolute;
bottom: 0;
left: 1rem;
right: 1rem;
height: 2px;
background: var(--primary);
border-radius: 1px;
}
/* User menu */
.nav-user {
position: relative;
display: flex;
align-items: center;
}
.user-menu-toggle {
display: flex;
align-items: center;
gap: 0.75rem;
background: none;
border: 1px solid var(--border);
padding: 0.5rem 0.75rem;
border-radius: 0.5rem;
cursor: pointer;
font-weight: 500;
color: var(--text-primary);
transition: all 0.2s;
}
.user-menu-toggle:hover {
background: var(--bg-secondary);
border-color: var(--primary);
}
.user-avatar {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
color: white;
font-weight: 600;
font-size: 0.875rem;
flex-shrink: 0;
}
.user-email {
font-size: 0.875rem;
color: var(--text-secondary);
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dropdown-icon {
width: 16px;
height: 16px;
color: var(--text-secondary);
flex-shrink: 0;
transition: transform 0.2s;
}
.user-menu-toggle.active .dropdown-icon {
transform: rotate(180deg);
}
/* User dropdown menu */
.user-dropdown {
position: absolute;
top: calc(100% + 0.5rem);
right: 0;
background: var(--bg-primary);
border: 1px solid var(--border);
border-radius: 0.5rem;
box-shadow: var(--shadow-lg);
min-width: 200px;
z-index: 2000;
}
.dropdown-link {
display: block;
width: 100%;
padding: 0.75rem 1rem;
text-align: left;
background: none;
border: none;
color: var(--text-primary);
text-decoration: none;
font-size: 0.9375rem;
cursor: pointer;
transition: all 0.2s;
}
.dropdown-link:hover {
background: var(--bg-secondary);
color: var(--primary);
}
.dropdown-link:first-child {
border-radius: 0.375rem 0.375rem 0 0;
}
.dropdown-link:last-child {
border-radius: 0 0 0.375rem 0.375rem;
}
.logout-btn {
color: var(--danger);
}
.logout-btn:hover {
background: rgba(239, 68, 68, 0.05);
color: var(--danger);
}
/* Unauthenticated nav */
.nav-auth {
display: flex;
align-items: center;
gap: 1rem;
}
/* Mobile menu toggle */
.mobile-menu-toggle {
display: none;
flex-direction: column;
gap: 4px;
background: none;
border: none;
cursor: pointer;
padding: 0.5rem;
margin-left: auto;
}
.mobile-menu-toggle span {
width: 24px;
height: 2px;
background: var(--text-primary);
transition: all 0.3s;
border-radius: 1px;
}
.mobile-menu-toggle.active span:nth-child(1) {
transform: rotate(45deg) translate(10px, 10px);
}
.mobile-menu-toggle.active span:nth-child(2) {
opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -6px);
}
/* ===========================
FOOTER STYLES
=========================== */
.app-footer {
background: var(--neutral-900);
color: var(--text-light);
padding: 3rem 0 1.5rem;
margin-top: 4rem;
}
.footer-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 1.5rem;
}
.footer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
padding-bottom: 2rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col {
display: flex;
flex-direction: column;
gap: 1rem;
}
.footer-brand {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 0.5rem;
}
.footer-logo {
width: auto;
height: 40px;
display: block;
}
.footer-brand-text {
font-weight: 700;
font-size: 1.125rem;
color: white;
}
.footer-desc {
font-size: 0.9375rem;
line-height: 1.6;
color: var(--text-light);
}
.footer-heading {
font-weight: 600;
color: white;
margin: 0;
font-size: 0.9375rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.footer-links {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.footer-links a {
color: var(--text-light);
text-decoration: none;
font-size: 0.9375rem;
transition: color 0.2s;
}
.footer-links a:hover {
color: white;
}
.footer-bottom {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1.5rem;
font-size: 0.875rem;
color: var(--text-light);
}
.footer-bottom p {
margin: 0;
}
.footer-social {
display: flex;
gap: 1.25rem;
align-items: center;
}
.social-link {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
color: white;
text-decoration: none;
transition: all 0.2s;
}
.social-link:hover {
background: var(--primary);
transform: translateY(-2px);
}
.social-link svg {
width: 18px;
height: 18px;
}
/* ===========================
CARD COMPONENTS
=========================== */
.card {
background: var(--bg-primary);
border: 1px solid var(--border);
border-radius: 0.75rem;
padding: 1.5rem;
box-shadow: var(--shadow-sm);
transition: all 0.2s;
}
.card:hover {
box-shadow: var(--shadow-md);
border-color: var(--primary-light);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border);
}
.card-title {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
margin: 0;
}
.card-subtitle {
font-size: 0.875rem;
color: var(--text-secondary);
margin: 0.5rem 0 0;
}
.card-content {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.card-footer {
margin-top: 1.5rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
display: flex;
justify-content: flex-end;
gap: 1rem;
}
/* Card variants */
.card-primary {
border-color: var(--primary-light);
background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
}
.card-success {
border-color: var(--success-light);
background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
}
.card-warning {
border-color: var(--warning-light);
background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
}
.card-danger {
border-color: var(--danger-light);
background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
}
/* ===========================
TABLE COMPONENTS
=========================== */
.table-wrapper {
overflow-x: auto;
border-radius: 0.75rem;
border: 1px solid var(--border);
}
table {
width: 100%;
border-collapse: collapse;
background: var(--bg-primary);
}
thead {
background: var(--bg-secondary);
border-bottom: 2px solid var(--border);
}
th {
padding: 1rem;
text-align: left;
font-weight: 600;
font-size: 0.875rem;
color: var(--text-primary);
text-transform: uppercase;
letter-spacing: 0.05em;
}
td {
padding: 1rem;
border-bottom: 1px solid var(--border);
font-size: 0.9375rem;
color: var(--text-primary);
}
tbody tr:hover {
background: var(--bg-secondary);
}
tbody tr:last-child td {
border-bottom: none;
}
/* Table actions */
.table-actions {
display: flex;
gap: 0.75rem;
align-items: center;
}
.table-action-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border: 1px solid var(--border);
background: var(--bg-primary);
border-radius: 0.375rem;
cursor: pointer;
transition: all 0.2s;
padding: 0;
}
.table-action-btn:hover {
border-color: var(--primary);
color: var(--primary);
background: var(--primary);
background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(30, 64, 175, 0.05) 100%);
}
.table-action-btn svg {
width: 16px;
height: 16px;
}
/* ===========================
FORM ELEMENTS
=========================== */
.form-group {
margin-bottom: 1.5rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
label {
font-weight: 500;
color: var(--text-primary);
font-size: 0.9375rem;
}
.label-required::after {
content: ' *';
color: var(--danger);
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
textarea,
select {
padding: 0.75rem 1rem;
border: 1px solid var(--border);
border-radius: 0.5rem;
font-family: inherit;
font-size: 0.9375rem;
color: var(--text-primary);
background: var(--bg-primary);
transition: all 0.2s;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
textarea {
resize: vertical;
min-height: 120px;
}
input[type="text"]:disabled,
input[type="email"]:disabled,
select:disabled {
background: var(--bg-secondary);
color: var(--text-light);
cursor: not-allowed;
}
/* Form error state */
input.error,
textarea.error,
select.error {
border-color: var(--danger);
background: rgba(239, 68, 68, 0.02);
}
input.error:focus,
textarea.error:focus,
select.error:focus {
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.form-error {
font-size: 0.8125rem;
color: var(--danger);
margin-top: 0.25rem;
}
.form-hint {
font-size: 0.8125rem;
color: var(--text-secondary);
margin-top: 0.25rem;
}
/* Select dropdown */
select {
appearance: none;
padding-right: 2.5rem;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 0.75rem center;
background-size: 1.25rem;
padding-right: 2.5rem;
}
/* Form layouts */
.form-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
}
.form-row-2 {
grid-template-columns: repeat(2, 1fr);
}
/* ===========================
BUTTON VARIANTS
=========================== */
.btn {
display: inline-block;
padding: 0.75rem 1.5rem;
border-radius: 0.5rem;
font-weight: 600;
text-decoration: none;
text-align: center;
transition: all 0.2s;
border: none;
cursor: pointer;
font-size: 0.9375rem;
line-height: 1.5;
white-space: nowrap;
user-select: none;
}
.btn-primary {
background: var(--primary);
color: white;
}
.btn-primary:hover {
background: var(--primary-dark);
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}
.btn-primary:active {
transform: translateY(0);
}
.btn-primary:disabled {
background: var(--text-light);
cursor: not-allowed;
transform: none;
}
.btn-secondary {
background: var(--bg-secondary);
color: var(--text-primary);
border: 1px solid var(--border);
}
.btn-secondary:hover {
background: var(--bg-alt);
border-color: var(--primary);
}
.btn-outline {
background: transparent;
color: var(--primary);
border: 2px solid var(--primary);
}
.btn-outline:hover {
background: var(--primary);
color: white;
}
.btn-danger {
background: var(--danger);
color: white;
}
.btn-danger:hover {
background: #dc2626;
}
.btn-success {
background: var(--success);
color: white;
}
.btn-success:hover {
background: #059669;
}
.btn-warning {
background: var(--warning);
color: white;
}
.btn-warning:hover {
background: #d97706;
}
/* Button sizes */
.btn-sm {
padding: 0.5rem 1rem;
font-size: 0.8125rem;
}
.btn-lg {
padding: 0.875rem 2rem;
font-size: 1rem;
}
.btn-block {
display: block;
width: 100%;
}
.btn-icon {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem 1.25rem;
}
.btn-icon svg {
width: 1.25rem;
height: 1.25rem;
}
/* ===========================
BADGES & TAGS
=========================== */
.badge {
display: inline-block;
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.badge-primary {
background: rgba(30, 64, 175, 0.15);
color: var(--primary);
}
.badge-success {
background: rgba(16, 185, 129, 0.15);
color: var(--success);
}
.badge-warning {
background: rgba(245, 158, 11, 0.15);
color: var(--warning);
}
.badge-danger {
background: rgba(239, 68, 68, 0.15);
color: var(--danger);
}
.badge-info {
background: rgba(59, 130, 246, 0.15);
color: var(--info);
}
.badge-neutral {
background: rgba(107, 114, 128, 0.15);
color: var(--text-secondary);
}
/* Tags */
.tag {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.375rem 0.875rem;
border-radius: 0.375rem;
font-size: 0.8125rem;
font-weight: 500;
background: var(--bg-secondary);
border: 1px solid var(--border);
color: var(--text-primary);
transition: all 0.2s;
}
.tag:hover {
border-color: var(--primary);
background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(30, 64, 175, 0.02) 100%);
}
.tag-removable {
cursor: pointer;
padding-right: 0.5rem;
}
.tag-close {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
margin-left: 0.25rem;
cursor: pointer;
opacity: 0.6;
transition: opacity 0.2s;
}
.tag-close:hover {
opacity: 1;
}
/* ===========================
ALERTS & NOTIFICATIONS
=========================== */
.alert {
padding: 1rem 1.5rem;
border-radius: 0.5rem;
border-left: 4px solid;
display: flex;
gap: 1rem;
align-items: flex-start;
margin-bottom: 1rem;
}
.alert-success {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
border-left-color: var(--success);
color: var(--success);
}
.alert-error,
.alert-danger {
background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
border-left-color: var(--danger);
color: var(--danger);
}
.alert-warning {
background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
border-left-color: var(--warning);
color: var(--warning);
}
.alert-info {
background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
border-left-color: var(--info);
color: var(--info);
}
.alert-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
flex-shrink: 0;
margin-top: 0.125rem;
}
.alert-content {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.alert-title {
font-weight: 600;
font-size: 0.9375rem;
}
.alert-message {
font-size: 0.875rem;
opacity: 0.9;
}
.alert-close {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
background: none;
border: none;
cursor: pointer;
opacity: 0.6;
transition: opacity 0.2s;
padding: 0;
flex-shrink: 0;
margin-top: -0.25rem;
}
.alert-close:hover {
opacity: 1;
}
/* ===========================
LOADING STATES
=========================== */
.spinner {
display: inline-block;
width: 1.25rem;
height: 1.25rem;
border: 2px solid rgba(30, 64, 175, 0.1);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.spinner-sm {
width: 1rem;
height: 1rem;
}
.spinner-lg {
width: 2rem;
height: 2rem;
}
.spinner-dark {
border-color: rgba(0, 0, 0, 0.1);
border-top-color: var(--text-primary);
}
.loading {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
padding: 2rem;
color: var(--text-secondary);
font-size: 0.9375rem;
}
.skeleton {
background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-alt) 50%, var(--bg-secondary) 100%);
background-size: 200% 100%;
animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
.skeleton-text {
height: 1rem;
border-radius: 0.375rem;
margin-bottom: 0.75rem;
}
.skeleton-text-sm {
height: 0.75rem;
}
.skeleton-text-lg {
height: 1.25rem;
}
/* ===========================
EMPTY STATES
=========================== */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 3rem 1.5rem;
text-align: center;
gap: 1rem;
}
.empty-state-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
border-radius: 50%;
background: var(--bg-secondary);
color: var(--text-secondary);
}
.empty-state-icon svg {
width: 32px;
height: 32px;
}
.empty-state-title {
font-size: 1.125rem;
font-weight: 600;
color: var(--text-primary);
margin: 0;
}
.empty-state-desc {
font-size: 0.9375rem;
color: var(--text-secondary);
max-width: 400px;
margin: 0;
}
.empty-state-actions {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
margin-top: 1rem;
}
/* ===========================
DASHBOARD GRID LAYOUTS
=========================== */
.app-container {
max-width: 1400px;
margin: 0 auto;
padding: 2rem 1.5rem;
}
.page-header {
margin-bottom: 2rem;
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-wrap: wrap;
gap: 1.5rem;
}
.page-title {
font-size: 1.875rem;
font-weight: 700;
color: var(--text-primary);
margin: 0;
}
.page-subtitle {
font-size: 0.9375rem;
color: var(--text-secondary);
margin: 0.5rem 0 0;
}
.page-actions {
display: flex;
gap: 1rem;
align-items: center;
}
/* Grid layouts */
.grid {
display: grid;
gap: 1.5rem;
}
.grid-2 {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-3 {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.grid-4 {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.grid-cols-1 {
grid-template-columns: 1fr;
}
.grid-cols-2 {
grid-template-columns: repeat(2, 1fr);
}
.grid-cols-3 {
grid-template-columns: repeat(3, 1fr);
}
.grid-cols-4 {
grid-template-columns: repeat(4, 1fr);
}
/* Dashboard stat card */
.stat-card {
background: var(--bg-primary);
border: 1px solid var(--border);
border-radius: 0.75rem;
padding: 1.5rem;
box-shadow: var(--shadow-sm);
transition: all 0.2s;
}
.stat-card:hover {
box-shadow: var(--shadow-md);
border-color: var(--primary-light);
}
.stat-label {
font-size: 0.875rem;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
font-weight: 600;
margin-bottom: 0.75rem;
}
.stat-value {
font-size: 2rem;
font-weight: 700;
color: var(--text-primary);
line-height: 1;
margin-bottom: 1rem;
}
.stat-change {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.8125rem;
font-weight: 600;
}
.stat-change.positive {
color: var(--success);
}
.stat-change.negative {
color: var(--danger);
}
/* ===========================
SIDEBAR NAVIGATION (if needed)
=========================== */
.app-layout {
display: flex;
min-height: 100vh;
padding-top: 72px;
}
.app-sidebar {
width: 250px;
background: var(--bg-primary);
border-right: 1px solid var(--border);
padding: 2rem 0;
position: sticky;
top: 72px;
height: calc(100vh - 72px);
overflow-y: auto;
}
.sidebar-item {
display: block;
padding: 0.75rem 1.5rem;
color: var(--text-secondary);
text-decoration: none;
font-weight: 500;
font-size: 0.9375rem;
transition: all 0.2s;
border-left: 3px solid transparent;
margin: 0 0.75rem;
border-radius: 0 0.375rem 0.375rem 0;
}
.sidebar-item:hover {
color: var(--primary);
background: var(--bg-secondary);
}
.sidebar-item.active {
color: var(--primary);
background: linear-gradient(90deg, rgba(30, 64, 175, 0.1) 0%, rgba(30, 64, 175, 0.05) 100%);
border-left-color: var(--primary);
font-weight: 600;
}
.app-content {
flex: 1;
}
/* ===========================
RESPONSIVE DESIGN
=========================== */
@media (max-width: 768px) {
.nav-menu {
position: fixed;
top: 72px;
left: 0;
right: 0;
flex-direction: column;
background: var(--bg-primary);
border-bottom: 1px solid var(--border);
max-height: 0;
overflow: hidden;
transition: max-height 0.3s;
z-index: 999;
}
.nav-menu-wrapper.active .nav-menu {
max-height: 500px;
}
.nav-link {
border-radius: 0;
padding: 1rem 1.5rem;
border-left: 3px solid transparent;
margin: 0;
}
.nav-link.active {
border-left-color: var(--primary);
background: var(--bg-secondary);
}
.nav-link.active::after {
display: none;
}
.mobile-menu-toggle {
display: flex;
}
.page-header {
flex-direction: column;
align-items: stretch;
}
.page-actions {
width: 100%;
flex-direction: column;
}
.page-actions .btn {
width: 100%;
}
.grid-2,
.grid-3,
.grid-4 {
grid-template-columns: 1fr;
}
.grid-cols-2,
.grid-cols-3,
.grid-cols-4 {
grid-template-columns: 1fr;
}
.table-wrapper {
font-size: 0.875rem;
}
th,
td {
padding: 0.75rem;
}
.form-row-2 {
grid-template-columns: 1fr;
}
.app-sidebar {
display: none;
}
.footer-bottom {
flex-direction: column;
align-items: flex-start;
}
.footer-social {
width: 100%;
justify-content: flex-start;
}
}
@media (max-width: 480px) {
.app-container {
padding: 1rem;
}
.page-title {
font-size: 1.5rem;
}
.card {
padding: 1rem;
}
.btn {
padding: 0.625rem 1rem;
font-size: 0.875rem;
}
.form-group {
margin-bottom: 1rem;
}
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
padding: 0.625rem 0.75rem;
font-size: 1rem; /* Prevents zoom on iOS */
}
table {
font-size: 0.8125rem;
}
th,
td {
padding: 0.5rem;
}
.stat-value {
font-size: 1.5rem;
}
.alert {
flex-direction: column;
}
.user-email {
display: none;
}
}
/* ===========================
UTILITY CLASSES
=========================== */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--bg-secondary); }
.hidden { display: none; }
.visible { display: block; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.line-clamp-3 {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}