AICertification/app/flask-postgres/styles/site.css

378 lines
5.9 KiB
CSS

/* =========================
1. RESET & BASE
========================= */
* {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
}
body {
background: linear-gradient(180deg, #07192d 0%, #102a45 100%);
color: #ffffff;
min-height: 100vh;
}
/* =========================
2. LAYOUT (HEADER / CONTENT)
========================= */
.site-header {
background: rgba(4, 18, 33, 0.96);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
position: sticky;
top: 0;
z-index: 100;
}
.header-inner {
max-width: 1320px;
margin: 0 auto;
padding: 14px 24px;
display: flex;
align-items: center;
justify-content: space-between;
}
.content-area {
padding: 40px 20px;
}
.content-box {
max-width: 1200px;
margin: 0 auto;
background: #ffffff;
color: #1b2430;
border-radius: 16px;
padding: 32px;
box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}
/* =========================
3. TYPOGRAPHY
========================= */
h1, h2, h3 {
color: #0d2f57;
margin-top: 0;
}
p {
color: #2f3b4a;
}
/* =========================
4. NAVIGATION
========================= */
.site-logo {
height: 60px;
}
.top-nav {
display: flex;
align-items: center;
gap: 8px;
}
.top-nav a {
color: #ffffff;
text-decoration: none;
font-weight: 600;
padding: 10px 18px;
border-radius: 999px;
min-width: 110px;
text-align: center;
transition: background 0.2s ease;
}
.top-nav a:hover,
.top-nav a.active {
background: #376da6;
}
/* USER MENU */
.user-menu {
position: relative;
}
.user-menu-toggle {
background: #376da6;
color: #fff;
border: 0;
border-radius: 999px;
padding: 10px 18px;
font-weight: 600;
cursor: pointer;
}
.user-menu-dropdown {
display: none;
position: absolute;
right: 0;
top: 100%;
min-width: 180px;
background: #ffffff;
border-radius: 12px;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
overflow: hidden;
z-index: 200;
}
.user-menu-dropdown a {
display: block;
padding: 12px 16px;
color: #1b2430;
text-decoration: none;
}
.user-menu-dropdown a:hover {
background: #eef4fb;
color: #0d2f57;
}
.user-menu:hover .user-menu-dropdown,
.user-menu:focus-within .user-menu-dropdown {
display: block;
}
/* =========================
5. BUTTONS
========================= */
.btn-primary,
.btn-secondary {
display: inline-flex;
align-items: center;
justify-content: center;
height: 48px;
padding: 0 20px;
border-radius: 12px;
font-weight: 700;
text-decoration: none;
}
.btn-primary {
background: #1f5ea8;
color: #fff;
border: 1px solid #1f5ea8;
}
.btn-secondary {
background: #eef4fb;
color: #0d2f57;
border: 1px solid #dce3ea;
}
.btn-danger {
display: inline-flex;
align-items: center;
justify-content: center;
height: 48px;
padding: 0 20px;
border-radius: 12px;
font-weight: 700;
text-decoration: none;
box-sizing: border-box;
background: #b62323;
color: #fff;
border: 1px solid #b62323;
cursor: pointer;
}
.btn-small {
height: 40px;
min-width: 100px;
padding: 0 16px;
font-size: 14px;
border-radius: 10px;
}
/* =========================
BUTTON INTERACTION
========================= */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-small,
.user-menu-toggle,
button {
cursor: pointer;
}
/* =========================
6. FORMS
========================= */
.login-form .form-row {
margin-bottom: 16px;
}
.login-form label {
display: block;
margin-bottom: 6px;
font-weight: 600;
color: #0d2f57;
}
.login-form input {
width: 100%;
padding: 10px;
border-radius: 8px;
border: 1px solid #c9d2db;
}
/* =========================
7. FEEDBACK
========================= */
.error-box {
background: #ffe7e7;
color: #8d1d1d;
padding: 12px;
border-radius: 8px;
margin-bottom: 16px;
}
.success-box {
background: #e8f7e8;
color: #1f6b1f;
padding: 12px;
border-radius: 8px;
margin-bottom: 16px;
}
#mandant-create-error {
margin-bottom: 14px;
}
/* =========================
8. COMPONENTS
========================= */
.hero-box,
.pricing-section,
.info-section {
margin-bottom: 30px;
}
.two-col {
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 24px;
}
.image-panel img {
width: 100%;
border-radius: 12px;
}
/* =========================
9. ADMIN PANEL
========================= */
.admin-panel {
background: #f8fbff;
border: 1px solid #dce3ea;
border-radius: 18px;
padding: 24px;
margin-bottom: 24px;
}
.admin-actions {
display: flex;
gap: 16px;
margin-top: 16px;
}
/* =========================
ADMIN FORM LAYOUT
========================= */
.admin-grid-form {
display: grid;
grid-template-columns: 200px minmax(320px, 1fr);
gap: 14px 20px;
align-items: center;
max-width: 760px;
}
.admin-grid-form .form-row {
display: contents;
}
.admin-grid-form label {
margin: 0;
font-weight: 700;
color: #0d2f57;
}
.admin-grid-form input[type="text"],
.admin-grid-form input[type="email"],
.admin-grid-form input[type="number"] {
width: 100%;
min-height: 46px;
padding: 10px 12px;
border: 1px solid #cfd8e3;
border-radius: 10px;
font-size: 16px;
box-sizing: border-box;
}
.form-row-full {
grid-column: 1 / -1;
margin-top: 8px;
}
.table-actions .btn-primary,
.table-actions .btn-danger {
min-width: 110px;
}
/* =========================
10. TABLES
========================= */
.mandanten-table {
width: 100%;
border-collapse: collapse;
}
.mandanten-table th {
background: #eef4fb;
color: #0d2f57;
text-align: left;
padding: 14px;
}
.mandanten-table td {
padding: 14px;
border-bottom: 1px solid #e7edf3;
}
.mandanten-table tr:hover td {
background: #fbfdff;
}
/* =========================
11. RESPONSIVE
========================= */
@media (max-width: 900px) {
.two-col {
grid-template-columns: 1fr;
}
.header-inner {
flex-direction: column;
align-items: flex-start;
}
.top-nav a {
min-width: auto;
}
}