/* ==========================================================================
   365Payments Admin — Standard Payment Core Desktop (v3)
   Branding: Gold, Charcoal, White
   Coding Convention: pc- prefix (Payment Core)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --pc-gold: #b8962e;
    --pc-gold-light: #d4af50;
    --pc-gold-dim: rgba(184, 150, 46, 0.1);
    
    --pc-charcoal: #0f0f0f;
    --pc-gray-dark: #1a1a1a;
    --pc-gray-medium: #2a2a2a;
    --pc-gray-light: #f4f4f4;
    
    --pc-white: #ffffff;
    --pc-text: #1a1a1a;
    --pc-text-muted: #666666;
    
    --pc-radius: 4px;
    --pc-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --pc-transition: all 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--pc-gray-light);
    color: var(--pc-text);
    -webkit-font-smoothing: antialiased;
}

.pc-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* ─── Shared Layout ────────────────────────────────────────────── */

.pc-auth-modal-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pc-charcoal);
}

.pc-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--pc-gray-dark);
    padding: 60px 40px;
    border: 1px solid var(--pc-gold-dim);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.pc-layout-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* Sidebar */
.pc-sidebar {
    background: var(--pc-charcoal);
    color: var(--pc-white);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.pc-brand-header {
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pc-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 30px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--pc-transition);
}

.pc-nav-link:hover, .pc-nav-link.active {
    color: var(--pc-gold);
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--pc-gold);
}

/* Content Area */
.pc-main {
    padding: 50px 70px;
}

/* ─── Components ──────────────────────────────────────────────── */

.pc-section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.pc-data-card {
    background: var(--pc-white);
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--pc-shadow);
    margin-bottom: 30px;
}

.pc-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.pc-stat-box {
    background: var(--pc-white);
    padding: 25px;
    border-bottom: 3px solid var(--pc-gold);
    text-align: center;
}

.pc-stat-label {
    font-size: 0.7rem;
    color: var(--pc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.pc-stat-value {
    font-size: 1.8rem;
    color: var(--pc-charcoal);
}

.pc-table {
    width: 100%;
    border-collapse: collapse;
}

.pc-table th {
    text-align: left;
    padding: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pc-text-muted);
    border-bottom: 1px solid var(--pc-gray-light);
}

.pc-table td {
    padding: 18px 15px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--pc-gray-light);
}

/* Utility */
.pc-btn-primary {
    background: var(--pc-gold);
    color: var(--pc-white);
    padding: 14px 28px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pc-transition);
}

.pc-btn-primary:hover {
    background: var(--pc-gold-light);
}

.pc-pill {
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 99px;
}

.pc-pill-active { background: #E6FFFA; color: #2C7A7B; }
.pc-pill-alert  { background: #FFF5F5; color: #C53030; }

/* Responsive */
@media (max-width: 1100px) {
    .pc-layout-wrapper { grid-template-columns: 80px 1fr; }
    .pc-nav-link span, .pc-brand-header h2 { display: none; }
    .pc-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Badge System (Mining + Wallet Status Indicators) ─────────── */

.badge {
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 99px;
    display: inline-block;
    letter-spacing: 0.05em;
}

.badge-success { background: #E6FFFA; color: #2C7A7B; }
.badge-warning { background: #FFFFF0; color: #744210; }
.badge-danger  { background: #FFF5F5; color: #C53030; }
.badge-primary { background: #f0f0f0;  color: #555555; }
.badge-info    { background: #EBF8FF; color: #2B6CB0; }

@keyframes pulse-anim {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.6; }
}
.pulse { animation: pulse-anim 2s infinite; }

/* ─── Mining Node Cards ──────────────────────────────────────────── */

.node-hashrate-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease, background-color 0.4s ease;
}
.fill-good    { background: linear-gradient(90deg, #2C7A7B, #48bb78); }
.fill-low     { background: linear-gradient(90deg, #b7791f, #ecc94b); }
.fill-offline { background: #e2e8f0; }

/* ─── Monospace / TX Display ─────────────────────────────────────── */

code, .pc-mono {
    font-family: 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
    font-size: 0.8em;
    background: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
}

/* ─── Data Card Variant — Gold border ────────────────────────────── */
.pc-data-card-gold {
    background: var(--pc-white);
    padding: 30px;
    border: 1px solid rgba(184, 150, 46, 0.2);
    border-top: 3px solid var(--pc-gold);
    box-shadow: var(--pc-shadow);
    margin-bottom: 30px;
}

/* ─── Status Dot ─────────────────────────────────────────────────── */
.dot-online  { color: #38a169; font-size: 1em; }
.dot-offline { color: #C53030; font-size: 1em; }
.dot-idle    { color: #d69e2e; font-size: 1em; }

/* ─── Section Title With Subtitle ───────────────────────────────── */
.pc-section-subtitle {
    font-size: 0.75rem;
    color: var(--pc-text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin-top: 5px;
    margin-bottom: 30px;
    letter-spacing: 0;
}

/* ─── Table Hover Row Highlight ────────────────────────────────── */
.pc-table tbody tr:hover {
    background: rgba(184, 150, 46, 0.04);
}

/* ─── Sidebar Position Fix for Absolute Footer ─────────────────── */
.pc-sidebar {
    position: relative;
}

/* ─── Nav link badge (mining live indicator) ───────────────────── */
.pc-nav-link .nav-badge {
    margin-left: auto;
    font-size: 0.6rem;
    padding: 2px 7px;
}

