/* PioneersTech admin page styles - generated from the supplied AdminPages.css and app.css */
:host {
    display: block;
    color: var(--text-color, #ffffff);
    font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

.admin-shell {
    width: min(1280px, calc(100vw - 3rem));
    margin: 0 auto;
    padding: 9rem 0 4rem;
}

.admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin: .35rem 0 0;
}

.admin-subtitle {
    color: var(--text-muted, #9ca3af);
    margin-top: .5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 1.5rem;
    align-items: start;
}

.panel {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 1.5rem;
    padding: 1.5rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px -32px rgba(0, 0, 0, .85);
    overflow: hidden;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-input,
.form-input,
.form-textarea {
    width: 100%;
    min-height: 44px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: .9rem;
    padding: .8rem 1rem;
    outline: none;
    font: inherit;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

    .search-input:focus,
    .form-input:focus,
    .form-textarea:focus {
        border-color: rgba(96, 165, 250, .55);
        background: rgba(255, 255, 255, .07);
        box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
    }

    .search-input::placeholder,
    .form-input::placeholder,
    .form-textarea::placeholder {
        color: rgba(255, 255, 255, .42);
    }

.form-textarea {
    min-height: 110px;
    resize: vertical;
}

.form-grid {
    display: grid;
    gap: .9rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

    .data-table th {
        color: var(--text-muted, #9ca3af);
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: .12em;
        text-align: left;
        padding: .8rem;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        white-space: nowrap;
    }

    .data-table td {
        padding: .9rem .8rem;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
        color: rgba(255, 255, 255, .88);
        vertical-align: top;
        line-height: 1.5;
    }

    .data-table tbody tr:hover td {
        background: rgba(255, 255, 255, .025);
    }

.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 40px;
    border-radius: .8rem;
    padding: .7rem 1rem;
    font-weight: 800;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, .1);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-secondary {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.btn-danger {
    background: rgba(239, 68, 68, .16);
    color: #fecaca;
    border-color: rgba(239, 68, 68, .35);
}

    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-danger:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px -18px rgba(255, 255, 255, .35);
    }

.actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.status-message {
    margin-bottom: 1rem;
    padding: .8rem 1rem;
    border-radius: 1rem;
    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .25);
    color: #bfdbfe;
}

.empty-state {
    color: var(--text-muted, #9ca3af);
    padding: 2rem;
    text-align: center;
}

.text-muted {
    color: var(--text-muted, #9ca3af);
}

.text-gradient {
    background: linear-gradient(to right, var(--brand-400, #60a5fa), var(--accent-400, #c084fc), var(--brand-400, #60a5fa));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, .1);
    border: 1px solid rgba(59, 130, 246, .2);
    color: var(--brand-400, #60a5fa);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.status-dot {
    position: relative;
    display: inline-flex;
    width: .5rem;
    height: .5rem;
}

.status-dot-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background: var(--brand-400, #60a5fa);
    opacity: .75;
    animation: ping 1s cubic-bezier(0, 0, .2, 1) infinite;
}

.status-dot-core {
    position: relative;
    width: .5rem;
    height: .5rem;
    border-radius: 9999px;
    background: var(--brand-500, #3b82f6);
}

.card-title {
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.bento-card {
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all .3s ease;
    color: inherit;
    text-decoration: none;
}

    .bento-card:hover {
        transform: translateY(-4px);
        border-color: rgba(96, 165, 250, .3);
        box-shadow: 0 20px 40px -20px rgba(59, 130, 246, .15);
    }

.card-text {
    color: var(--text-muted, #9ca3af);
    line-height: 1.6;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .admin-shell {
        width: min(100% - 2rem, 1280px);
        padding-top: 8rem;
    }

    .admin-header, .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
