html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .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;
}

/* ============================================
   FEATURES PAGE - Crystalline Productivity Theme
   ============================================ */

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-gradient {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.2) 0%, transparent 30%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: 10%;
    animation: float-delayed 10s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: -30px;
    animation: float 12s ease-in-out infinite;
    animation-delay: -3s;
}

/* Glass Card Base */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    box-shadow:
        0 8px 32px rgba(99, 102, 241, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px rgba(99, 102, 241, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.06);
}

/* HR Showcase */
.hr-showcase {
    padding: 2rem 0;
}

.dashboard-preview {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.dashboard-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366F1, #8B5CF6, #EC4899);
}

.dashboard-header {
    position: relative;
    z-index: 1;
}

.dashboard-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Metric Cards */
.metric-card {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.metric-trend {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.trend-up { color: #10b981; }
.trend-down { color: #f59e0b; }
.trend-neutral { color: #6b7280; }

/* Calendar Widget */
.calendar-widget {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.calendar-nav button {
    padding: 0.25rem;
    color: #64748b;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.day-header {
    font-size: 0.625rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 0.25rem;
    text-transform: uppercase;
}

.day {
    font-size: 0.75rem;
    padding: 0.35rem;
    border-radius: 0.375rem;
    color: #475569;
    transition: all 0.2s ease;
}

.day:hover:not(.day-empty) {
    background: #f1f5f9;
}

.day-empty {
    visibility: hidden;
}

.day-today {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    font-weight: 600;
}

.day-leave {
    background: #fef3c7;
    color: #d97706;
}

/* Approvals Ticker */
.approvals-ticker {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.ticker-header {
    margin-bottom: 0.75rem;
}

.ticker-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.ticker-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.ticker-content {
    flex: 1;
    min-width: 0;
}

.ticker-content .fw-medium {
    font-size: 0.875rem;
    color: #1e293b;
}

.ticker-content small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Feature Tabs */
.feature-tabs-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-tab-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-tab-btn:hover {
    background: white;
    color: #6366F1;
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-tab-btn.active {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.feature-tab-btn i {
    font-size: 1.125rem;
}

.feature-tab-content {
    flex: 1;
    animation: fade-in-up 0.4s ease;
}

.tab-icon-wrapper {
    display: inline-block;
}

.tab-icon {
    width: 72px;
    height: 72px;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #6366F1;
}

/* Feature Capabilities */
.feature-capabilities {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.capability-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.capability-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.capability-item span {
    color: #475569;
    font-size: 0.9375rem;
}

/* Feature Roles */
.feature-roles {
    padding-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.roles-label {
    font-size: 0.8125rem;
    color: #64748b;
}

.roles-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-badge {
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 2rem;
    font-size: 0.8125rem;
    color: #6366F1;
    font-weight: 500;
}

/* HR Features Grid */
.hr-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .hr-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hr-features-grid {
        grid-template-columns: 1fr;
    }
}

.hr-feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.25rem;
    padding: 1.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fade-in-up 0.6s ease both;
    position: relative;
    overflow: hidden;
}

.hr-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-accent, #6366F1), var(--card-accent-end, #8B5CF6));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hr-feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.hr-feature-card:hover::before {
    opacity: 1;
}

.hr-feature-card:nth-child(1) { animation-delay: 0.1s; --card-accent: #6366F1; --card-accent-end: #818CF8; }
.hr-feature-card:nth-child(2) { animation-delay: 0.15s; --card-accent: #8B5CF6; --card-accent-end: #A78BFA; }
.hr-feature-card:nth-child(3) { animation-delay: 0.2s; --card-accent: #EC4899; --card-accent-end: #F472B6; }
.hr-feature-card:nth-child(4) { animation-delay: 0.25s; --card-accent: #10B981; --card-accent-end: #34D399; }
.hr-feature-card:nth-child(5) { animation-delay: 0.3s; --card-accent: #F59E0B; --card-accent-end: #FBBF24; }
.hr-feature-card:nth-child(6) { animation-delay: 0.35s; --card-accent: #3B82F6; --card-accent-end: #60A5FA; }
.hr-feature-card:nth-child(7) { animation-delay: 0.4s; --card-accent: #EF4444; --card-accent-end: #F87171; }
.hr-feature-card:nth-child(8) { animation-delay: 0.45s; --card-accent: #06B6D4; --card-accent-end: #22D3EE; }

.feature-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.hr-feature-card:hover .feature-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.hr-feature-card h4 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.hr-feature-card p {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Card Icon Variants */
.icon-indigo { background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05)); color: #6366F1; }
.icon-violet { background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05)); color: #8B5CF6; }
.icon-pink { background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05)); color: #EC4899; }
.icon-emerald { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05)); color: #10B981; }
.icon-amber { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05)); color: #F59E0B; }
.icon-blue { background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05)); color: #3B82F6; }
.icon-red { background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05)); color: #EF4444; }
.icon-cyan { background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05)); color: #06B6D4; }

/* Compliance Section */
.compliance-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 2rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.compliance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.compliance-content {
    position: relative;
    z-index: 2;
}

.compliance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.compliance-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.compliance-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.compliance-badge i {
    font-size: 1.5rem;
    color: #10b981;
}

.compliance-badge span {
    color: white;
    font-weight: 500;
    font-size: 0.9375rem;
}

/* Module Preview Cards */
.module-preview-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
}

.module-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.module-icon-inventory { background: #dcfce7; color: #16a34a; }
.module-icon-finance { background: #fef3c7; color: #d97706; }
.module-icon-pos { background: #e0e7ff; color: #4f46e5; }

.module-preview-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.module-preview-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.module-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6366F1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
}

.module-link:hover {
    color: #4f46e5;
    gap: 0.625rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    background-size: 200% 200%;
    animation: gradient-shift 10s ease infinite;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 30%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-btn {
    background: white;
    color: #6366F1;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #4f46e5;
}

/* Avatar Color Variants */
.bg-indigo-lt { background-color: rgba(99, 102, 241, 0.15) !important; color: #6366F1 !important; }
.bg-violet-lt { background-color: rgba(139, 92, 246, 0.15) !important; color: #8B5CF6 !important; }
.bg-pink-lt { background-color: rgba(236, 72, 153, 0.15) !important; color: #EC4899 !important; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .feature-tab-nav {
        justify-content: center;
    }

    .dashboard-preview {
        margin-bottom: 2rem;
    }

    .compliance-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .feature-tab-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .feature-tab-btn span {
        display: none;
    }

    .compliance-badges {
        gap: 0.75rem;
    }

    .compliance-badge {
        padding: 0.75rem 1rem;
    }
}