html, body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    background: #f6f8fb;
    color: #334155;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --app-primary: #1f2937;
    --app-primary-dark: #111827;
    --app-text: #374151;
    --app-muted: #64748b;
    --app-border: #e5e0da;
    --app-surface: #ffffff;
    --app-surface-muted: #f8f5f1;
    --app-radius: 6px;
    --app-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.active-auctions-list {
    grid-template-columns: minmax(0, 1fr);
}

.active-card .artwork-content {
    width: 100%;
}

/* Active auction hero layout */
.active-auctions-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.auction-hero {
    display: grid;
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
    overflow: hidden;
    min-height: 560px;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: var(--app-surface);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.auction-hero .artwork-image {
    position: relative;
    min-height: 560px;
    height: 100%;
    overflow: hidden;
    background: var(--app-surface-muted);
}

.auction-hero .artwork-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
}

.auction-hero .artwork-image .badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 1;
}

.auction-hero .artwork-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 3rem);
}

.auction-hero .artwork-title {
    margin-bottom: 0.75rem;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    line-height: 1.1;
}

.auction-hero .artwork-description {
    max-width: 70ch;
    color: var(--app-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.auction-hero .artwork-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: var(--app-surface-muted);
}

.auction-hero .artwork-price .value {
    color: var(--app-primary-dark);
    font-size: 1.75rem;
    font-weight: 700;
}

.auction-hero .artwork-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    .auction-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auction-hero .artwork-image,
    .auction-hero .artwork-image img {
        min-height: 320px;
        height: 320px;
    }

    .auction-hero .artwork-content {
        padding: 1.5rem;
    }

    .auction-hero .artwork-price {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }
}

.artwork-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.06);
    border-radius: 8px;
}

.artwork-metadata div {
    min-width: 0;
}

.artwork-metadata dt {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.artwork-metadata dd {
    margin: 0.25rem 0 0;
    overflow-wrap: anywhere;
}

.bid-history {
    margin-top: 1.25rem;
}

.bid-history h4 {
    margin-bottom: 0.75rem;
}

.bid-history-table-wrapper {
    overflow-x: auto;
}

.bid-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.bid-history-table th,
.bid-history-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

.bid-history-table th {
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.no-bids {
    color: #6b7280;
    font-style: italic;
}

a, .btn-link {
    color: var(--app-primary);
    transition: color 0.2s;
}

a:hover, .btn-link:hover {
    color: var(--app-primary-dark);
}

.btn-primary {
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background: var(--app-primary-dark);
    box-shadow: none;
}

.btn-primary:active {
    box-shadow: none;
}

.btn-secondary {
    color: #fff;
    background: linear-gradient(135deg, #95A5A6 0%, #7F8C8D 100%);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(100, 116, 139, 0.18);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(149, 165, 166, 0.4);
}

.btn-success {
    color: #fff;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(39, 174, 96, 0.18);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
}

.btn-danger {
    color: #fff;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.18);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.btn-warning {
    color: #fff;
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(243, 156, 18, 0.18);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.4);
}

.btn-info {
    color: #fff;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.18);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(197, 107, 77, 0.2);
}

.content {
    padding-top: 1rem;
}

h1:focus {
    outline: none;
}

h1 { font-size: clamp(1.4rem, 2vw, 1.85rem); }
h2 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); }
h3 { font-size: 1.15rem; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2C3E50;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
}

.page-header p {
    font-size: 0.95rem;
}

.artwork-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.card {
    border: none;
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.form-control {
    border-radius: 6px;
    border: 1px solid var(--app-border);
    padding: 0.5rem 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: #c56b4d;
    box-shadow: 0 0 0 0.2rem rgba(197, 107, 77, 0.15);
}

.valid.modified:not([type=checkbox]) {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.15);
}

.invalid {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.15);
}

.validation-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    padding: 1rem;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.badge {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blazor-error-boundary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}