/* RustCore Server Monitoring Styles */

.rc-servers-page {
    padding: 30px 0 60px;
}

.rc-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    flex: 0 0 10px;
}

.rc-status-dot.online {
    background: #52c41a;
    box-shadow: 0 0 8px rgba(82, 196, 26, 0.6);
}

.rc-status-dot.offline {
    background: #ff4d4f;
}

.rc-project-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rc-project-card {
    border: 1px solid var(--rc-border);
    background: var(--rc-panel);
    padding: 24px;
    border-radius: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rc-project-card.is-promoted {
    border: 1px solid var(--rc-accent2);
    background: linear-gradient(135deg, rgba(216, 111, 50, 0.08) 0%, rgba(21, 25, 27, 0.98) 100%);
    box-shadow: 0 0 20px rgba(229, 138, 69, 0.15);
}

.rc-badge-vip {
    display: inline-block;
    background: var(--rc-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.rc-project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 14px;
}

.rc-project-title-area h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.rc-project-meta,
.rc-project-count {
    font-size: 0.85rem;
    color: var(--rc-muted);
}

.rc-project-servers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rc-server-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.rc-extra-servers {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.rc-extra-servers.is-open {
    display: grid !important;
}

.rc-server-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    gap: 14px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.rc-server-row:hover {
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.rc-server-row-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.rc-server-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.rc-server-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 8px;
}

.rc-tag-map {
    background: rgba(229, 138, 69, 0.14) !important;
    color: var(--rc-accent2, #e58a45) !important;
}

.rc-server-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.rc-server-info strong {
    font-size: 0.92rem;
    color: var(--rc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rc-server-tags {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.rc-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    background: rgba(255, 255, 255, 0.08);
    color: var(--rc-muted);
    white-space: nowrap;
    box-sizing: border-box;
}

.rc-server-online {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rc-muted);
    white-space: nowrap;
}

.rc-copy-btn {
    background: var(--rc-panel2);
    border: 1px solid var(--rc-border);
    color: var(--rc-text);
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.78rem;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.rc-copy-btn:hover {
    background: var(--rc-accent);
    color: #fff;
    transform: translateY(-1px);
}

/* Accordion Toggle Button */
.rc-accordion-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed var(--rc-border, rgba(255, 255, 255, 0.12));
    color: var(--rc-accent2, #e58a45);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    margin-top: 12px;
    transition: all 0.2s ease;
    text-align: center;
    box-sizing: border-box;
}

.rc-accordion-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--rc-accent, #d86f32);
    color: #fff;
}

/* Search & Filter Bar Controls */
.rc-servers-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    background: var(--rc-panel, #15191b);
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--rc-border, rgba(255, 255, 255, 0.08));
    align-items: center;
}

.rc-servers-filters input[type="search"],
.rc-servers-filters select {
    background: #0d0f10 !important;
    border: 1px solid var(--rc-border, rgba(255, 255, 255, 0.12)) !important;
    color: var(--rc-text, #f1f3f2) !important;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
    min-height: 42px;
}

.rc-servers-filters input[type="search"] {
    flex: 1;
    min-width: 220px;
}

.rc-servers-filters select {
    cursor: pointer;
    min-width: 150px;
}

.rc-servers-filters select option {
    background: #15191b !important;
    color: #f1f3f2 !important;
}

.rc-servers-filters button[type="submit"] {
    min-height: 42px;
    padding: 0 24px;
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .rc-servers-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .rc-servers-filters input[type="search"],
    .rc-servers-filters select,
    .rc-servers-filters button[type="submit"] {
        width: 100%;
    }
    .rc-project-card {
        padding: 16px 12px;
    }
    .rc-server-grid,
    .rc-extra-servers {
        grid-template-columns: 1fr;
    }
    .rc-server-row {
        padding: 10px 12px;
    }
    .rc-server-single-grid {
        grid-template-columns: 1fr;
    }
    .rc-server-map-thumb {
        width: 48px;
        height: 48px;
        border-radius: 8px;
    }
}
