/* wwwroot/css/antd-theme.css */

/* Ant Design Theme Variables - Dark Only */
:root {
    /* Brand yellow primary */
    --ant-primary-color: #facc15;
    --ant-link-color: #facc15;
    --ant-success-color: #52c41a;
    --ant-warning-color: #faad14;
    --ant-error-color: #f5222d;
    --ant-heading-color: rgba(255, 255, 255, 0.85);
    --ant-text-color: rgba(255, 255, 255, 0.65);
    --ant-text-color-secondary: rgba(255, 255, 255, 0.45);
    --ant-disabled-color: rgba(255, 255, 255, 0.3);
    --ant-border-radius-base: 6px;
    --ant-border-color-base: #434343;
    --ant-box-shadow-base: 0 3px 6px -4px rgba(0, 0, 0, 0.48), 0 6px 16px 0 rgba(0, 0, 0, 0.32), 0 9px 28px 8px rgba(0, 0, 0, 0.2);

    color-scheme: dark;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

a {
    color: var(--ant-primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #fde047;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
    font-size: 14px;
    line-height: 1.5715;
    color: var(--ant-text-color);
    background: #0a0a0a;
}

/* Page Container */
.ant-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* Card Component */
.ant-card {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: var(--ant-text-color);
    font-size: 14px;
    background: #141414;
    border: 1px solid var(--ant-border-color-base);
    border-radius: var(--ant-border-radius-base);
    box-shadow: var(--ant-box-shadow-base);
    width: 100%;
    max-width: 520px;
}

.ant-card-body {
    padding: 24px;
}

/* Typography */
.ant-title {
    margin-top: 0;
    margin-bottom: 0.5em;
    color: var(--ant-heading-color);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.35;
}

.ant-text {
    color: var(--ant-text-color);
}

.ant-text-secondary {
    color: var(--ant-text-color-secondary);
}

.ant-text-strong {
    font-weight: 600;
}

/* Forms */
.ant-form {
    margin-top: 24px;
}

.ant-form-item {
    margin-bottom: 24px;
}

.ant-form-item-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ant-heading-color);
    font-size: 14px;
}

/* Input */
.ant-input {
    box-sizing: border-box;
    margin: 0;
    padding: 4px 11px;
    color: var(--ant-text-color);
    font-size: 14px;
    line-height: 1.5715;
    background-color: #1f1f1f;
    background-image: none;
    border: 1px solid var(--ant-border-color-base);
    border-radius: var(--ant-border-radius-base);
    transition: all 0.3s;
    width: 100%;
    min-height: 32px;
}

.ant-input-lg {
    padding: 6.5px 11px;
    font-size: 16px;
    min-height: 40px;
}

.ant-input:hover {
    border-color: #fde047;
}

.ant-input:focus,
.ant-input:focus-visible {
    border-color: #fde047;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2);
    outline: 0;
}

/* Buttons */
.ant-btn {
    position: relative;
    display: inline-block;
    font-weight: 400;
    white-space: nowrap;
    text-align: center;
    background-image: none;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    user-select: none;
    touch-action: manipulation;
    height: 32px;
    padding: 4px 15px;
    font-size: 14px;
    border-radius: var(--ant-border-radius-base);
    color: var(--ant-text-color);
    border: 1px solid var(--ant-border-color-base);
    background: #1f1f1f;
}

.ant-btn:hover {
    color: #fde047;
    border-color: #fde047;
}

.ant-btn-primary {
    color: #141414;
    border-color: var(--ant-primary-color);
    background: var(--ant-primary-color);
    text-shadow: none;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.ant-btn-primary:hover {
    color: #141414;
    border-color: #fde047;
    background: #fde047;
}

.ant-btn-lg {
    height: 40px;
    padding: 6.4px 15px;
    font-size: 16px;
}

.ant-btn-block {
    width: 100%;
}

.ant-btn-default {
    background: #1f1f1f;
    border-color: var(--ant-border-color-base);
}

.ant-btn-default:hover {
    color: var(--ant-primary-color);
    border-color: var(--ant-primary-color);
}

.ant-btn-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

/* Button Group */
.ant-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.ant-btn-group-single {
    justify-content: center;
}

/* Badge */
.ant-badge {
    display: inline-block;
    padding: 0 8px;
    color: #141414;
    font-size: 12px;
    line-height: 20px;
    background: var(--ant-primary-color);
    border-radius: 10px;
    margin-left: 8px;
}

/* Checkbox */
.ant-checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.ant-checkbox {
    margin-right: 8px;
}

/* Divider */
.ant-divider {
    border: 0;
    border-top: 1px solid var(--ant-border-color-base);
    margin: 24px 0;
    position: relative;
}

.ant-divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--ant-text-color);
    font-size: 14px;
    white-space: nowrap;
}

.ant-divider-with-text::before,
.ant-divider-with-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ant-border-color-base);
}

.ant-divider-with-text::before {
    margin-right: 16px;
}

.ant-divider-with-text::after {
    margin-left: 16px;
}

/* Alert Component */
.ant-alert {
    box-sizing: border-box;
    margin: 0;
    padding: 8px 15px;
    color: var(--ant-text-color);
    font-size: 14px;
    line-height: 1.5715;
    list-style: none;
    position: relative;
    display: flex;
    align-items: flex-start;
    word-wrap: break-word;
    border-radius: var(--ant-border-radius-base);
    margin-bottom: 16px;
}

.ant-alert-warning {
    background-color: #2b2611;
    border: 1px solid #594214;
}

.ant-alert-info {
    background-color: #111d2c;
    border: 1px solid #15395b;
}

.ant-alert-error {
    background-color: #2c1519;
    border: 1px solid #58181c;
}

.ant-alert-success {
    background-color: #162312;
    border: 1px solid #274916;
}

.ant-alert-icon {
    margin-right: 12px;
    font-size: 16px;
}

.ant-alert-content {
    flex: 1;
    min-width: 0;
}

.ant-alert-message {
    color: var(--ant-heading-color);
    font-size: 14px;
    line-height: 1.5715;
}

.ant-alert-description {
    color: var(--ant-text-color);
    font-size: 14px;
    line-height: 22px;
    margin-top: 4px;
}

/* Validation */
.validation-message {
    color: var(--ant-error-color);
    font-size: 14px;
    margin-top: 4px;
    min-height: 22px;
}

.ant-input-error {
    border-color: var(--ant-error-color);
}

.ant-input-error:hover {
    border-color: var(--ant-error-color);
}

.ant-input-error:focus {
    border-color: var(--ant-error-color);
    box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
}

/* Text utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--ant-text-color-secondary);
}

.mb-3 {
    margin-bottom: 24px;
}

.mt-3 {
    margin-top: 24px;
}

/* Scope Info */
.ant-scope-info {
    display: flex;
    align-items: center;
    margin: 16px 0;
    padding: 12px;
    background: #262626;
    border-radius: var(--ant-border-radius-base);
}

/* Responsive */
@media (max-width: 576px) {
    .ant-page {
        padding: 16px;
    }

    .ant-card {
        box-shadow: none;
    }

    .ant-btn-group {
        flex-direction: column;
    }

    .ant-btn {
        width: 100%;
    }
}
