/* General Styles */
body {
    font-family: Verdana, Geneva, sans-serif, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffff;
}

h1 {
    font-family: var(--font-h1);
    font-weight: 700;
    font-size: 40px;
    line-height: 56px;
    letter-spacing: -0.04em;
    margin-bottom: 1.2em;
}

h1, h2, h3, h5, h6 {
    margin: 0;
    padding: 10px 0;
}

h4 {
    padding: 10px 0;
    margin-bottom: 0.6em;
}

p a {
    color: #e41b13;
    text-decoration: none;
}

th a {
    color: #e41b13;
    text-decoration: none;
}

p a:hover,
p a:active {
    text-decoration: underline;
}

/* Header Styles */
header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

header a {
    color: #fff;
    text-decoration: none;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: center;
    background: #444;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav a {
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
}

nav a:hover,
nav a:active {
    color: #e41b13 !important;
}

/* Main Content Styles */
main {
    padding: 20px;
    margin-top: 70px; /* Adjust this value based on the height of your navbar */
}

/* Footer Styles */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Top Section Styles */
.top-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.top-section h2 {
    color: #0d6efd;
}

.top-section p {
    margin: 0;
}

/* Section Styles */
.section {
    margin: 20px 0;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

/* Action Button Styles */
.action-button {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}

/* Field Group Styles */
.field-group {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.field-group h4 {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Measurement Field Styles */
.measurement-field {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Additional Styles */
.logo {
    max-width: 100px;
}

.menu {
    display: flex;
    gap: 20px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.menu a:hover,
.menu a:active {
    text-decoration: underline;
}

.intro-text {
    margin: 20px 0;
    text-align: center;
}

.module-tile {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.module-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.module-icon {
    font-size: 40px;
    color: #007bff;
}

/* Custom Button Styles */
.btn-custom {
    background-color: #e41b13;
    color: white;
    text-align: center;
    border: none;
    border-radius: 0;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-custom:hover,
.btn-custom:active {
    background-color: #e41b13;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: #e41b13;
    border: none;
}

.btn-primary:hover,
.btn-primary:active {
    background-color: #e41b13;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Custom Secondary Button Styles */
.btn-custom-secondary {
    background-color: #6c757d;
    color: white;
    text-align: center;
    border: none;
    border-radius: 0;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-custom-secondary:hover,
.btn-custom-secondary:active {
    background-color: #5a6268;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-custom-secondary:disabled {
    background-color: #6c757d;
    color: white;
    border: none;
    box-shadow: none;
    opacity: 0.65;
}

/* Back Button Styles */
.back-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    width: 30px;
    height: 30px;
    background: url('/static/back.png') no-repeat center center;
    background-size: contain;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: filter 0.3s, background-color 0.3s;
    background-color: #fff;
}

.back-button:hover,
.back-button:active {
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.3);
    filter: invert(1);
}