Files
quality_app-v2/app/static/css/base.css
2026-01-25 22:25:18 +02:00

353 lines
5.9 KiB
CSS

/* Base Styles */
:root {
--primary-color: #667eea;
--secondary-color: #764ba2;
--success-color: #48bb78;
--danger-color: #f56565;
--warning-color: #ed8936;
--info-color: #4299e1;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f7f9fc;
color: #333;
display: flex;
flex-direction: column;
margin: 0;
padding: 0;
height: 100%;
}
html {
height: 100%;
display: flex;
flex-direction: column;
margin: 0;
padding: 0;
}
/* Main Layout */
.main-content {
flex: 1;
display: block;
min-height: calc(100vh - 80px);
width: 100%;
padding-bottom: 120px;
}
.footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background-color: #f8f9fa;
border-top: 1px solid #dee2e6;
padding: 20px 0;
width: 100%;
z-index: 1000;
}
/* Navigation Bar */
.navbar-dark {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
font-weight: 700;
font-size: 20px;
letter-spacing: 0.5px;
}
.navbar-brand i {
margin-right: 8px;
}
/* Cards and Containers */
.card {
border: none;
border-radius: 12px;
transition: all 0.3s ease;
}
.card:hover {
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
/* Welcome Card */
.welcome-card {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border-radius: 12px;
box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}
.welcome-card h1 {
font-weight: 700;
margin-bottom: 10px;
}
/* Stat Cards */
.stat-card {
background: white;
border-radius: 12px;
padding: 20px;
display: flex;
align-items: center;
gap: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
}
.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.stat-icon {
width: 60px;
height: 60px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 24px;
}
.stat-content h3 {
margin: 0;
font-size: 28px;
font-weight: 700;
color: #333;
}
.stat-content p {
margin: 5px 0 0 0;
color: #999;
font-size: 14px;
}
/* Module Cards */
.module-card {
border: none;
border-radius: 12px;
transition: all 0.3s ease;
cursor: pointer;
}
.module-card:hover {
transform: translateY(-8px);
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}
.module-icon {
font-size: 48px;
transition: all 0.3s ease;
}
.module-card:hover .module-icon {
transform: scale(1.1);
}
.module-card .card-title {
font-weight: 700;
color: #333;
margin-top: 10px;
}
.module-card .card-text {
font-size: 14px;
}
/* Alerts */
.alert {
border: none;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.alert-success {
background-color: #f0fdf4;
color: #166534;
border-left: 4px solid #22c55e;
}
.alert-danger {
background-color: #fef2f2;
color: #991b1b;
border-left: 4px solid #ef4444;
}
.alert-warning {
background-color: #fffbeb;
color: #92400e;
border-left: 4px solid #f59e0b;
}
.alert-info {
background-color: #f0f9ff;
color: #0c2d6b;
border-left: 4px solid #3b82f6;
}
/* Buttons */
.btn {
border-radius: 8px;
font-weight: 600;
padding: 10px 20px;
transition: all 0.3s ease;
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
color: white;
}
.btn-success {
background-color: #48bb78;
border: none;
color: white;
}
.btn-success:hover {
background-color: #38a169;
color: white;
}
/* Tables */
.table {
border-collapse: collapse;
}
.table thead th {
background-color: #f8f9fa;
font-weight: 600;
color: #555;
border: none;
padding: 15px;
}
.table tbody td {
padding: 15px;
border-bottom: 1px solid #e0e0e0;
}
.table tbody tr:hover {
background-color: #f9f9f9;
}
/* Forms */
.form-control, .form-select {
border-radius: 8px;
border: 1px solid #e0e0e0;
padding: 10px 15px;
font-size: 15px;
transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.form-label {
font-weight: 600;
color: #555;
margin-bottom: 8px;
}
/* List Groups */
.list-group-item {
border: 1px solid #e0e0e0;
border-radius: 8px;
margin-bottom: 8px;
padding: 12px 16px;
transition: all 0.3s ease;
}
.list-group-item:first-child {
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
.list-group-item:last-child {
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
}
.list-group-item.active {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-color: #667eea;
color: white;
}
.list-group-item i {
margin-right: 10px;
width: 20px;
}
/* Hover Effects */
.hover-shadow {
transition: box-shadow 0.3s ease;
}
.hover-shadow:hover {
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}
/* Responsive */
@media (max-width: 768px) {
.main-content {
min-height: calc(100vh - 60px);
padding-bottom: 60px;
}
.stat-card {
flex-direction: column;
text-align: center;
padding: 15px;
}
.module-card {
margin-bottom: 15px;
}
.navbar-brand {
font-size: 18px;
}
}
@media (max-width: 480px) {
.navbar {
padding: 0.5rem 0;
}
.container, .container-fluid {
padding: 10px;
}
.card {
border-radius: 8px;
}
.btn {
padding: 8px 16px;
font-size: 14px;
}
}