/* Brand button style */
.btn-brand {
    padding: 0.5em 0.8em;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(to bottom, rgb(90, 104, 133), rgb(134, 147, 172));
    cursor: pointer;
    transition: opacity 0.15s;
}

.btn-brand:hover {
    opacity: 0.9;
}

.btn-brand:active {
    background: linear-gradient(to bottom, rgb(134, 147, 172), rgb(90, 104, 133));
}

.btn-brand:disabled {
    background: linear-gradient(to bottom, rgb(242, 242, 242), rgb(179, 179, 179));
    color: #595959;
    cursor: not-allowed;
}

/* View management */
.view.hidden {
    display: none !important;
}

/* Photo capture overlay */
.corner-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: rgba(255, 255, 255, 0.7);
    border-style: solid;
    border-width: 0;
}

.corner-marker.top-left {
    top: 15%;
    left: 5%;
    border-top-width: 3px;
    border-left-width: 3px;
}

.corner-marker.top-right {
    top: 15%;
    right: 5%;
    border-top-width: 3px;
    border-right-width: 3px;
}

.corner-marker.bottom-left {
    bottom: 15%;
    left: 5%;
    border-bottom-width: 3px;
    border-left-width: 3px;
}

.corner-marker.bottom-right {
    bottom: 15%;
    right: 5%;
    border-bottom-width: 3px;
    border-right-width: 3px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    -webkit-appearance: none;
    background: transparent;
}

::-webkit-scrollbar:vertical {
    width: 12px;
}

::-webkit-scrollbar:horizontal {
    height: 12px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 2px solid #ffffff;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #ffffff;
}

/* Checkbox custom style */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid black;
    border-radius: 0.25rem;
    background-color: white;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: background-color 0.2s, border-color 0.2s;
}

input[type="checkbox"]:checked {
    background-color: black;
    border-color: black;
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 0.35rem;
    width: 0.25rem;
    height: 0.5rem;
    border: solid white;
    border-width: 0 0.15rem 0.15rem 0;
    transform: rotate(45deg);
}
