/* RR Global Group - Custom Styles for Enterprise Parent Portal */

:root {
    --group-blue: hsl(215, 95%, 60%);
    --group-amethyst: hsl(260, 85%, 65%);
    --group-gold: hsl(42, 90%, 55%);
    --group-dark-card: hsla(222, 48%, 10%, 0.88);
    --group-border: hsla(215, 95%, 60%, 0.2);
    --group-border-hover: hsla(260, 85%, 65%, 0.5);
}

.gradient-text-group {
    background: linear-gradient(135deg, hsl(210, 100%, 80%) 0%, var(--group-blue) 50%, var(--group-amethyst) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ecosystem Matrix Cards */
.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ecosystem-card {
    background: var(--group-dark-card);
    border: 1px solid var(--group-border);
    border-radius: 20px;
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ecosystem-card:hover {
    transform: translateY(-6px);
    border-color: var(--group-border-hover);
    box-shadow: 0 25px 50px rgba(0,0,0,0.45), 0 0 30px hsla(260, 85%, 65%, 0.12);
}

.ecosystem-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.entity-logo-box {
    height: 44px;
    display: flex;
    align-items: center;
}

.entity-logo-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.status-badge {
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.status-active {
    background: hsla(150, 85%, 42%, 0.15);
    border: 1px solid hsla(150, 85%, 42%, 0.4);
    color: hsl(150, 90%, 75%);
}

.status-loading {
    background: hsla(215, 95%, 60%, 0.15);
    border: 1px solid hsla(215, 95%, 60%, 0.4);
    color: hsl(215, 100%, 80%);
}

.status-indexing {
    background: hsla(42, 90%, 55%, 0.15);
    border: 1px solid hsla(42, 90%, 55%, 0.4);
    color: hsl(42, 95%, 75%);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.ecosystem-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.ecosystem-desc {
    color: var(--color-text-muted);
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 1.8rem;
}

.ecosystem-footer {
    padding-top: 1.2rem;
    border-top: 1px solid hsla(220, 20%, 30%, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.entity-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--group-blue);
    font-size: 0.92rem;
}

.entity-link:hover {
    color: hsl(215, 100%, 78%);
}

/* Group Synchronization Matrix Dashboard */
.sync-dashboard {
    background: var(--group-dark-card);
    border: 1px solid var(--group-border);
    border-radius: 24px;
    padding: 2.2rem;
    margin: 3.5rem 0;
    box-shadow: var(--shadow-lg);
}

.sync-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .sync-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.sync-progress-box {
    padding: 1rem 0;
}

.sync-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.sync-bar-track {
    width: 100%;
    height: 8px;
    background: hsla(220, 30%, 18%, 0.8);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.sync-bar-fill {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--group-blue) 0%, var(--group-amethyst) 100%);
    transition: width 1s ease;
}

.telemetry-feed {
    background: hsl(222, 55%, 5%);
    border: 1px solid hsla(215, 95%, 60%, 0.2);
    border-radius: 12px;
    padding: 1.2rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: hsl(215, 85%, 80%);
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.8;
}

.telemetry-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    border-bottom: 1px dashed hsla(220, 30%, 20%, 0.5);
    padding-bottom: 0.3rem;
    margin-bottom: 0.3rem;
}

.t-tag {
    color: var(--group-amethyst);
    font-weight: bold;
    flex-shrink: 0;
}

.t-ok {
    color: hsl(150, 85%, 50%);
    font-weight: bold;
}
