/* 自定义样式 */

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #faf8fe;
    color: #2e323d;
}

.glass-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.primary-gradient {
    background: linear-gradient(135deg, #005bc1 0%, #004faa 100%);
}

.step-progress-line {
    background: linear-gradient(90deg, #005bc1 0%, #66fe9c 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #005bc1, #004faa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
}

input::placeholder {
    color: #aeb1bf;
    font-weight: 400;
}

.metric-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.metric-card:hover {
    border-color: #aeb1bf;
}

.metric-card.selected {
    border-color: #005bc1;
    background-color: rgba(0, 91, 193, 0.05);
}

.metric-card.selected-guardrail {
    border-color: #9f403d;
    background-color: rgba(159, 64, 61, 0.05);
}

/* 隐藏radio/checkbox的焦点指示 */
input.hidden.peer:focus-visible + div,
input.hidden.peer:focus + div {
    outline: 2px solid #005bc1;
    outline-offset: 2px;
}

/* 认证弹窗动画 */
#auth-modal > div:last-child > div,
#password-modal > div:last-child > div {
    animation: modalSlideIn 0.25s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Toast 通知 */
#auth-toast {
    pointer-events: none;
}

/* 用户下拉菜单 */
#user-dropdown {
    animation: dropdownIn 0.15s ease-out;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 管理员面板 */
.admin-filter-btn {
    background: transparent;
    color: #6b7280;
    border: 1px solid transparent;
}

.admin-filter-btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

.admin-filter-btn.active {
    background: #005bc1;
    color: #fff;
    border-color: #005bc1;
}

.admin-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.admin-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-action-btn.approve {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
    border-color: rgba(22, 163, 74, 0.15);
}

.admin-action-btn.approve:hover {
    background: rgba(22, 163, 74, 0.15);
}

.admin-action-btn.reject {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.15);
}

.admin-action-btn.reject:hover {
    background: rgba(220, 38, 38, 0.15);
}

.admin-action-btn.revoke {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.15);
}

.admin-action-btn.revoke:hover {
    background: rgba(245, 158, 11, 0.15);
}

.admin-user-card {
    animation: cardFadeIn 0.2s ease-out;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
