:root {
    --bg: #0a0a0f;
    --bg2: #12121a;
    --bg3: #1a1a25;
    --bg4: #252535;
    --text: #ffffff;
    --text2: #b8bcc8;
    --text3: #8892b0;
    --border: #2d3748;
    --blue: #4a9eff;
    --blue-glow: rgba(74, 158, 255, 0.15);
    --green: #4ade80;
    --green-glow: rgba(74, 222, 128, 0.15);
    --orange: #f97316;
    --orange-glow: rgba(249, 115, 22, 0.15);
    --red: #ef4444;
    --purple: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.15);
    --yellow: #eab308;
    --pink: #ec4899;
    --pink-glow: rgba(236, 72, 153, 0.15);
}

.infra-dashboard, .infra-dashboard * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.infra-dashboard {
    font-size: 105%;
    /*font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;*/
    /*background: radial-gradient(circle at 20% 50%, #1a1a2e 0%, #16213e 50%, #0a0a0f 100%);*/
    color: var(--text);
    /*min-height: 100vh;*/
    line-height: 1.6;
    position: relative;
}

.infra-dashboard body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: */
    /*    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),*/
    /*    radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),*/
    /*    radial-gradient(circle at 60% 60%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);*/
    pointer-events: none;
    z-index: -1;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); }
    50% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.2); }
}

/*.infra-dashboard header {*/
/*    !*background: linear-gradient(135deg, rgba(26, 26, 37, 0.95) 0%, rgba(18, 18, 26, 0.95) 100%);*!*/
/*    border-bottom: 2px solid transparent;*/
/*    border-image: linear-gradient(90deg, var(--blue), var(--purple), var(--orange)) 1;*/
/*    !*background: linear-gradient(135deg, #21262d 0%, #30363d 100%);*!*/
/*    border-bottom: 1px solid #30363d;*/
/*    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);*/
/*    padding: 2rem 0;*/
/*    margin-bottom: 3rem;*/
/*}*/

.infra-dashboard .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.infra-dashboard .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/*.infra-dashboard .header-text h1 {*/
/*    font-size: 2.5rem;*/
/*    font-weight: 700;*/
/*    color: #58a6ff;*/
/*    margin-bottom: 0.5rem;*/
/*    letter-spacing: -0.02em;*/
/*}*/

.subtitle {
    font-size: 1.1em;
    color: #8b949e;
    font-weight: 400;
}

.input-section {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: #21262d;
    border-radius: 16px;
    border: 1px solid #30363d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 0.8rem;
}

.form-group input {
    width: 200px;
    padding: 0.8rem 1.2rem;
    font-size: 1.1em;
    font-family: inherit;
    background: #0d1117;
    border: 2px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    text-align: center;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
    transform: translateY(-1px);
}

.info-text {
    font-size: 0.9em;
    color: #8b949e;
    margin-top: 0.5rem;
}

.btn {
    background: linear-gradient(135deg, var(--green) 0%, #00cc70 100%);
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1em;
    font-weight: 600;
    font-family: inherit;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(0, 255, 136, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 16px rgba(0, 255, 136, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #00ff88 0%, var(--green) 100%);
    border-color: rgba(0, 255, 136, 0.3);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: subtle-pulse 3s infinite;
}

@keyframes subtle-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.75; }
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-text::before {
    display: none;
}

.info-display {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.info-display.hidden {
    display: none !important;
    margin-bottom: 0;
}

.info-display:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

.info-display h2 {
    font-size: 2em;
    font-weight: 700;
    color: #58a6ff;
    text-align: center;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));*/
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.info-card {
    background: linear-gradient(135deg, rgba(26, 26, 37, 0.7) 0%, rgba(37, 37, 53, 0.5) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.info-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.card-header h3 {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    background: linear-gradient(135deg, #58a6ff 0%, #1f6feb 100%);
    box-shadow: 0 4px 16px rgba(88, 166, 255, 0.3);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    overflow: hidden;
}

.infrastructure-section {
    margin-bottom: 1rem;
}

.infrastructure-section:last-child {
    margin-bottom: 0;
}

.infrastructure-section h4 {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.copy-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    position: relative;
    flex-wrap: wrap;
}

.info-label {
    font-weight: 600;
    color: var(--text2);
    min-width: 45px;
    flex-shrink: 0;
}

.ip-address, .service-url {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--green);
    background: rgba(74, 222, 128, 0.08);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    box-shadow: none;
    font-size: 0.9em;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

.service-url {
    color: var(--blue);
    background: rgba(74, 158, 255, 0.08);
    border-color: rgba(74, 158, 255, 0.2);
}

.copy-btn, .copy-btn-small {
    background: #30363d;
    border: 1px solid #484f58;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.copy-btn-small {
    min-width: 28px;
    height: 28px;
    padding: 0.3rem;
}

.copy-btn:hover, .copy-btn-small:hover {
    background: #484f58;
    border-color: #58a6ff;
    transform: scale(1.05);
}

.copy-btn.copied, .copy-btn-small.copied {
    background: #238636;
    border-color: #2ea043;
}

.copy-icon {
    font-size: 0.9em;
}

.copy-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #484f58;
    color: #f0f6fc;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.copy-tooltip.show {
    opacity: 1;
}

.ip-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /*max-height: 300px;*/
    overflow-y: auto;
}

.vm-container {
    margin-bottom: 1rem;
}

.vm-item {
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid rgba(74, 158, 255, 0.15);
    border-radius: 12px;
    padding: 1.2rem;
    margin: 0 5px; /* same amount as for hover transform */
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.vm-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.vm-item:hover {
    border-color: rgba(74, 158, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(5px);
}

.vm-header {
    margin-bottom: 0.8rem;
}

.vm-label {
    font-weight: 600;
    color: #58a6ff;
    font-size: 1em;
}

.vm-ips {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.url-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ip-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    flex-wrap: wrap;
}

.ip-label {
    font-size: 0.95em;
    color: var(--text2);
    min-width: 65px;
    font-weight: 600;
    flex-shrink: 0;
}

.vm-ip {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--green);
    background: rgba(74, 222, 128, 0.08);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    font-size: 0.85em;
    box-shadow: none;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}
.url-info {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(230, 230, 230, 0.4);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    font-size: 0.95em;
    box-shadow: none;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}
.auth-details {
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid rgba(236, 72, 153, 0.15);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: none;
}

.auth-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    position: relative;
}

.auth-row:last-child {
    margin-bottom: 0;
}

.auth-label {
    font-weight: 700;
    color: var(--text2);
    min-width: 80px;
    flex-shrink: 0;
}

.auth-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--pink);
    background: rgba(236, 72, 153, 0.08);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(236, 72, 153, 0.2);
    box-shadow: none;
    font-size: 0.9em;
    word-break: break-all;
    flex: 1;
    min-width: 0;
}

.error-message {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: #f85149;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 1000px) {
    .container {
        padding: 0 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .card-header {
        flex-direction: row;
        align-items: center;
        gap: 0.8rem;
    }
    
    .card-header h3 {
        font-size: 1.2em;
        margin: 0 0 0 0.8rem;
    }
    
    .copy-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    
    .ip-address, .service-url, .auth-value, .vm-ip, .url-info {
        width: 100%;
        text-align: center;
        word-break: break-all;
    }
    
    .auth-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    
    .auth-label {
        min-width: auto;
        text-align: center;
    }
    
    .ip-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    
    .ip-label {
        min-width: auto;
        text-align: center;
    }
    
    .vm-ips, .url-info {
        gap: 1rem;
    }
    
    .copy-btn, .copy-btn-small {
        align-self: center;
        min-width: 44px;
        height: 44px;
    }
    
    .downloads-list {
        padding: 0.8rem;
    }

    .workstations-vm-pane {
        grid-row: span 1;
    }
}

.infra-dashboard ::selection { background: rgba(88, 166, 255, 0.3); color: var(--text); }

.env-details {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 1.2rem;
}

.env-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    position: relative;
}

.env-row:last-child {
    margin-bottom: 0;
}

.env-label {
    font-weight: 600;
    color: #8b949e;
    min-width: 120px;
}

.env-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(88, 166, 255, 0.2);
    font-size: 0.9em;
}

/* Card-specific styling */
.workstations-vm-pane {
    grid-row: span 2;
    border-left: 2px solid var(--blue);
}

.workstations-vm-pane .card-icon {
    background: linear-gradient(135deg, var(--blue) 0%, #3b82f6 100%);
    box-shadow: 0 4px 15px var(--blue-glow);
}

.services-pane {
    border-left: 2px solid var(--orange);
}

.services-pane .card-icon {
    background: linear-gradient(135deg, var(--orange) 0%, #ea580c 100%);
    box-shadow: 0 4px 15px var(--orange-glow);
}

.downloads-pane {
    border-left: 2px solid var(--green);
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}

.cert-file-item {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-file-item:last-child {
    border-bottom: none;
}

.cert-file-item:hover {
    background: rgba(74, 222, 128, 0.05);
    border-radius: 4px;
    padding: 0.4rem 0.5rem;
    margin: 0 -0.5rem;
}

.cert-file-link {
    font-size: 1em;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    color: var(--green) !important;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    display: block;
    width: 100%;
}

.cert-file-link:hover {
    color: #00ff88 !important;
    text-decoration: underline;
}

.infra-dashboard a:link { color: lightskyblue; }
.infra-dashboard a:visited { color: #6d4b8d; }
.infra-dashboard a:hover { color: #ffffff; }
.infra-dashboard a:active { color: #ff4040; text-decoration:none; font-weight:normal; }

