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

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMu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) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.lightbox-content {
    background: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.lightbox-image {
    display: block;
    max-width: 85vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.lightbox-frame.default-photo {
    background: #f2e6d9;
    padding: 8px;
    border-radius: 8px;
}

.outfit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.outfit-prompt-header {
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #222;
    line-height: 1.4;
}

.outfit-card {
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.outfit-card.outfit-deleted {
    opacity: 0.6;
    border-color: #f5c6cb;
    background: #fff5f5;
}
.outfit-card.outfit-deleted .outfit-images img,
.outfit-card.outfit-deleted .outfit-image {
    filter: grayscale(30%);
}

.outfit-prompt {
    font-size: 12px;
    color: #444;
    margin-bottom: 6px;
    line-height: 1.35;
    word-break: break-word;
}

.outfit-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 4%;
}

.outfit-image-wrapper {
    width: 48%;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outfit-image-wrapper.last-in-row {
    margin-right: 0;
}

.outfit-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fdfdfd;
}

.outfit-image.default-photo {
    background: #f2e6d9;
    padding: 4px;
    border-radius: 6px;
}

.outfit-image.placeholder {
    font-size: 12px;
    color: #9c9c9c;
}

.outfit-meta {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photo-card.default-photo {
    background: #f2e6d9; /* light tan */
    border: 1px solid #d8c7af;
}

.outfit-vton-section {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e8e8e8;
}

.outfit-vton-thumb {
    position: relative;
    width: 48%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    min-width: 0;
}

.outfit-vton-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.outfit-vton-thumb .badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 0.6rem;
    z-index: 1;
}

.outfit-vton-ids {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.55rem;
    padding: 3px 5px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    z-index: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.users-grid table {
    table-layout: auto;
    width: 100%;
}

.users-grid th,
.users-grid td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.users-grid table th:nth-child(1),
.users-grid table td:nth-child(1) {
    width: 140px;
}

.users-grid table th:nth-child(2),
.users-grid table td:nth-child(2) {
    width: 240px;
}

.users-grid table th:nth-child(3),
.users-grid table td:nth-child(3) {
    width: 160px;
}

.users-grid table th:nth-child(4),
.users-grid table td:nth-child(4) {
    width: 170px;
}

.users-grid table th:nth-child(5),
.users-grid table td:nth-child(5) {
    width: 90px;
}

.users-grid table th:nth-child(6),
.users-grid table td:nth-child(6) {
    width: 140px;
}

.users-grid table th:nth-child(7),
.users-grid table td:nth-child(7),
.users-grid table th:nth-child(8),
.users-grid table td:nth-child(8) {
    width: 90px;
}

.users-grid table th:nth-child(9),
.users-grid table td:nth-child(9) {
    width: 190px;
}

.users-grid table thead tr:nth-child(2) th {
    padding-top: 0.2rem;
    padding-bottom: 0.35rem;
    vertical-align: middle;
}

.users-grid table thead tr:nth-child(2) th > * {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.users-grid table thead tr:nth-child(2) th input.form-control,
.users-grid table thead tr:nth-child(2) th select.form-select {
    max-width: 110px;
    font-size: 0.82rem;
    padding: 0.1rem 0.35rem;
}

.users-grid table thead tr:nth-child(2) th:nth-child(9) input.form-control {
    max-width: 170px;
}

.users-grid table thead tr:nth-child(2) button {
    padding: 0.1rem 0.25rem;
}

.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f7f7f9;
}

.top-nav {
    background: #1f2933;
    color: #fff;
    padding: 0.7rem 1.5rem;
}

.top-nav .brand {
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.top-nav .nav-tabs {
    border-bottom: none;
    gap: 0.75rem;
}

.top-nav .nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 0.35rem;
    padding: 0.4rem 0.85rem;
}

.top-nav .nav-tabs .nav-link.active {
    color: #1f2933;
    background: #fff;
}

.top-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.top-nav .nav-link.active,
.top-nav .nav-link:hover {
    color: #fff;
}

.app-content {
    flex: 1;
}

/* Login page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2933 0%, #323f4b 100%);
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-header h2 {
    font-weight: 700;
    color: #1f2933;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dadce0;
    background: #fff;
    color: #3c4043;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
}

.btn-google:disabled {
    opacity: 0.7;
}

/* Remove phantom row borders when QuickGrid shows fewer rows than a page */
