:root {
    --xahau-yellow: #fefe5d;
	--evernode-blue: #0a142f;
	--evernode-blue-dark: #10182a;
}

body {
	background: var(--evernode-blue-dark);
	color: var(--xahau-yellow);
	font-family: 'Share Tech Mono', monospace, 'Courier New', Courier;
	margin: 0;
	min-height: 100vh;
	overflow-x: hidden;
}

main {
    position: relative;
	z-index: 1;
}


/*  //////////////////////////////////////////////////////////  SETUP SECTION  //////////////////////////////////////////////////////////  */

.setup-info {
    max-width: 1200px;
    margin: auto;
    min-height:85vh;
    border-radius: 24px;
    box-shadow: 0 4px 32px #0a142f60;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ///////////////////////////////////////////// Hero Section ////////////////////////////////////////////////////// */

.hero {
    background: rgba(16, 24, 42, 0.85);
    border-radius: 22px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero h1 {
    font-size: 2.7rem;
    font-family: 'Share Tech Mono', monospace;
    color: var(--xahau-blue);
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 2px 16px #0a254f44, 0 0 2px #fefe5d44;
    margin: 10px;
}
.hero p {
    color: #b3c6e0;
    font-size: 1.2rem;
    max-width: 80%;
    margin: 10px;
}

/* //////////////////////////////////////////////////////////  NETWORK SELECTOR  //////////////////////////////////////////////////////////  */

.network-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin: 2rem;
}

.network-selector span {
    font-size: 2rem;
	color: var(--xahau-yellow);
	font-family: 'Share Tech Mono', monospace;
}

.network-btn {
    background: transparent;
    color: var(--xahau-blue);
    border: 2.5px solid var(--xahau-blue);
    padding: 0.5em 1em;
    border-radius: 2em;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s, filter 0.2s;
    opacity: 0.7;
    filter: grayscale(0.3);
}
.network-btn.active {
    background: var(--xahau-blue);
	color: var(--xahau-yellow);
	border-color: var(--xahau-yellow);
	box-shadow: 0 0 16px 4px var(--xahau-yellow), 0 0 8px #0ff2;
	opacity: 1;
	filter: none;
	z-index: 2;
	position: relative;
}
.network-btn:not(.active):hover, .network-btn:not(.active):focus {
    background: rgba(10, 20, 47, 0.15);
	color: var(--xahau-yellow);
	border-color: var(--xahau-yellow);
	opacity: 0.95;
	filter: grayscale(0);
	box-shadow: 0 0 8px #fefe5d44;
}
.network-btn:not(.active) {
    opacity: 0.6;
	filter: grayscale(0.5);
	cursor: pointer;
}

/* ///////////////////////////////////////////// Xahau Connection Section ////////////////////////////////////////////////////// */

.xahau-connection {
    margin: 1rem auto;
    padding: 1.2rem 2.2rem;
    background: rgba(16, 24, 42, 0.85);
    border-radius: 16px;
    box-shadow: 0 2px 16px #0a142f44;
    min-width: 70%;
    text-align: center;
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.xahau-connection:hover, .xahau-connection:focus {
    background: rgba(254, 254, 93, 0.85);
    box-shadow: 0 0 16px #fefe5d88;
}
.xahau-connection #xahau-network-connection {
    color: var(--xahau-yellow);
    font-size: 1.25rem;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.xahau-connection #xahau-ledger-info {
    color: #b3c6e0;
    font-size: 1.05rem;
    font-family: 'Share Tech Mono', monospace;
    margin: 0;
    transition: color 0.2s;
}
.xahau-connection:hover #xahau-network-connection,
.xahau-connection:focus #xahau-network-connection {
    color: var(--evernode-blue);
}
.xahau-connection:hover #xahau-ledger-info,
.xahau-connection:focus #xahau-ledger-info {
    color: var(--evernode-blue);
}

/* Ledger link and hash styles */
#xahau-ledger-info a {
    color: var(--xahau-yellow);
    text-decoration: underline;
    transition: color 0.2s, background 0.2s;
    border-radius: 4px;
}


.xahau-connection:hover #xahau-ledger-info,
.xahau-connection:focus #xahau-ledger-info {
    color: black;
}
.xahau-connection:hover #xahau-ledger-info a,
.xahau-connection:focus #xahau-ledger-info a {
    color: black;
}
#xahau-ledger-info a:hover, #xahau-ledger-info a:focus {
    color: black;
    background: none;
    outline: none;
}

/* ////////////////////////////////////////  QUICK ACTIONS SECTION  //////////////////////////////////// */

.quick-actions-section {
    width: 100%;
    max-width: 1200px;
    margin: 10px auto;
    border-radius: 22px;
    box-shadow: 0 4px 32px #0a142f60;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  
}

.quick-actions-title {
    font-size: 2.2rem;
    font-family: 'Share Tech Mono', monospace;
    color: var(--xahau-yellow);
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 2px 16px #0a254f44, 0 0 2px #fefe5d44;
}

.quick-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    width: 100%;
}

.quick-action-card,
.quick-action-card:link,
.quick-action-card:visited,
.quick-action-card:hover,
.quick-action-card:focus,
.quick-action-card:active {
    text-decoration: none !important;
}



.quick-action-card {
    background: rgba(16, 24, 42, 0.85);
    border-radius: 18px;
    box-shadow: 0 2px 16px #0a142f44, 0.3;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 320px;
    min-height: 270px;
    text-align: center;
    color: var(--xahau-yellow);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}
.quick-action-card:hover, .quick-action-card:focus {
    background: rgba(254, 254, 93, 0.85);
    color: var(--evernode-blue);
    box-shadow: 0 0 16px #fefe5d88;
    border-color: var(--xahau-yellow);
    outline: none;
}

.quick-action-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px #0a254f44);
    transition: filter 0.8s;
}
.quick-action-card:hover .quick-action-icon,
.quick-action-card:focus .quick-action-icon {
    filter: drop-shadow(0 0 0px #fefe5d) drop-shadow(10px 10px 5px #0a254fcc);
}


.quick-action-heading {
    font-size: 1.3rem;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    margin-bottom: 0.7rem;
    color: inherit;
    letter-spacing: 0.5px;
}

.quick-action-desc {
    color: #b3c6e0;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.5;
}
.quick-action-card:hover .quick-action-desc,
.quick-action-card:focus .quick-action-desc {
    color: var(--evernode-blue);
}

.quick-actions-help {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.95rem;
    color: #b3c6e0;
}
.quick-actions-link {
    color: var(--xahau-yellow);
    text-decoration: underline;
    transition: color 0.2s;
}
.quick-actions-link:hover {
    color: #fff;
}

/* //////////////////////////////////////////////////////////  CREDENTIALS SECTION  //////////////////////////////////////////////////////////  */

.credentials-section {
    background: rgba(16, 24, 42, 0.85);
    border-radius: 22px;
    box-shadow: 0 4px 32px #0a142f60;
    width: 80%;
    max-width: 1100px;
    margin: 2.5rem auto 2.5rem auto;
    padding: 2.5rem 2vw 2.5rem 2vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.credentials-title {
    font-size: 2rem;
    color: var(--xahau-yellow);
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 16px #0a254f44;
}
.credentials-count {
    color: #b3c6e0;
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
}
.credentials-warning {
    background: rgba(254, 254, 93, 0.13);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}
.credentials-warning-title {
    color: var(--xahau-yellow);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.7rem;
}
.credentials-warning-list {
    color: #b3c6e0;
    font-size: 0.98rem;
    margin: 0;
    padding-left: 1.2em;
    list-style: disc;
}
.credentials-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.5rem;
    justify-content: center;
}
.credentials-btn {
    background: var(--evernode-blue);
    color: var(--xahau-yellow);
    border: 2px solid var(--xahau-yellow);
    border-radius: 1.2em;
    padding: 0.7em 1.5em;
    font-size: 1.1rem;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin-bottom: 0.5rem;
}
.credentials-btn:hover, .credentials-btn:focus {
    background: rgba(254, 254, 93, 0.85);
    color: var(--evernode-blue);
    box-shadow: 0 0 12px #fefe5d88;
    outline: none;
}

.credentials-file-input {
    display: none;
}
.credentials-accounts-list {
    width: 100%;
    margin-top: 1.2rem;
}
.credentials-empty {
    color: #b3c6e0;
    font-style: italic;
    text-align: center;
}

/* /////////////////////// Account Tools Section /////////////////////// */
.account-tools-section {
    width: 80%;
    max-width: 1200px;
    margin: 2rem auto 2.5rem auto;
    padding: 1rem 2vw 1rem 2vw;
    background: rgba(16, 24, 42, 0.85);
    border-radius: 22px;
    box-shadow: 0 4px 32px #0a142f60;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.account-tools-title {
    font-size: 2rem;
    color: var(--xahau-yellow);
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 16px #0a254f44;
}
.account-tools-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-evenly;
    width: 100%;
}
.account-tool-btn {
       background: var(--evernode-blue);
    color: var(--xahau-yellow);
    border: 2px solid var(--xahau-yellow);
    border-radius: 1.2em;
    padding: 0.7em 1.5em;
    font-size: 1.1rem;
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin-bottom: 0.5rem;
}
.account-tool-btn:hover, .account-tool-btn:focus {
    background: rgba(254, 254, 93, 0.85);
    color: var(--evernode-blue);
    box-shadow: 0 0 12px #fefe5d88;
    outline: none;
    transform: scale(1.05);
}


/* /////////////////////////////////////////////////////// Media Queries/////////////////////////////////////////////////
@media (min-width: 1020px) {
    .quick-action-card {
        flex: 0 1 320px;
    }
} */

/* -------------------- Responsive Layout Adjustments -------------------- */

@media (max-width: 1200px) {
    .quick-actions-section {
        max-width: 98vw;
        width: 98vw;
        padding-left: 1vw;
        padding-right: 1vw;
    }
    .quick-actions-grid {
        gap: 1.2rem;
        max-width: 98vw;
    }
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
        max-width: 95%;
    }
    .setup-info {
        border-radius: 14px;
        padding: 1.2rem 0.5rem;
    }
    
    #xahau-ledger-info {
        word-break: break-all;
        max-width: 98vw;
        overflow-wrap: anywhere;
        white-space: normal;
    }
    .ledger-hash {
        display: inline-block;
        max-width: 80vw;
        overflow-wrap: anywhere;
        word-break: break-all;
        vertical-align: middle;
    }
    .quick-actions-title,
    .credentials-title,
    .account-tools-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    .credentials-section,
    .account-tools-section {
        padding: 1.2rem 0.5rem;
        border-radius: 14px;
    }
}

@media (max-width: 700px) {
    .setup-info {
        max-width: 100vw;
        width: 100vw;
        padding: 0.5rem 0.2rem;
        border-radius: 8px;
        min-height: unset;
    }
    .hero {
        border-radius: 8px;
        padding: 0.7rem 0.2rem;
    }
    .hero h1 {
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }
    .hero p {
        font-size: 0.95rem;
        margin: 0.3rem 0;
    }
    .network-selector {
        flex-direction: column;
        gap: 0.7rem;
        margin: 1rem 0;
    }
    .quick-actions-title,
    .credentials-title,
    .account-tools-title {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }
    /* .quick-action-card {
        width: 99vw;
        min-width: 0;
        max-width: 99vw;
        padding: 0.7rem 0.2rem 0.7rem 0.2rem;
        font-size: 0.93rem;
        border-radius: 8px;
    }
    .quick-actions-grid {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    } */
    .credentials-section,
    .account-tools-section {
        padding: 0.7rem 0.2rem;
        border-radius: 8px;
    }
    .credentials-btn-group,
    .account-tools-btn-row {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        align-items: stretch;
    }
    .credentials-btn,
    .account-tool-btn {
        width: 100%;
        font-size: 0.98rem;
        padding: 0.5em 0.7em;
    }
}