/* ========================================
   NEURON DEVICE SDK - CONSOLIDATED CSS
   ======================================== */

/* ========================================
   CSS VARIABLES & ROOT STYLES
   ======================================== */
:root {
    /* Color Palette */
    --primary-color: #2d7ff9;
    --primary-hover: #1a6dd8;
    --primary-dark: #3a56d4;
    --secondary-color: #a29bfe;
    --success-color: #4caf50;
    --success-hover: #45a049;
    --warning-color: #f6851b;
    --warning-hover: #e2761b;
    --danger-color: #dc3545;
    --danger-hover: #c82333;
    --error-color: #d63031;
    --info-color: #4cc9f0;
    
    /* Neutral Colors */
    --text-color: #2d3436;
    --text-light: #6c757d;
    --light-bg: #f8f9fa;
    --dark-bg: #2d3436;
    --white: #ffffff;
    --gray: #6c757d;
    --border-color: #dee2e6;
    
    /* Layout Variables */
    --sidebar-width: 250px;
    --header-height: 60px;
    --border-radius: 8px;
    --border-radius-sm: 16px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    
    /* Typography */
    --font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    --font-family-alt: 'Poppins', sans-serif;
    --font-family-mono: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: #ffffff;
    background-color: #000000;
    line-height: 1.6;
    min-height: 100vh;
    background: #000 url("/images/big-bg.png") center center / cover no-repeat fixed;
    position: relative;
    z-index: 1;
}
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.55);
    pointer-events: none;
    z-index: -10;
    animation: pulse-overlay 3s ease-in-out infinite;
}

@keyframes pulse-overlay {
    0% {
        background: rgba(0,0,0,0.45);
    }
    25% {
        background: rgba(0,0,0,0.68);
    }
    50% {
        background: rgba(0,0,0,0.75);
    }
    75% {
        background: rgba(0,0,0,0.52);
    }
    100% {
        background: rgba(0,0,0,0.45);
    }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Satoshi:wght@300;400;500;600;700&display=swap');

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-weight: 500;
    line-height: 1.27;
    letter-spacing: 0%;
    color: var(--white);
}

h1 {
    font-size: 30px;
    font-weight: 500;
    line-height: 38px;
}

h2 {
    font-size: 24px;
    font-weight: 500;
    line-height: 30px;
}

h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 25px;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

p.description {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4a6171;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: var(--header-height) 1fr;
    min-height: 100vh;
}

.grid-layout-sidebar {
    grid-area: sidebar;
}

.grid-layout-header {
    grid-area: header;
    grid-column: 1 / 3;
}

.grid-layout-main {
    grid-area: main;
}

/* Flexbox Layout */
.flex-layout {
    display: flex;
    min-height: 100vh;
}

.flex-layout-left {
    flex: 1 1 0;
}

.flex-layout-right {
    width: 640px;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   HEADER STYLES
   ======================================== */
header {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.header-title {
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
}

.welcome-message {
    font-size: 1.2rem;
    font-weight: bold;
}

/* ========================================
   SIDEBAR STYLES
   ======================================== */
aside, .sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    font-size: 1.1rem;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #4a6278;
}

.user-welcome {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.user-welcome h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.username {
    font-weight: bold;
    font-size: 1.3rem;
    color: white;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */
main {
    padding: 20px;
    overflow-y: auto;
}

.view {
    padding: 2rem;
    margin: 1rem 0;

}

main.dark-bg {
    background-color: var(--dark-bg);
    color: var(--text-color);
}

/* ========================================
   CARD COMPONENTS
   ======================================== */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin-bottom: 20px;
}

.success-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    padding: 3rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    transition: var(--transition);
}

.success-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.page-header h2 {
    margin: 0;
    font-weight: 600;
}

/* ========================================
   FORM STYLES
   ======================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;

}

input[type="text"],
input[type="email"],
input[type="password"],
.form-control {
    background-color: black;
    color: white;
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: border 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.2);
}

.form-select {
    border-radius: var(--border-radius);
    padding: 0.75rem;
    border: 1px solid var(--border-color);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
}

.row {
    display: flex;
    gap: 1rem;
}

.row > .form-group {
    flex: 1;
}

/* ========================================
   BUTTON STYLES
   ======================================== */
button, .btn {
    background: var(--white);
    color: black;
    border: none;
    padding: 0.9rem 1rem;
    border-radius: var(--border-radius-sm);
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-weight: 100;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0%;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover, .btn:hover {
    background: var(--primary-dark);
    opacity: 0.9;
}

button[type="submit"] {
    width: 100%;
    margin-top: 1.5rem;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover:not(:disabled) {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background-color: #b2bec3;
    cursor: not-allowed;
}

/* ========================================
   LOGOUT WIDGET
   ======================================== */
.logout-widget {

    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0px 1.25rem 1.5rem;
    border-bottom-left-radius: 24px;
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-size: 16px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0%;
}

.username-display {
    color: #fff;
}

.logout-btn {
    background: rgba(255,255,255,0.08); /* soft glassy look */
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 16px; /* pill shape */
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-size: 16px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(2px);
    outline: none;
    cursor: pointer;
}

.logout-btn:hover, .logout-btn:focus {
    background: rgba(255,255,255,0.18);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.add-device-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    width: 100%;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.add-device-btn:hover {
    background-color: #2980b9;
}

.button-link {
    color: white;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    transition: background 0.3s;
}

.button-link:hover {
    background: var(--primary-dark);
}

.button-row {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

/* ========================================
   MENU & NAVIGATION
   ======================================== */
.menu-item {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu-item:hover {
    background-color: #4a6278;
}

.menu-item.active {
    background-color: #2c3e50;
    font-weight: bold;
}

/* ========================================
   TABLE STYLES
   ======================================== */
.devices-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    margin-top: 20px;
}

.devices-table th,
.devices-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #333;
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
}

.devices-table th {
    background-color: #2a2a2a;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    border-bottom: 1px solid #404040;
}

.devices-table td {
    color: #ffffff;
    font-size: 14px;
    line-height: 20px;
}

.devices-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.devices-table tr:last-child td {
    border-bottom: none;
}

/* --- Glassy Blue Devices Table Only --- */
.devices-table {
    background-color: rgba(20, 30, 60, 0.60);
    border: 1px solid rgba(45, 127, 249, 0.18);
    box-shadow: 0 4px 20px rgba(45,127,249,0.10);
}

.devices-table th {
    background-color: rgba(45, 127, 249, 0.18);
    color: #a8c7fa;
    border-bottom: 1px solid rgba(45, 127, 249, 0.18);
}

.devices-table td {
    color: #e3e8f7;
}

.devices-table tr:hover {
    background-color: rgba(45, 127, 249, 0.08);
}

/* ========================================
   INFO DISPLAY
   ======================================== */
.account-info {
   margin: 45px 0px;
}

.info-grid {
    display: grid;
    grid-template-columns: 230px repeat(auto-fit, minmax(230px, 1fr));
    gap: 15px;
}

/* DID Information Grid */
.did-info-grid {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 20px;
    margin-top: 15px;
}

.did-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.did-label {
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6c757d;
    opacity: 0.7;
}

.did-value {
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #ffffff;
    word-break: break-word;
}

/* Collapsible Section */
.collapsible-section {
    margin-top: 20px;
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.collapsible-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.collapsible-title {
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    color: #ffffff;
}

.collapsible-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    fill: #ffffff;
}

.collapsible-arrow.expanded {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.collapsible-content.expanded {
    max-height: 500px;
    padding: 20px;
}

/* Grid layout for Account ID and Private Key */
.account-id-item {
    /* Grid item styling */
}

.private-key-item {
    /* Grid item styling */
}

.info-item {
    margin-bottom: 10px;
}

.info-label {
    font-weight: bold;
    color: #b0b0b0;
    margin-bottom: 5px;
}

.info-value {
    word-break: break-all;
    padding: 8px;
    background-color: #1a1a1a;
    border-radius: var(--border-radius-sm);
    color: #ffffff;
    border: 1px solid #404040;
}

/* ========================================
   COPYABLE INPUT STYLES
   ======================================== */
.copyable-input {
    background-color: black;
    color: white;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: border 0.2s ease-in-out;
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    position: relative;
    word-break: break-all;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyable-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.2);
}

.copyable-input .copy-text {
    flex: 1;
    margin-right: 10px;
    white-space: nowrap;
    overflow-x: auto;
    word-break: normal;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    padding: 0;
}

.copy-button {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    justify-content: center;
}

.copy-button:hover {
    background: rgba(255,255,255,0.18);
}

.copy-button .copy-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.copy-button.copied {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.copy-button.copied .copy-icon {
    fill: #4caf50;
}

.copy-button.failed {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.copy-button.failed .copy-icon {
    fill: #dc3545;
}

.contract-info {
    background-color: #2a2a2a;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #404040;
}

.contract-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ========================================
   STATUS & MESSAGES
   ======================================== */
#status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.success {
    background-color: rgba(0, 184, 148, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.error {
    background-color: rgba(214, 48, 49, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.loading {
    background-color: rgba(253, 203, 110, 0.1);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: var(--border-radius-sm);
}

#metamask-status {
    margin: 20px 0;
    padding: 15px;
    border-radius: var(--border-radius);
    display: none;
    font-size: 15px;
}

/* ========================================
   MODAL STYLES
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: black;
}

/* ========================================
   LIST STYLES
   ======================================== */
#devicesList {
    margin-top: 1rem;
}

.list-group-item {
    border-radius: var(--border-radius) !important;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.list-group-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.list-group-item h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.list-group-item p {
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

/* ========================================
   ICONS & DECORATIONS
   ======================================== */
.success-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.status-icon {
    margin-right: 0.5rem;
}

.wave-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: -1;
}

.wave-decoration svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.wave-decoration .shape-fill {
    fill: var(--primary-color);
    opacity: 0.1;
}

/* ========================================
   LANDING PAGE SPECIFIC
   ======================================== */
.left-pane {
    flex: 1 1 0;
    background: url("../images/header-background.png") center / cover no-repeat;
}

.right-pane {
    width: 640px;
    padding: 56px 48px;
    background: #070606;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

/* ========================================
   SUCCESS PAGE SPECIFIC
   ======================================== */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.login-link {
    margin-top: 2rem;
    display: inline-block;
}

/* ========================================
   LOADING OVERLAY
   ======================================== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-status {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .container {
        margin-top: 15px;
        padding: 0 15px;
    }
    
    .page-header {
        padding: 1.5rem;
    }
    
    .success-card {
        padding: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .flex-layout-right {
        width: 100%;
        padding: 20px;
    }
    
    .row {
        flex-direction: column;
    }
    
    .button-row {
        flex-direction: column;
    }
    
    .modal-content {
        width: 90%;
        margin: 5% auto;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .page-header {
        padding: 1rem;
    }
}

.label-large {
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 38px;
    letter-spacing: 0;
    color: #fff;
}

label {
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 38px;
    letter-spacing: 0;
    color: #fff;
}

/* Flashy custom scrollbar for terms and conditions */
.terms-scroll::-webkit-scrollbar {
    width: 10px;
}
.terms-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2d7ff9 0%, #1a6dd8 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(45,127,249,0.18);
}
.terms-scroll::-webkit-scrollbar-track {
    background: rgba(40,40,60,0.18);
    border-radius: 8px;
}

.terms-scroll {
    max-height: 220px;
    overflow-y: auto;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 1rem;
    margin: 2rem 0 3rem 0;
    color: #ccc;
    font-size: 15px;
    line-height: 1.8;
    border: 1px solid rgba(255,255,255,0.08);
    scrollbar-width: thin;
    scrollbar-color: #2d7ff9 #222;
} 

/* --- Modern Glassy Download Section --- */
.download-panels {
    display: grid;
    grid-template-columns: 300px  1fr;
    gap: 3rem;
    margin: 0;
    position: relative;

    background: none;
    z-index: 1;
    align-items: start;
}
.download-panel {
    padding: 2.5rem 0 2.5rem 0;
    min-width: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.panel-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 2.2rem;
}
.panel-title {
    font-size: 24px;
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-weight: 500;
    line-height: 30px;
    color: #fff;
    letter-spacing: 0%;
    margin-right: 0.5rem;
}
.panel-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}
.panel-info svg {
    vertical-align: middle;
}
.panel-content {
    display: flex;
    flex-direction: column;
    gap: 1.7rem;
    align-items: stretch;
}
.dl-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: rgba(255,255,255,0.98);
    border: none;
    border-radius: 16px;
    color: #222;
    font-size: 16px;
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0%;
    padding: 1.3rem 2rem;
    margin-bottom: 1.3rem;
    box-shadow: 0 2px 12px rgba(45,127,249,0.10);
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.18s;
    position: relative;
    gap: 1.3rem;
    min-width: 0;
}
.dl-btn:last-child { margin-bottom: 0; }
.dl-btn:hover, .dl-btn:focus {
    background: #eaf1fb;
    color: #2d7ff9;
    transform: translateY(-2px) scale(1.03);
}
.dl-icon {
    display: flex;
    align-items: center;
    margin-right: 1.3rem;
    font-size: 1.5rem;
}
.os-label {
    color: #a8c7fa;
    font-size: 1.08rem;
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    margin-bottom: 0.3rem;
    margin-top: 0.2rem;
    font-weight: 500;
}
.os-select {
    background: rgba(20, 30, 60, 0.45);
    color: #fff;
    border: 1.5px solid #2d7ff9;
    border-radius: 10px;
    font-size: 1.18rem;
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    padding: 0.7rem 1.5rem;
    margin-bottom: 0.7rem;
    outline: none;
    margin-right: 1rem;
    width: 80%;
    min-width: 120px;
    max-width: 260px;
    box-shadow: 0 1px 4px rgba(45,127,249,0.04);
    font-weight: 600;
    transition: none;
}
.os-select:focus {
    border-color: #a8c7fa;
}
.code-info-banner.code-info-banner-white {
    background: rgba(255,255,255,0.98);
    color: #222;
    border-radius: 10px 10px 0 0;
    padding: 0.7rem 1.3rem;
    font-size: 1.08rem;
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    font-weight: 500;
}
.code-info-banner.code-info-banner-white a {
    color: #2d7ff9;
    text-decoration: underline;
    font-weight: 600;
}
.terminal-view.terminal-white-border {
    background: rgba(20, 30, 60, 0.65);
    border-radius: 0 0 14px 14px;
    border: 1.5px solid rgba(255,255,255,0.18);
    border-top: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    padding: 1.5rem 1.7rem 2.5rem 1.7rem;
    width: 100%;
    position: relative;
    font-family: 'Fira Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
    color: #e3e8f7;
    font-size: 1.08rem;
    line-height: 1.8;
    overflow-x: auto;
    margin-bottom: 0.2rem;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.terminal-view.terminal-white-border pre {
    margin: 0;
    background: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: pre-line;
    width: 100%;
    box-sizing: border-box;
}
.copy-terminal-btn {
    position: absolute;
    bottom: 1.6rem;
    right: 1.2rem;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    justify-content: center;
    z-index: 2;
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
}
.copy-terminal-btn:hover, .copy-terminal-btn:focus {
    background: rgba(255,255,255,0.18);
}
.copy-terminal-btn.copied {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.copy-terminal-btn.failed {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}
.terminal-label {
    position: absolute;
    left: 1.7rem;
    bottom: 1.6rem;
    background: rgba(35,39,46,0.85);
    color: #fff;
    font-size: 0.92rem;
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    border-radius: 7px;
    padding: 0.22rem 0.9rem;
    letter-spacing: 0.04em;
    opacity: 0.92;
    pointer-events: none;
    font-weight: 600;
}
.bash-comment {
    color: #8b949e;
    font-style: italic;
    display: block;
}
.bash-cmd {
    color: #2d7ff9;
    font-weight: 700;
}
.bash-arg {
    color: #a8c7fa;
}
.bash-url {
    color: #2dd4bf;
    text-decoration: underline;
    font-weight: 600;
}
@media (max-width: 1100px) {
    .download-panels {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        padding: 2vw 0;
        left: 0;
        margin-left: 0;
        margin-right: 0;
    }
    .download-panel {
        max-width: 98vw;
        padding: 1.5rem 0.7rem 1.5rem 0.7rem;
    }
} 

.code-info-banner.code-info-banner-white {
    background: #fff;
    color: #222;
    border-radius: 7px 7px 0 0;
    padding: 0.6rem 1.1rem;
    font-size: 1rem;
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.code-info-banner.code-info-banner-white a {
    color: #2d7ff9;
    text-decoration: underline;
    font-weight: 500;
}
.terminal-view.terminal-white-border {
    background: #181c20;
    border-radius: 0 0 10px 10px;
    border: 1.5px solid #e5e7eb;
    border-top: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.2rem 1.5rem 2.2rem 1.5rem;
    width: 100%;
    position: relative;
    font-family: 'Fira Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
    color: #e3e8f7;
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: auto;
    margin-bottom: 0.2rem;
    box-sizing: border-box;
}
.terminal-view.terminal-white-border pre {
    margin: 0;
    background: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: pre-line;
    width: 100%;
    box-sizing: border-box;
}
.bash-comment {
    color: #8b949e;
    font-style: italic;
    display: block;
}
.bash-cmd {
    color: #2d7ff9;
    font-weight: 600;
}
.bash-arg {
    color: #a8c7fa;
}
.bash-url {
    color: #2dd4bf;
    text-decoration: underline;
}
.terminal-label {
    position: absolute;
    left: 1.5rem;
    bottom: 1.6rem;
    background: #23272e;
    color: #fff;
    font-size: 0.85rem;
    font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
    border-radius: 5px;
    padding: 0.18rem 0.7rem;
    letter-spacing: 0.04em;
    opacity: 0.85;
    pointer-events: none;
}
.panel-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
}
.right-panel {
}
.right-panel .panel-content {
    align-items: stretch;
} 

.download-panel.left-panel {
    background: none !important;
    display: flex;
    flex-direction: column;
}
.download-panel.left-panel .panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
} 
.dl-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: none;
}
.dl-btn:hover, .dl-btn:focus {
    background: rgba(255,255,255,0.12) !important;
    color: #fff;
    border-color: #2d7ff9;
} 

.code-info-banner.code-info-banner-white + .code-editor-block,
.code-info-banner.code-info-banner-white + pre.line-numbers {
    margin-top: -1.7rem;
} 

.code-block-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.code-editor-block {
  height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  background: rgba(20, 30, 60, 0.65);
  border-radius: 14px 14px 14px 14px;
  border: 1.5px solid rgba(255,255,255,0.18);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: hidden;
}
.terminal-lines {
  display: flex;
  flex-direction: column;
  font-family: 'Fira Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #e3e8f7;
  margin: 0;
  padding: 0;
}
.line {
  display: flex;
  align-items: flex-start;
  white-space: pre;
}
.line-number {
  display: inline-block;
  width: 2.2em;
  min-width: 2.2em;
  text-align: right;
  color: #6c757d;
  opacity: 0.7;
  user-select: none;
  margin-right: 1.2em;
  font-size: 1em;
} 

/* Prism.js overrides for glassy terminal look */
.code-editor-block pre[class*="language-"] {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
.code-editor-block .line-numbers-rows {
  border-right: none;
  background: transparent;
}
.code-editor-block .line-numbers-rows > span:before {
  color: #6c757d;
  opacity: 0.7;
  font-size: 1em;
  min-width: 2.2em;
  text-align: right;
  padding-right: 1.2em;
}
.code-editor-block pre.line-numbers {
  padding-left: 3.2em !important;
}
.code-editor-block code {
  color: #e3e8f7;
  font-family: 'Fira Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 1.08rem;
  line-height: 1.8;
} 

.os-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.7rem;
}
.os-label {
  margin-bottom: 0;
  margin-top: 0;
  font-size: 1.08rem;
  font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
  color: #a8c7fa;
  font-weight: 500;
}
.os-select {
  background-color: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  font-size: 1.18rem;
  font-family: 'Satoshi Variable', 'Satoshi', sans-serif;
  padding: 0.9rem 2rem;
  box-shadow: none;
  font-weight: 600;
  outline: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  min-width: 160px;
  max-width: 260px;
  appearance: none;
}
.os-select:focus, .os-select:hover {
  background-color: rgba(255,255,255,0.12);
  color: #fff;
  border-color: #2d7ff9;
} 

.os-row {
  position: relative;
}
.os-select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2em;
  padding-right: 3.2em;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
} 

.os-select option {
    background-color: rgb(28,30,34);
}

.right-panel {
    max-width: 800px;
}

pre.language-bash {
    scrollbar-color: rgb(0,0,0) rgb(28,30,34);
    height: 180px;
}

.dl-btn-3d {
    box-shadow: 0 8px 24px rgba(45,127,249,0.25), 0 2px 4px rgba(0,0,0,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,248,255,0.98) 100%);
    border: 1px solid rgba(45,127,249,0.22);
}
.dl-btn-3d:hover, .dl-btn-3d:focus {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 28px rgba(45,127,249,0.30), 0 4px 8px rgba(0,0,0,0.10);
}
.dl-btn-3d:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 6px 18px rgba(45,127,249,0.20), 0 2px 4px rgba(0,0,0,0.10);
}
