srv/styles.css
2024-12-30 02:56:16 +02:00

399 lines
8.4 KiB
CSS

:root {
--primary: #3b82f6;
--primary-dark: #2563eb;
--secondary: #10b981;
--background: #f8fafc;
--surface: #ffffff;
--text: #1e293b;
--text-secondary: #64748b;
--border: #e2e8f0;
--card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--card-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.dark-theme {
--background: #0f172a;
--surface: #1e293b;
--text: #f8fafc;
--text-secondary: #94a3b8;
--border: #334155;
--card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.2), 0 2px 4px -2px rgb(0 0 0 / 0.2);
--card-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.2);
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: var(--background);
color: var(--text);
transition: background-color 0.3s, color 0.3s;
min-height: 100vh;
display: flex;
flex-direction: column;
margin: 0;
}
/* Navbar */
.navbar {
background: var(--surface);
border-bottom: 1px solid var(--border);
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 1000;
backdrop-filter: blur(10px);
}
.container {
max-width: 1280px;
margin: 0 auto;
padding: 0 1.5rem;
}
.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.navbar-brand {
display: flex;
align-items: center;
gap: 0.75rem;
color: var(--text);
text-decoration: none;
font-size: 1.25rem;
}
.navbar-brand i {
font-size: 1.5rem;
color: var(--primary);
}
.gradient-text {
background: linear-gradient(135deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-weight: bold;
}
.theme-toggle {
background: none;
border: none;
color: var(--text);
font-size: 1.2rem;
cursor: pointer;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.3s;
}
.theme-toggle:hover {
background-color: var(--border);
}
/* Dashboard */
.dashboard-container {
flex: 1;
padding: 2rem 0;
}
/* Welcome Card */
.welcome-card {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
padding: 3rem;
border-radius: 1.5rem;
margin-bottom: 2.5rem;
position: relative;
overflow: hidden;
box-shadow: var(--card-shadow-hover);
}
.welcome-card::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
transform: rotate(-45deg);
animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
0% {
transform: rotate(-45deg) scale(1);
opacity: 0.5;
}
50% {
transform: rotate(-45deg) scale(1.2);
opacity: 0.8;
}
100% {
transform: rotate(-45deg) scale(1);
opacity: 0.5;
}
}
.welcome-card h1 {
font-size: 2.5rem;
margin: 0 0 0.5rem;
position: relative;
font-weight: 800;
}
.welcome-card p {
font-size: 1.25rem;
opacity: 0.9;
margin: 0;
position: relative;
}
/* Services Grid */
.services-grid {
display: grid;
gap: 2rem;
}
.service-section {
background: var(--surface);
border-radius: 1.75rem;
padding: 2.5rem;
border: 1px solid var(--border);
transition: all 0.4s ease;
box-shadow: var(--card-shadow);
position: relative;
overflow: hidden;
}
.service-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(to right, var(--primary), var(--secondary));
opacity: 0;
transition: opacity 0.4s ease;
}
.service-section:hover::before {
opacity: 1;
}
.service-section:hover {
transform: translateY(-8px);
box-shadow: var(--card-shadow-hover);
}
.section-title {
font-size: 1.85rem;
color: var(--text);
margin-bottom: 2.5rem;
display: flex;
align-items: center;
gap: 1rem;
font-weight: 800;
position: relative;
padding-bottom: 0.75rem;
letter-spacing: -0.02em;
}
.section-title i {
font-size: 2.2rem;
background: linear-gradient(135deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.cards-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
}
/* Service Card */
.service-card {
display: flex;
align-items: center;
padding: 1.75rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 1.25rem;
text-decoration: none;
color: var(--text);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.service-card:hover {
transform: translateY(-6px);
box-shadow: var(--card-shadow-hover);
border-color: var(--primary);
background: linear-gradient(145deg, var(--surface), var(--background));
}
.service-card:hover .card-arrow i {
transform: translateX(6px);
opacity: 1;
color: var(--primary);
}
.card-icon {
width: 56px;
height: 56px;
margin-right: 1.25rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 16px;
background: var(--background);
transition: all 0.4s ease;
position: relative;
overflow: hidden;
}
.service-card:hover .card-icon {
transform: scale(1.1) rotate(5deg);
box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}
.service-card:hover .svg-icon {
transform: scale(1.15);
filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}
.svg-icon {
width: 38px;
height: 38px;
transition: all 0.4s ease;
}
.card-content {
flex: 1;
transition: transform 0.3s ease;
}
.service-card:hover .card-content {
transform: translateX(4px);
}
.card-content h3 {
margin: 0;
font-size: 1.2rem;
font-weight: 700;
color: var(--text);
letter-spacing: -0.01em;
transition: color 0.3s ease;
}
.service-card:hover .card-content h3 {
color: var(--primary);
}
.card-content p {
margin: 0.35rem 0 0;
font-size: 0.95rem;
color: var(--text-secondary);
transition: color 0.3s ease;
}
.service-card:hover .card-content p {
color: var(--primary-dark);
}
.card-arrow {
margin-left: 1.25rem;
opacity: 0.5;
transition: all 0.4s ease;
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 50%;
}
.service-card:hover .card-arrow {
background: rgba(59, 130, 246, 0.1);
}
.card-arrow i {
font-size: 1.25rem;
transition: all 0.4s ease;
}
/* Custom Service Colors */
.proxmox .svg-icon { filter: hue-rotate(15deg) saturate(1.2); }
.proxmox-backup .svg-icon { filter: hue-rotate(30deg) saturate(1.2); }
.synology .svg-icon { filter: hue-rotate(45deg) saturate(1.2); }
.nginx-proxy-manager .svg-icon { filter: hue-rotate(60deg) saturate(1.2); }
.openwrt .svg-icon { filter: hue-rotate(75deg) saturate(1.2); }
.cloudflare .svg-icon { filter: hue-rotate(90deg) saturate(1.2); }
.wireguard .svg-icon { filter: hue-rotate(105deg) saturate(1.2); }
.adguard .svg-icon { filter: hue-rotate(120deg) saturate(1.2); }
.pihole .svg-icon { filter: hue-rotate(135deg) saturate(1.2); }
.portainer .svg-icon { filter: hue-rotate(150deg) saturate(1.2); }
.n8n .svg-icon { filter: hue-rotate(165deg) saturate(1.2); }
.aapanel .svg-icon { filter: hue-rotate(180deg) saturate(1.2); }
.kavita .svg-icon { filter: hue-rotate(195deg) saturate(1.2); }
/* Footer */
.footer {
background: var(--surface);
border-top: 1px solid var(--border);
padding: 1.5rem 0;
text-align: center;
color: var(--text-secondary);
}
/* Responsive Design */
@media (max-width: 768px) {
.cards-grid {
grid-template-columns: 1fr;
}
.welcome-card {
text-align: center;
padding: 2rem;
}
.welcome-card h1 {
font-size: 2rem;
}
.service-section {
margin-bottom: 1rem;
padding: 1.5rem;
}
.section-title {
font-size: 1.25rem;
}
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.service-section {
animation: fadeIn 0.5s ease-out;
}