Files
ai-recruit-site-template/public/css/styles.css
Mikael Westöö 406d278a39 Initial commit: AI Recruitment Site for Ryans Recruit Firm
- Complete PostgreSQL schema with migrations
- Node.js/Express backend with authentication
- Public website (home, about, services, jobs, apply, contact)
- Admin dashboard with applicant and job management
- CV upload and storage in PostgreSQL BYTEA
- Docker Compose setup for deployment
- Session-based authentication
- Responsive design with Ryan brand colors
2026-01-23 21:17:24 +01:00

618 lines
10 KiB
CSS

/* AI Recruitment Site - Global Styles */
:root {
/* Ryan Brand Colors */
--primary-color: #2563EB; /* Ryan Blue */
--primary-dark: #1e40af;
--primary-light: #3b82f6;
--secondary-color: #1E293B; /* Dark */
--accent-color: #059669; /* Ryan Green */
--text-dark: #1E293B;
--text-light: #64748B; /* Gray */
--bg-light: #F8FAFC; /* Light */
--bg-white: #ffffff;
--border-color: #E2E8F0; /* Border */
--success: #059669; /* Ryan Green */
--warning: #F59E0B; /* Warning Orange */
--error: #DC2626; /* Error Red */
--info: #0EA5E9; /* Info Blue */
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
/* Spacing System - 8px base */
--spacing-1: 8px;
--spacing-2: 16px;
--spacing-3: 24px;
--spacing-4: 32px;
--spacing-5: 40px;
--spacing-6: 48px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: var(--text-dark);
background-color: var(--bg-light);
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
line-height: 1.2;
margin-bottom: 1rem;
color: var(--secondary-color);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }
p {
margin-bottom: 1rem;
color: var(--text-light);
}
a {
color: var(--primary-color);
text-decoration: none;
transition: color 0.2s;
}
a:hover {
color: var(--primary-dark);
}
/* Container */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
.container-narrow {
max-width: 900px;
margin: 0 auto;
padding: 0 2rem;
}
/* Header & Navigation */
header {
background: var(--bg-white);
box-shadow: var(--shadow-sm);
position: sticky;
top: 0;
z-index: 1000;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
}
.logo {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-color);
}
.nav-links {
display: flex;
list-style: none;
gap: 2rem;
align-items: center;
}
.nav-links a {
color: var(--text-dark);
font-weight: 500;
transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
color: var(--primary-color);
}
/* Hero Section */
.hero {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
color: white;
padding: 5rem 0;
text-align: center;
}
.hero h1 {
color: white;
font-size: 3rem;
margin-bottom: 1rem;
}
.hero p {
color: rgba(255, 255, 255, 0.9);
font-size: 1.25rem;
margin-bottom: 2rem;
}
/* Buttons */
.btn {
display: inline-block;
padding: 0.75rem 1.5rem;
border: none;
border-radius: 0.5rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
text-align: center;
}
.btn-primary {
background: var(--primary-color);
color: white;
}
.btn-primary:hover {
background: var(--primary-dark);
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.btn-secondary {
background: var(--bg-white);
color: var(--primary-color);
border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
background: var(--primary-color);
color: white;
}
.btn-success {
background: var(--success);
color: white;
}
.btn-success:hover {
background: #059669;
}
.btn-danger {
background: var(--error);
color: white;
}
.btn-danger:hover {
background: #dc2626;
}
.btn-sm {
padding: 0.5rem 1rem;
font-size: 0.875rem;
}
.btn-lg {
padding: 1rem 2rem;
font-size: 1.125rem;
}
/* Cards */
.card {
background: var(--bg-white);
border-radius: 0.5rem;
padding: 2rem;
box-shadow: var(--shadow-md);
transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
}
.card-header {
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 2px solid var(--border-color);
}
.card-title {
font-size: 1.5rem;
color: var(--secondary-color);
margin-bottom: 0.5rem;
}
.card-subtitle {
color: var(--text-light);
font-size: 0.875rem;
}
/* Grid System */
.grid {
display: grid;
gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
.grid-2, .grid-3, .grid-4 {
grid-template-columns: 1fr;
}
}
/* Sections */
section {
padding: 4rem 0;
}
.section-title {
text-align: center;
margin-bottom: 3rem;
}
.section-title h2 {
font-size: 2.5rem;
margin-bottom: 0.5rem;
}
.section-title p {
font-size: 1.125rem;
color: var(--text-light);
}
/* Forms */
.form-group {
margin-bottom: 1.5rem;
}
label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: var(--text-dark);
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="file"],
select,
textarea {
width: 100%;
padding: 0.75rem;
border: 2px solid var(--border-color);
border-radius: 0.5rem;
font-size: 1rem;
transition: border-color 0.2s;
font-family: inherit;
}
input:focus,
select:focus,
textarea:focus {
outline: none;
border-color: var(--primary-color);
}
textarea {
resize: vertical;
min-height: 120px;
}
.form-error {
color: var(--error);
font-size: 0.875rem;
margin-top: 0.25rem;
}
.form-help {
color: var(--text-light);
font-size: 0.875rem;
margin-top: 0.25rem;
}
/* Job Listing */
.job-card {
background: var(--bg-white);
border-radius: 0.5rem;
padding: 2rem;
box-shadow: var(--shadow-md);
margin-bottom: 1.5rem;
transition: transform 0.2s, box-shadow 0.2s;
}
.job-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
.job-header {
display: flex;
justify-content: space-between;
align-items: start;
margin-bottom: 1rem;
}
.job-title {
font-size: 1.5rem;
color: var(--secondary-color);
margin-bottom: 0.5rem;
}
.job-meta {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin-bottom: 1rem;
font-size: 0.875rem;
color: var(--text-light);
}
.job-meta-item {
display: flex;
align-items: center;
gap: 0.5rem;
}
.job-description {
color: var(--text-light);
margin-bottom: 1rem;
line-height: 1.6;
}
.job-requirements {
margin-bottom: 1rem;
}
.job-requirements h4 {
font-size: 1rem;
margin-bottom: 0.5rem;
color: var(--text-dark);
}
.job-requirements ul {
padding-left: 1.5rem;
color: var(--text-light);
}
.job-requirements li {
margin-bottom: 0.25rem;
}
/* Tags/Badges */
.tag {
display: inline-block;
padding: 0.25rem 0.75rem;
border-radius: 1rem;
font-size: 0.875rem;
font-weight: 600;
}
.tag-primary {
background: rgba(37, 99, 235, 0.1);
color: var(--primary-color);
}
.tag-success {
background: rgba(16, 185, 129, 0.1);
color: var(--success);
}
.tag-warning {
background: rgba(245, 158, 11, 0.1);
color: var(--warning);
}
.tag-error {
background: rgba(239, 68, 68, 0.1);
color: var(--error);
}
/* Stats */
.stat-card {
background: var(--bg-white);
border-radius: 0.5rem;
padding: 1.5rem;
box-shadow: var(--shadow-md);
text-align: center;
}
.stat-value {
font-size: 2.5rem;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 0.5rem;
}
.stat-label {
color: var(--text-light);
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* Tables */
table {
width: 100%;
border-collapse: collapse;
background: var(--bg-white);
border-radius: 0.5rem;
overflow: hidden;
box-shadow: var(--shadow-md);
}
thead {
background: var(--bg-light);
}
th {
padding: 1rem;
text-align: left;
font-weight: 600;
color: var(--text-dark);
border-bottom: 2px solid var(--border-color);
}
td {
padding: 1rem;
border-bottom: 1px solid var(--border-color);
}
tr:last-child td {
border-bottom: none;
}
tr:hover {
background: var(--bg-light);
}
/* Alerts */
.alert {
padding: 1rem;
border-radius: 0.5rem;
margin-bottom: 1rem;
}
.alert-success {
background: rgba(16, 185, 129, 0.1);
color: var(--success);
border: 2px solid var(--success);
}
.alert-error {
background: rgba(239, 68, 68, 0.1);
color: var(--error);
border: 2px solid var(--error);
}
.alert-info {
background: rgba(37, 99, 235, 0.1);
color: var(--primary-color);
border: 2px solid var(--primary-color);
}
/* Footer */
footer {
background: var(--secondary-color);
color: white;
padding: 3rem 0 1rem;
margin-top: 4rem;
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}
.footer-section h3 {
color: white;
margin-bottom: 1rem;
}
.footer-section ul {
list-style: none;
}
.footer-section li {
margin-bottom: 0.5rem;
}
.footer-section a {
color: rgba(255, 255, 255, 0.8);
}
.footer-section a:hover {
color: white;
}
.footer-bottom {
text-align: center;
padding-top: 2rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.6);
}
/* Loading */
.loading {
display: inline-block;
width: 1rem;
height: 1rem;
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: white;
animation: spin 0.6s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none; }
/* Responsive */
@media (max-width: 768px) {
.container {
padding: 0 1rem;
}
.hero h1 {
font-size: 2rem;
}
.hero p {
font-size: 1rem;
}
.nav-links {
gap: 1rem;
font-size: 0.875rem;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
.job-header {
flex-direction: column;
}
.footer-content {
grid-template-columns: 1fr;
}
}