﻿body {
    font-family: 'Segoe UI Light', 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    margin: 0;
    background-color: white;
    color: #222;
}

h1{
    font-size: 3rem;
    margin: 5px;
}

label{
    font-weight: bold;
}

p{
    margin-top: 0;
    margin-bottom: 5px;
}



.header, .footer {
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.main-content {
    padding: 2rem;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.product-card {
    background-color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .product-card:hover {
        transform: scale(1.02);
    }

.title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}



.product-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

    .product-table th {
        background-color: #c00;
        color: white;
        text-align: left;
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .product-table td {
        padding: 0.75rem;
        border-top: 1px solid #eee;
        font-size: 0.75rem;
    }

    .product-table tr:hover {
        background-color: #f5f5f5;
        cursor: pointer;
    }

.return-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5%;
    height: 5%;
    border-radius: 50%;
    transition: background-color 0.2s;
    text-decoration: none;
}

    .return-button:hover {
        background-color: #e5e7eb; /* light gray */
    }

.return-icon {
    width: 70%;
    height: 70%;
    color: #374151; /* dark gray */
}

.header-row {
    display: flex;
    align-items: center;
    gap: 5px; /* space between icon and text */
}

.pagination-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.page-button {
    padding: 6px 10px;
    font-size: 1.5rem;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

    .page-button:disabled {
        opacity: 0.5;
        cursor: default;
    }

    .page-button:hover:not(:disabled) {
        background-color: #f0f0f0;
    }

.current-page {
    font-weight: bold;
    font-size: 1.5rem;
}


.header-bar {
    display: flex;
    justify-content: flex-end;
    padding: 12px;
}

.search-input {
    padding: 6px 12px;
    font-size: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    width: 20vw;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .search-input:focus {
        border-color: #333;
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    }


.navigation-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 1rem;
    margin-bottom: 2rem;
}

.nav-button {
    flex: 0 0 calc(33.33% - 1rem); /* 3 per row */
    max-width: calc(33.33% - 1rem);
    text-align: center;
    cursor: pointer;
    padding: 0.5rem 0;
    box-sizing: border-box;
}

    .nav-button img {
        width: 40%; /* Fill container width */
        height: auto;
        border: 1px solid lightgray;
        border-radius: 12px;
        display: block;
        margin: 0 auto;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .nav-button span {
        display: block;
        margin-top: 0.5rem;
        font-size: 0.9rem;
        color: #333;
        text-align: center;
    }

    .nav-button:hover img {
        transform: scale(1.03);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

/* Responsive: 2 per row */
@media (max-width: 800px) {
    .nav-button {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

/* Responsive: 1 per row */
@media (max-width: 500px) {
    .nav-button {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
.btn-outline-danger {
    color: #e3000f;
    border-color: #e3000f;
}
.btn-outline-danger:hover {
    color: #e3000f;
    border-color: #e3000f;
}

.btn:hover {
    transform: translateY(-1px);
}

.catalog-button {
    /*display: inline-flex;*/
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: #e3000f;
    border: solid;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    width: 15vw;
    height: 15vh;
    min-width: 180px;
    min-height: 80px;
}
.catalog-button-icon {
    width: 80%;
    height: 80%;
    margin-right: 0.5rem;
    fill: #e3000f;
}

.catalog-button:hover {
    background-color: #d9dadb;
    transform: translateY(-1px);
}

    .catalog-button svg {
        width: 18px;
        height: 18px;
        fill: white;
    }



.nav-button:hover {
    background-color: #f7f7f7;
    border-radius: 12px;
}

iframe {
    background-color: #f4f4f4;
}
.documentIframe {
    margin-top: -1vh;
    margin-left: -1vw;
    width: 98vw;
    height: 40vh;
}


@media (hover: none) and (pointer: coarse) {
    body {
        font-size: 1.7em;
        background-color: lightblue;
    }
    .nav-button span {
        font-size: 1.5em;
    }
    .title {
        font-size: 1.5em;
    }
    .product-table td {
        font-size: 1.5em;
    }
    .product-table th {
        font-size: 1.75em;
    }
    .search-input {
        font-size: 1.5em;
    }
    .h1 {
        font-size: 4.5rem;
    }
    .page-button {
        font-size: 3rem;
    }
    .current-page {
        font-size: 3rem;
    }

}


.form-container {
    max-width: 500px;
    margin: 80px auto;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.form-header {
    background-color: #CC0000;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 1.5em;
    font-weight: bold;
}

.form-body {
    padding: 30px;
}

    .form-body label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 1.1em;
    }

    .form-body input,
    .form-body select {
        width: 100%;
        padding: 10px 12px;
        font-size: 1.05em;
        border: 1px solid #ccc;
        border-radius: 8px;
        margin-bottom: 20px;
        box-sizing: border-box;
        transition: border-color 0.2s ease-in-out;
    }

        .form-body input:focus,
        .form-body select:focus {
            border-color: #CC0000;
            outline: none;
        }

    .form-body button {
        width: 100%;
        background-color: #CC0000;
        color: white;
        border: none;
        padding: 12px 16px;
        font-size: 1.1em;
        font-weight: bold;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.2s ease-in-out;
    }

        .form-body button:hover {
            background-color: #a00000;
        }

.validation-summary {
    color: #CC0000;
    margin-bottom: 20px;
    font-size: 0.95em;
}
