/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: black;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
main {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
form {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.form-section {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-section h2 {
    margin-bottom: 8px;
}
.form-subsection label {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size: 14px;
}
input, select {
    padding: 8px;
    font-size: 14px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
button, a.button {
    background-color: #003f7d;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    display: inline-flex;
    min-width: 150px;
    max-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    box-sizing: border-box;
    text-decoration: none;
}

.success-message {
    background-color: #e7f4e4;
    color: #2d662d;
    padding: 10px 20px;
    border: 1px solid #b5ddb1;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Hover over information in table */
tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #f2f2f2;
}

/* Header */
header {
    padding: 20px 0;
}
.header-logo img {
    height: 80px;
    display: block;
}
.header-content {
    display: flex;
    align-items: center;
    gap: 40px; /* afstand mellem logo og tekst */
}
nav a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}
.header-logout {
    margin-left:auto
}
.header-logout a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}
.header-logout a:hover {
    color: #003f7d;
}

/* Customer Frontpage */
.intro-with-image {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}
.intro-text {
    flex: 1;
    line-height: 1.4;
}
.intro-text h1 {
    font-size: 24px;
    margin-bottom: 16px;
}
.intro-image {
    flex: 1;
}
.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
}
@media (max-width: 900px) { /* Adjust layout for smaller screens (e.g., tablets and mobiles) */
    .intro-with-image {
        flex-direction: column-reverse; /* picture above text */
    }
}
.sketch-section {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}
.sketch-section img {
    width: 100%;
    max-width: 400px;
}
.price-section {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin-top: 40px;
    margin-bottom: 60px;
}
.price-section h2 {
    margin-bottom: 8px;
}
.price-section strong {
    font-size: 18px;
    color: black;
}

/* SVG */
.carport-svg-topview svg {
    max-width: 100%;
    width: auto;
    height: auto;
}

/* Admin Orders Table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}
.orders-table th,
.orders-table td {
    padding: 12px 8px;       /* space inside each cell */
    text-align: left;        /* all text flush to the left */
    vertical-align: middle;  /* center rows vertically */
    border-bottom: 1px solid #ddd;
}
.orders-table th:first-child,
.orders-table td:first-child {
    width: 40px;             /* reserve room for the status bullet */
    text-align: center;      /* center the bullet */
}

/* Admin navigation menu */
.admin-nav {
    display: flex;
    gap: 2.5rem;
}
.admin-nav a {
    font-weight: bold;
    text-decoration: none;
}
.admin-nav a:hover {
    color: #003f7d;
}

/* Admin login */
.login-form {
    max-width: 400px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 5px;
}
.login-fields {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.login-fields .form-group {
    flex: 1;
    min-width: 160px;
}

/* All orders / alle-ordrer.html */
.orders-section {
    margin-top: 30px;
}
.orders-header {
    display:flex;
    align-items:center;
    gap:1rem;
    margin-bottom:1rem;
}
.orders-filters {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}
.filter-dropdown {
    border: none;
    background: none;
    appearance: none;         /* fjerner standardpil i mange browsere */
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 1rem;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    padding-right: 20px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

/* Ordre-oversigt.html before it is sent to customer*/
.customer-summary {
    display: flex;
    justify-content: space-between;
    line-height: 1.8;
}
.contact-info {
    text-align: right;
}
.message-section {
    max-width: 600px;
    line-height: 1.6;
}
.carport-details {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}
.price-section-order-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}
.final-message {
    line-height: 1.6;
}

/* Ordre-detaljer */
.seller-customer-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.seller-section {
    text-align: right;
    min-width: 200px;
    margin-top: 15px;
}
.customer-section-details {
    line-height: 1.8;
}
.order-status-date-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 30px;
}
.carport-form {
    width: 50%;
    line-height: 2;
}
.carport-form h2 {
    margin-top: 50px;
}
.sketch-section h2 {
    margin-top: 50px;
    line-height: 2;
}
.carport-and-sketch {
    display: flex;
    gap: 3rem; /* eller hvad der ser godt ud */
    align-items: flex-start; /* så toppen af begge sektioner flugter */
}
.carport-and-sketch .form-section,
.carport-and-sketch .sketch-section {
    flex: 1; /* gør dem lige brede - kan også justeres til fx 2 og 1 */
}
.material-list-section {
    width: 100%;
    border-collapse: collapse;
    margin-top: 50px;
}
.material-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}
.material-table th,
.material-table td {
    padding: 10px 14px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #ccc;
}
.material-table thead {
    font-weight: bold;
}
.price-and-calc-row {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 70px;
}
.price-row p {
    font-weight: bold;
}

/* Footer */
footer {
    border-top: 1px solid #ccc;
    font-size: 14px;
    padding: 40px 0 60px 20px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}