﻿

@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --brand-primary: #e47126;
    --brand-secondary: #f5c4a2;
    --brand-tertiary: #f5c4a2;
   /* background-color: lightgray;*/
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #636363;
    font-size: 13px;
    width: 100% !important;
    /*background-color: lightgray;*/
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


input, textarea, select {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent; /* optional, keeps them minimal */
}

    input:focus, textarea:focus, select:focus {
        /*border: none;*/
        outline: none;
        box-shadow: none;
    }

/* ================================================== */
/* Media Queries - Move to bottom? */
/* ================================================== */
@media (min-width: 576px) {
    .blazored-toast-container {
        top: 0rem;
        right: 0rem;
    }
}

@media (min-width: 641px) {
    .main-col h4, h4span {
        margin-top: 0px;
    }

    .card-h4 {
        max-width: 75%;
    }
}

@media (min-width: 800px) {
    .main-col h4, h4span {
        margin-top: 0px;
    }

    .card-h4 {
        max-width: 800px;
    }
}

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-6izfpeqqxma] {
        display: flex !important;
    }

    .cw-320 {
        max-width: 700px;
    }

    .blazored-typeahead {
        max-width: 700px;
    }

    .card-h4 {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 20px;
    }

    .cw-320 {
        max-width: 700px;
    }

    .blazored-typeahead {
        max-width: 700px;
    }

    .card-h4 {
        max-width: 100%;
    }
}

/* ================================================== */
/* Custom General CSS ??*/
/* ================================================== */

.standard-logo {
    width: 140px;
}

/* ================================================== */
/* Campos CSS - check */
/* ================================================== */

.input-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    font-family: sans-serif;
}

    .input-row label {
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
        color: #555;
    }

    .input-row input,
    .input-row select,
    .input-row textarea {
        padding: 0.6rem 0.8rem;
        border: 1px solid #ccc;
        border-radius: 8px;
        outline: none;
        font-size: 1rem;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .input-row input:focus,
        .input-row select:focus,
        .input-row textarea:focus {
            border-color: var(--brand-primary);
            box-shadow: 0 0 5px rgba(228, 113, 38, 0.4);
        }

    .input-row select {
        appearance: none;
        background: white url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><polygon points='0,0 12,0 6,6' fill='%23999'/></svg>") no-repeat right 0.8rem center;
        background-size: 0.65rem;
    }

.radio-group {
    display: flex;
    gap: 1rem;
}

    .radio-group input[type="radio"] {
        accent-color: var(--brand-primary);
    }

.input-row textarea {
    resize: vertical;
    min-height: 80px;
}

.header-btn {
    padding: 0.7rem 1.2rem;
    display: flex;
    gap: 10px;
    background-color: var(--brand-secondary);
    color: white;
    font-size: 1.2rem;
    height: 50px !important;
    width: fit-content;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    align-items: center;
}

    .header-btn:hover {
        /*background-color: var(--brand-primary);*/
        /*transform: scale(1.05);*/
        box-shadow: 0 2px 6px rgba(228, 113, 38, 0.5);
    }

.RB-DIV {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ccc;
}

.RB1 {
    padding: 0.7rem 1.2rem;
    display: flex;
    gap: 10px;
    background-color: var(--brand-secondary);
    color: white;
    font-size: 1.2rem;
    height: 50px !important;
    width: fit-content;
    border: none;
    /*border-radius: 8px;*/
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    align-items: center;
}

    .RB1:hover {
        background-color: var(--brand-primary);
        box-shadow: 0 2px 6px rgba(228, 113, 38, 0.5);
        /*transform: scale(1.05);*/
        color: white;
        /*box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);*/
    }

    .RB1.active {
        background: var(--brand-primary);
        color: white;
        border-color: var(--brand-secondary);
        box-shadow: 0 2px 6px rgba(228, 113, 38, 0.5);
    }

.RB2 {
    padding: 0.7rem 1.2rem;
    display: flex;
    gap: 10px;
    background-color: var(--brand-secondary);
    color: white;
    font-size: 1.2rem;
    height: 50px !important;
    width: 50%;
    border: none;
    /*border-radius: 8px;*/
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    align-items: center;
    justify-content: center;
}

    .RB2:hover {
        background-color: var(--brand-primary);
        box-shadow: 0 2px 6px rgba(228, 113, 38, 0.5);
        /*transform: scale(1.05);*/
        color: white;
        /*box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);*/
    }

    .RB2.active {
        background: var(--brand-primary);
        color: white;
        border-color: var(--brand-secondary);
        box-shadow: 0 2px 6px rgba(228, 113, 38, 0.5);
    }

.primary-btn {
    padding: 0.7rem 1.2rem;
    background-color: var(--brand-primary);
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

    .primary-btn:hover {
        background-color: var(--brand-secondary);
        box-shadow: 0 2px 6px rgba(228, 113, 38, 0.5);
    }

    .primary-btn:focus {
        outline: none;
        box-shadow: 0 0 5px rgba(228, 113, 38, 0.6);
    }


.secondary-btn {
    padding: 0.7rem 1.2rem;
    background-color: var(--brand-secondary);
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

    .secondary-btn:hover {
        background-color: var(--brand-secondary);
        box-shadow: 0 2px 6px rgba(228, 113, 38, 0.5);
    }

    .secondary-btn:focus {
        outline: none;
        box-shadow: 0 0 5px rgba(228, 113, 38, 0.6);
    }

/* ================================================== */
/* Other shiiiiii */
/* ================================================== */

.splash-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column nowrap;
    height: 100vh;
    font-family: "Segoe UI",Roboto,"Helvetica Neue","-apple-system",BlinkMacSystemFont,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
    font-size: .88rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

    .splash-screen .spinner-border {
        border: .2em solid;
        border-color: var(--brand-primary) #bfbfbf #bfbfbf;
        border-radius: 60px;
        width: 120px;
        height: 120px;
    }

.splash-screen-caption {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

.splash-screen-text {
    color: #a1a1a1;
    margin-top: .5rem;
}

/* ================================================== */
               /* CUSTOM COMPONENETS */
/* ================================================== */

/* ================================================== */
/* Floating Label Input */
/* ================================================== */

.floating-input {
    position: relative;
    display: inline-block;
    width: 100%;
    font-family: inherit;
}

    .floating-input input {
        width: 100%;
        padding: 12px 8px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 6px;
        outline: none;
        background: white;
        transition: border-color 0.2s ease;
        padding-left: 15px;
    }

        .floating-input input:focus {
            border-color: var(--brand-secondary); /* Accent color */
        }

    .floating-input label {
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        background: transparent;
        padding: 0 4px;
        color: #888;
        font-size: 16px;
        pointer-events: none;
        transition: all 0.2s ease;
        border-radius: 4px;
    }

    /* Float label when input has focus or value */
    .floating-input input:focus + label,
    .floating-input input:not(:placeholder-shown) + label {
        top: 0px;
        left: 15px;
        font-size: 12px;
        color: var(--brand-secondary);
        background: white;
        /*border: 1px solid var(--brand-secondary);*/
    }

    .floating-input input.validation-error:focus + label,
    .floating-input input.validation-error:not(:placeholder-shown) + label {
        color: #dc3545;
    }

    .floating-input.validation-error .floating-input label {
        color: #dc3545;
    }

.validation-error {
    border-color: #dc3545 !important;
    background-color: #fff3f3 !important;
}

.validation-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    margin-left: 15px;
    display: flex;
    gap: 10px;
    position: absolute;
    top: -32px;
    /* left: 0px; */
    right: 8px;
    align-items: baseline;
    padding: 5px;
}

/* ================================================== */
/* Custom Drop Down */
/* ================================================== */

.dropdown-container {
    /*    position: relative;
    width: 100%;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    background: white;
    transition: border-color 0.2s ease;
    min-height: 50px;
    max-height: 50px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden !important;*/

    position: relative;
    width: 100%;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    background: white;
    transition: border-color 0.2s ease;
    min-height: 50px;
    display: grid;
    align-items: center;
    box-sizing: border-box;
    flex-shrink: 0;
}

    .dropdown-container.dropdown-focused {
        border-color: var(--brand-primary);
    }

    /* Validation styles */
    .dropdown-container.dropdown-error {
        border-color: #dc3545;
        background-color: #fff3f3;
    }

        .dropdown-container.dropdown-error.dropdown-focused {
            border-color: #dc3545;
            background-color: #fff3f3;
        }

.dropdown-label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    transition: all 0.2s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
    z-index: 1;
    border-radius: 4px;
}

.dropdown-label-floating {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--brand-primary);
    background-color: white;
}

.dropdown-container.dropdown-focused .dropdown-label-floating {
    color: var(--brand-primary);
    background: white;
}

/* Error label styling */
.dropdown-container.dropdown-error .dropdown-label,
.dropdown-container.dropdown-error .dropdown-label-floating {
    color: #dc3545;
}

/*.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 12px 15px;
    min-height: 24px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}*/

/*.dropdown-value {
    font-size: 16px;
    color: #333;
    flex: 1;
    margin-right: 10px;
}*/

/*.dropdown-value {
    font-size: 16px;
    color: #333;
    flex: 1;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}*/

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 12px 15px;
    min-height: 24px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.dropdown-value {
    font-size: 16px;
    color: #333;
    flex: 1;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    margin-right: 8px;
    flex-shrink: 0;
}

.dropdown-arrow-up {
    transform: rotate(180deg);
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 150px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

    .dropdown-item:hover {
        background-color: #f5f5f5;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

.dropdown-item-selected {
    background-color: #e6f3ff;
    color: #0066cc;
}

    .dropdown-item-selected:hover {
        background-color: #d9edff;
    }

.dropdown-placeholder {
    color: #999;
}

.dropdown-no-items {
    padding: 12px 15px;
    color: #999;
    font-style: italic;
    text-align: center;
}

.dropdown-readonly {
    cursor: default;
    opacity: 0.8;
}

    .dropdown-readonly .dropdown-header {
        cursor: default;
    }

/* Validation error message styles */
.dropdown-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    margin-left: 15px;
    display: flex;
    gap: 10px;
    position: absolute;
    top: -32px;
    /* left: 0px; */
    right: 8px;
    align-items: baseline;
    padding: 5px;
}

/* ================================================== */
                /* CUSTOM STYLING */
/* ================================================== */

.control-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    height: 100px !important;
    height: 60px;
    background-color: white;
    color: white;
    box-sizing: border-box;
    padding: 25px;
    user-select: none;
}

.ch-left-btn {
    z-index: 1;
    gap: 65px;
    display: flex;
}

.ch-right-btn {
    z-index: 1;
    display: flex;
    gap: 10px;
}

.ch-title{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.CH1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 2.5rem;
    color: var(--brand-primary);
}

.CH2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    /* letter-spacing: 3px; */
    font-size: 1.8rem;
    color: var(--brand-secondary);
}

.LBL1 {
    color: var(--brand-secondary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

.LBL2 {
    color: var(--brand-secondary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.VL1 {
    font-family: 'Roboto Mono', monospace;
    font-weight: 400;
    font-size: 1.2rem;
    color: #000;
}

.VL2 {
    font-family: 'Roboto Mono', monospace;
    font-weight: 200;
    font-size: 0.95rem;
    color: #000;
}

.TA1 {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    background: white;
    transition: border-color 0.2s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    min-height: 150px;
    padding: 10px;
}