﻿/* styles.css */
h1 {
    font-family: "Lato", sans-serif;
    font-size: 72px;
    font-weight: 900;
    line-height: normal;
    font-style: normal;
    color: rgb(55, 55, 56);
    max-width: 800px;
    justify-content: center;
    margin: auto;
    margin-top: 40px;
}
h2 {
    font-family: "Lato", sans-serif;
    font-size: 60px;
    font-weight: 900;
    color: rgb(55,55,56);
    font-style: normal;
    line-height: normal;
    max-width: 800px;
    justify-content: center;
    margin: auto;
}
h3 {
    font-family: "Lato", sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: rgb(55,55,56);
    font-style: normal;
    line-height: normal;
    max-width: 800px;
    justify-content: center;
    margin: auto;
    margin-top: 30px;
}
h4 {
    font-family: "goodwillBodyFont", sans-serif;
    font-size: 36px;
    font-weight: 400;
    color: rgb(55,55,56);
    font-style: normal;
    line-height: normal;
    max-width: 800px;
    justify-content: center;
    margin: auto;
    margin-top: 30px;
}
h5 {
    font-family: "goodwillBodyFont", sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: rgb(55,55,56);
    font-style: normal;
    line-height: normal;
    max-width: 800px;
    justify-content: center;
    margin: auto;
    margin-top: 20px;
}
p,
label,
input {
    font-family: "goodwillBodyFont", sans-serif;
    font-style: normal;
    font-weight: 400;
    color: rgb(55, 55, 56);
    font-size: 18px;
    line-height: normal;
}

@font-face {
    font-family: 'goodwillBodyFont';
    src: url('/Fonts/lato.ttf') format('truetype');
}


.c-table-container {
    border: 1px solid lightgray;
    border-radius: 0.25rem;
    overflow: hidden; /* Prevent content spilling out */
    /*max-height: 40%;*/ /* Total height of the table */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
    overflow-x: scroll;
    overflow-y: scroll;
    /*max-height: 400px*/
}

.c-table {
    /*max-height: auto;*/
    height: 100%;
    table-layout: auto;
    border-color: lightgray;
    border-radius: .25rem;
    font-size: xx-small;
    margin: 0;
    width: 100%
}

    .c-table thead {
        background-color: lightgray
    }

    .c-table th,
    .c-table td {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid #dee2e6; /* Light gray border */
    }

    .c-table thead th {
        vertical-align: middle;
        border-bottom: 2px solid #dee2e6; /* Light gray border */
    }

    .c-table tbody + tbody {
        border-top: 2px solid #dee2e6; /* Light gray border */
    }

.c-table-selected-row {
    background-color: lightgray; /* Or any shade of gray you prefer */
}

.c-form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: .125rem;
}


/* Table container with scroll and maximum width */
.c-edit-table-container {
    border: 1px solid lightgray;
    border-radius: 0.25rem;
    overflow-x: auto; /* Enables horizontal scrolling */
    overflow-y: auto; /* Prevent vertical scrolling in the container */
    max-width: 200%; /* Ensure it doesn't exceed parent width */
    /*max-height: 300px;*/ /* Total height of the container */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

/* Compact table */
.c-edit-table {
    width: 150%; /* Allow table to stretch fully */
    table-layout: fixed; /* Ensures columns respect defined widths */
    border-collapse: collapse; /* Combine borders for cleaner design */
    font-size: xx-small;
}

}

.c-edit-table thead {
    background-color: lightgray; /* Light gray header background */
}

.c-checkbox tr {
    line-height: 1;
    padding: 0;
}

.c-edit-table th,
.c-edit-table td {
    padding: 0.5rem; /* Reduce padding for compactness */
    vertical-align: middle; /* Align content to the top */
    border: 1px solid #dee2e6; /* Add light gray borders */
    text-align: center; /* Left-align text by default */
    white-space: pre-wrap; /* Prevent text wrapping */
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden; /* Prevent content overflow */
}

.c-edit-table thead th {
    vertical-align: middle; /* Center-align header content vertically */
    border-bottom: 2px solid #dee2e6; /* Thicker bottom border for header */
    position: sticky; /* Make the header sticky */
    top: 0px; /* Adjust this to match the height of your Blazor layout's top bar */
    z-index: 2; /* Keep the header on top of the scrolling content */
    background-color: lightgray;
}

.c-edit-table tbody + tbody {
    border-top: 2px solid #dee2e6; /* Separator for multiple tbody blocks */
}

/* Highlight selected row */
.c-edit-table-selected-row {
    background-color: #f8f9fa; /* Subtle background for selection */
}

.sticky-col {
    position: sticky;
    left: 0; /* Freeze the column at the left */
    top: 0;
    background-color: lightgray; /* Match the table's background */
    z-index: 2; /* Ensure it appears above other table content */
    box-shadow: 1px 0 2px rgba(0,0,0,0.1); /* Add a subtle shadow for clarity */
}

.vertical-text {
    writing-mode: vertical-rl; /* Rotate text vertically from right to left */
    text-orientation: mixed; /* Ensure proper character orientation */
    padding: 0.5rem; /* Adjust padding for spacing */
    text-align: center; /* Center-align text */
}

thead .sticky-col {
    z-index: 3; /* Ensure the header cell appears above body cells */
}


.c-edit-table textarea {
    border: 1px solid lightgray;
    border-radius: 0.25rem;
    padding: 0.2rem;
    font-size: xx-small;
    width: 100%; /* Fill the cell */
    height: 50%;
    box-sizing: border-box; /* Include padding in the element's width */
    justify-content: center;
    vertical-align: middle
}

.c-edit-table input[type="checkbox"] {
    border: 1px solid lightgray;
    border-radius: 0.25rem;
    padding: 0.2rem;
    font-size: xx-small;
    width: 100%; /* Fill the cell */
    height: stretch;
    box-sizing: border-box; /* Include padding in the element's width */
    justify-content: center;
    vertical-align: middle
}

/* Compact input styles */
.c-edit-table input[type="text"],
.c-edit-table input[type="number"],
.c-edit-table select {
    border: 1px solid lightgray;
    border-radius: 0.25rem;
    padding: 0.2rem;
    font-size: xx-small;
    width: 100%; /* Fill the cell */
    box-sizing: border-box; /* Include padding in the element's width */
}

/* Compact button styles */
.c-edit-table button {
    padding: 0.2rem 0.4rem;
    font-size: xx-small;
    border-radius: 0.25rem;
    background-color: gray;
    color: white;
    border: none;
    cursor: pointer;
}

    .c-edit-table button:hover {
        background-color: lightgray;
    }


.c-checkbox {
    height: 50%;
    width: 50%
}

/* styles.css */
/* EditForm Styles */
.edit-form {
    margin-bottom: 1rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
    width: 100%;
    background-color: lightgray;
    border-radius: 0.25rem;
}

    .edit-form label {
        display: block;
        margin-bottom: 0.5rem;
        font-family: "Open Sans", sans-serif;
        font-style: normal;
        font-weight: 400;
        color: rgb(55, 55, 56);
        font-size: 17px;
        line-height: 30px;
    }

    .edit-form input[type="text"],
    .edit-form input[type="password"],
    .edit-form input[type="number"],
    .edit-form input[type="email"],
    .edit-form input[type="date"], .HasValue ? item.Date.Value.ToString("MM/dd/yyyy") : "")
    .edit-form input[type="time"],
    .edit-form textarea,
    .edit-form input,
    .edit-form select {
        width: 100%;
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
        line-height: 1.5;
        color: #495057;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid #ced4da;
        border-radius: 0.25rem;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        font-family: "Open Sans", sans-serif;
        font-style: normal;
        font-weight: 400;
        color: rgb(55, 55, 56);
        font-size: 17px;
        line-height: 30px;
    }

    .edit-form input[type="checkbox"] {
        width: 30px;
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
        line-height: 1.5;
        color: #495057;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid #ced4da;
        border-radius: 0.25rem;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }


    .edit-form input[type="text"]:focus,
    .edit-form input[type="password"]:focus,
    .edit-form input[type="number"]:focus,
    .edit-form input[type="email"]:focus,
    .edit-form input[type="date"]:focus,
    .edit-form input[type="time"]:focus,
    .edit-form textarea:focus,
    .edit-form input,
    .edit-form select:focus {
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    .edit-form .validation-message {
        color: #dc3545; /* Red color for validation messages */
        font-size: 0.875rem; /* Smaller font size for validation messages */
        margin-top: 0.25rem; /* Add space between input and validation message */
    }

/* Button Styles */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: darkgrey;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .btn:hover {
        color: #fff;
    }

/* General Form Styles */
form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #ddd; /* Add a light border for definition */
    font-family: Arial, sans-serif;
    display: grid;
    column-gap: 1.5rem;
    row-gap: 1.5rem;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, .4);
    margin-top: 30px;
    margin-bottom: 30px;
}

    /* Form Header */
    form h1 {
        font-size: 1.5rem;
        font-weight: bold;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    /* Form Flexbox Layout */
    form .form-content {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem; /* Spacing between columns and rows */
    }

    form .form-item {
        flex: 1 1 calc(50% - 1rem); /* Two columns with gap adjustment */
        display: flex;
        flex-direction: column;
    }

    /* Form Fields */
    form label {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    form input[type="text"],
    form input[type="number"],
    form input[type="time"],
    form input[type="datetime-local"],
    form input[type="date"],
    form select {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
        border: 1px solid #ddd;
        border-radius: 4px;
        transition: border-color 0.3s ease-in-out;
    }

        form input[type="text"]:focus,
        form input[type="number"]:focus,
        form input[type="time"]:focus,
        form input[type="datetime-local"],
        form input[type="date"],
        form select:focus {
            border-color: rgba(1,1,1,.9);
            outline: none;
        }

    /* Submit Button */
    form button[type="submit"] {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        font-weight: bold;
        color: #fff;
        background-color: #0053a0;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease-in-out;
        margin-top: 1rem;
    }

        form button[type="submit"]:hover {
            background-color: rgba(1,1,1,.9);
        }

    /* Required Field Indicator */
    form label:after {
        content: " *";
        color: #e74c3c;
    }


.form-item {
    flex: 1 1 calc(50% - 1rem); /* Two columns with equal width */
    display: flex;
    flex-direction: column;
}

.bi-chevron-compact-down-full {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='black' color='black' class='bi bi-chevron-compact-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.553 6.776a.5.5 0 0 1 .67-.223L8 9.44l5.776-2.888a.5.5 0 1 1 .448.894l-6 3a.5.5 0 0 1-.448 0l-6-3a.5.5 0 0 1-.223-.67'/%3E%3C/svg%3E");
    width: 26px;
    height: 26px;
    display: inline-block;
}
.bi-chevron-compact-up-full {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='black' class='bi bi-chevron-compact-up' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M7.776 5.553a.5.5 0 0 1 .448 0l6 3a.5.5 0 1 1-.448.894L8 6.56 2.224 9.447a.5.5 0 1 1-.448-.894z'/%3E%3C/svg%3E");
    width: 26px;
    height: 26px;
    display: inline-block;
}