:root {
    --aihr-primary: #115ea3;
    --aihr-primary-dark: #0e4d87;
    --aihr-primary-light: #1a7dc9;
    --aihr-teal: #1a6fb5;
    --aihr-accent: #f59e0b;
    --aihr-accent-light: #fbbf24;
    --aihr-accent-bg: #fffbeb;
    --aihr-bg: #ffffff;
    --aihr-bg-secondary: #f9fafb;
    --aihr-bg-tertiary: #f3f4f6;
    --aihr-text: #111827;
    --aihr-text-secondary: #6b7280;
    --aihr-text-muted: #9ca3af;
    --aihr-border: #e5e7eb;
    --aihr-border-light: #f3f4f6;
    --aihr-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --aihr-card-shadow-hover: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 4px 10px -5px rgba(0, 0, 0, 0.04);
    --aihr-shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.12), 0 8px 20px -6px rgba(0, 0, 0, 0.06);
    --aihr-shadow-xl: 0 25px 60px -12px rgba(0, 0, 0, 0.18);
    --aihr-shadow-glow: 0 0 20px rgba(17, 94, 163, 0.15);
    --aihr-radius: 0.75rem;
    --aihr-radius-lg: 1rem;
    --aihr-radius-xl: 1.25rem;
    --aihr-transition: all 0.25s ease;
    --aihr-transition-fast: all 0.15s ease;
    --aihr-transition-slow: all 0.4s ease;
    --aihr-success: #059669;
    --aihr-success-light: #d1fae5;
    --aihr-success-bg: #ecfdf5;
    --aihr-danger: #ef4444;
    --aihr-warning: #f59e0b;
    --aihr-info: #2563eb;
    --aihr-z-dropdown: 1030;
    --aihr-z-sticky: 1020;
    --aihr-z-overlay: 1050;
    --aihr-z-modal: 1060;
    --aihr-z-toast: 1080;
    --aihr-z-loader: 9999;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--aihr-text);
    line-height: 1.6;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

::selection {
    background: rgba(17, 94, 163, 0.15);
    color: var(--aihr-primary-dark);
}

.rounded-xl {
    border-radius: var(--aihr-radius-xl, 1.25rem) !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

.card {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--aihr-primary);
    box-shadow: 0 0 0 0.2rem rgba(17, 94, 163, 0.15);
}

.form-control::placeholder {
    color: var(--aihr-text-muted);
    opacity: 1;
}

.badge {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.table-hover tbody tr:hover {
    background-color: rgba(17, 94, 163, 0.04);
}

.btn-outline-success {
    color: var(--aihr-primary);
    border-color: var(--aihr-primary);
    transition: all 0.2s ease;
}

.btn-outline-success:hover {
    background-color: var(--aihr-primary);
    border-color: var(--aihr-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(17, 94, 163, 0.2);
}

.modal-content {
    border-radius: 1rem;
    box-shadow: var(--aihr-shadow-xl);
}

.modal-dialog {
    transition: transform 0.2s ease;
}

#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

#toast-container .toast {
    border-radius: 0.75rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
    animation: toastSlideIn 0.35s ease-out;
}

#toast-container .toast-body {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    50% {
        transform: translateX(6px);
    }

    75% {
        transform: translateX(-4px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(17, 94, 163, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(17, 94, 163, 0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

.transition-icon {
    transition: transform 0.2s ease;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 3rem 1rem;
}

.empty-state-icon {
    width: 4.5rem;
    height: 4.5rem;
    background: var(--aihr-bg-tertiary);
    color: var(--aihr-text-muted);
    font-size: 2rem;
    border-radius: 1rem;
}

.completion-bar {
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    overflow: hidden;
}

.completion-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--aihr-primary), var(--aihr-primary-light));
    transition: width 0.6s ease;
}

input, select, textarea {
    font-size: 16px;
}