/* ---------------------------------------------------
   Dakidarts Numerology Core - Admin Styles
--------------------------------------------------- */

.dakidarts-admin-page {
    --dk-bg: #f5f7fb;
    --dk-card: #ffffff;
    --dk-card-border: #e4e9f2;
    --dk-primary: #1a4d8f;
    --dk-primary-700: #133a6b;
    --dk-accent: #f4b63b;
    --dk-text: #0f1b2d;
    --dk-muted: #5b6b7d;
    --dk-shadow: 0 12px 30px rgba(18, 38, 63, 0.08);
    --dk-radius: 18px;

    font-family: 'Space Grotesk', sans-serif;
    color: var(--dk-text);
    background: var(--dk-bg);
    padding: 28px;
    border-radius: 22px;
    box-shadow: var(--dk-shadow);
    margin: 24px 20px 40px 0;
    position: relative;
    overflow: hidden;
}

.dakidarts-admin-page * {
    box-sizing: border-box;
}

.dakidarts-admin-page::before {
    content: '';
    position: absolute;
    inset: -200px -120px auto auto;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(26, 77, 143, 0.2), transparent 70%);
    pointer-events: none;
}

.dakidarts-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    gap: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #eef3fb 100%);
    border: 1px solid var(--dk-card-border);
    border-radius: 22px;
    padding: 28px 30px;
    box-shadow: var(--dk-shadow);
    margin-bottom: 26px;
}

.dakidarts-hero--compact {
    grid-template-columns: minmax(0, 1fr);
}

.dakidarts-hero__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.dakidarts-logo {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(18, 38, 63, 0.15);
}

.dakidarts-hero h1 {
    font-size: 30px;
    margin: 0 0 10px;
}

.dakidarts-hero p {
    color: var(--dk-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 18px;
}

.dakidarts-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dakidarts-hero__meta {
    display: grid;
    gap: 12px;
    align-content: start;
}

.dakidarts-stat {
    padding: 14px 16px;
    background: var(--dk-card);
    border: 1px solid var(--dk-card-border);
    border-radius: 14px;
}

.dakidarts-stat__label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dk-muted);
    margin-bottom: 6px;
}

.dakidarts-stat__value {
    font-weight: 600;
    font-size: 14px;
    color: var(--dk-text);
    word-break: break-word;
}

.dakidarts-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 77, 143, 0.12);
    color: var(--dk-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
}

.dakidarts-pill--outline {
    background: transparent;
    border: 1px solid rgba(26, 77, 143, 0.2);
}

.dakidarts-hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.dakidarts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 22px;
}

.dakidarts-card {
    background: var(--dk-card);
    border: 1px solid var(--dk-card-border);
    border-radius: var(--dk-radius);
    padding: 22px;
    box-shadow: var(--dk-shadow);
}

.dakidarts-card--wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dakidarts-card--footer {
    display: flex;
    justify-content: flex-end;
}

.dakidarts-card__header h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.dakidarts-card__header p {
    margin: 0 0 18px;
    color: var(--dk-muted);
}

.dakidarts-card__actions {
    display: flex;
    gap: 12px;
}

.dakidarts-field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.dakidarts-label {
    font-weight: 600;
    color: var(--dk-text);
}

.dakidarts-admin-page input[type="text"],
.dakidarts-admin-page input[type="number"],
.dakidarts-admin-page input[type="password"],
.dakidarts-admin-page select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--dk-card-border);
    font-size: 14px;
    color: var(--dk-text);
    background: #fdfdff;
}

.dakidarts-help {
    font-size: 12px;
    color: var(--dk-muted);
    margin: 0;
}

.dakidarts-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dakidarts-link {
    color: var(--dk-primary);
    text-decoration: none;
    font-weight: 600;
}

.dakidarts-link:hover {
    color: var(--dk-primary-700);
}

.dakidarts-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.dakidarts-btn--primary {
    background: var(--dk-primary);
    color: #ffffff;
    border-color: var(--dk-primary);
}

.dakidarts-btn--primary:hover {
    background: var(--dk-primary-700);
    border-color: var(--dk-primary-700);
    color: #ffffff;
}

.dakidarts-btn--ghost {
    background: #ffffff;
    color: var(--dk-primary);
    border: 1px solid rgba(26, 77, 143, 0.25);
}

.dakidarts-btn--ghost:hover {
    color: var(--dk-primary-700);
    border-color: var(--dk-primary-700);
}

.dakidarts-radio-group {
    display: grid;
    gap: 12px;
}

.dakidarts-radio-card {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--dk-card-border);
    border-radius: 14px;
    background: #f9fbff;
    cursor: pointer;
}

.dakidarts-radio-card input {
    accent-color: var(--dk-primary);
}

.dakidarts-radio-card__title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dakidarts-radio-card__desc {
    font-size: 12px;
    color: var(--dk-muted);
}

.dakidarts-endpoint-list {
    display: grid;
    gap: 12px;
}

.dakidarts-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--dk-card-border);
    background: #f9fbff;
}

.dakidarts-toggle input {
    display: none;
}

.dakidarts-toggle__ui {
    width: 40px;
    height: 22px;
    background: #cbd5e1;
    border-radius: 999px;
    position: relative;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.dakidarts-toggle__ui::after {
    content: '';
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dakidarts-toggle input:checked + .dakidarts-toggle__ui {
    background: var(--dk-primary);
}

.dakidarts-toggle input:checked + .dakidarts-toggle__ui::after {
    transform: translateX(18px);
}

.dakidarts-toggle__content {
    display: grid;
}

.dakidarts-toggle__title {
    font-weight: 600;
}

.dakidarts-toggle__meta {
    font-size: 12px;
    color: var(--dk-muted);
}

.dakidarts-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.dakidarts-feature-card {
    background: var(--dk-card);
    border: 1px solid var(--dk-card-border);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: grid;
    gap: 12px;
    box-shadow: var(--dk-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dakidarts-feature-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.dakidarts-feature-card__body {
    padding: 0 18px 18px;
}

.dakidarts-feature-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.dakidarts-feature-card p {
    margin: 0;
    color: var(--dk-muted);
    font-size: 13px;
}

.dakidarts-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(18, 38, 63, 0.12);
}

.dakidarts-inline-error {
    margin-top: 6px;
    color: #b42318;
    font-size: 12px;
    font-weight: 600;
}

.dakidarts-param-tip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dakidarts-info-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 700;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 960px) {
    .dakidarts-hero {
        grid-template-columns: 1fr;
    }

    .dakidarts-card--wide {
        flex-direction: column;
        align-items: flex-start;
    }
}

.dakidarts-notice {
    position: fixed;
    top: 32px;
    right: 20px;
    z-index: 999999;
    min-width: 320px;
    max-width: 450px;
    padding: 18px 24px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(18, 38, 63, 0.2);
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    animation: dakidarts-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dakidarts-notice--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dakidarts-notice--error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dakidarts-notice__icon {
    font-size: 20px;
    flex-shrink: 0;
}

.dakidarts-notice__message {
    flex: 1;
}

.dakidarts-notice.dakidarts-notice--fade-out {
    animation: dakidarts-fade-out 0.4s ease forwards;
}

@keyframes dakidarts-slide-in {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes dakidarts-fade-out {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .dakidarts-admin-page {
        padding: 20px;
        margin-right: 10px;
    }

    .dakidarts-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dakidarts-notice {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}
