@font-face {
    font-family: 'Menlo';
    src: url('Menlo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Menlo';
    src: url('Menlo-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg-color: #000000;
    --card-bg: #111111;
    --accent-color: #C6F535;
    --text-primary: #FFFFFF;
    --text-secondary: #757575;
    --border-color: #222222;
    --btn-dark: #222222;
}

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

body {
    font-family: 'Menlo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    padding: 24px 16px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-container {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

#app-title {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

#app-subtitle {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Redesigned Landing State */
#content-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note-card {
    background-color: #1a1500 !important;
    /* Very dark orange/brown */
    border-color: #3d3300 !important;
}

.note-card .section-title,
.note-card .info-text {
    color: #ff9d00 !important;
}

.note-card .header-icon {
    font-size: 20px;
    margin-right: 4px;
}

.btn-orange {
    background-color: #ff9d00 !important;
    color: #000000 !important;
    margin-top: 16px !important;
}

.btn-orange:hover {
    background-color: #ffb133 !important;
}

.section-header-icon {
    fill: var(--text-secondary);
    width: 20px;
    height: 20px;
}

.card-section .info-text {
    margin-top: 8px;
    margin-bottom: 0;
}

.card-section .btn {
    margin-top: 20px;
}

/* Fix button corners inside cards */
.card .btn::before {
    border-color: transparent var(--card-bg) transparent transparent;
}

.card .btn::after {
    border-color: transparent transparent transparent var(--card-bg);
}

.note-card .btn::before {
    border-color: transparent #1a1500 transparent transparent;
}

.note-card .btn::after {
    border-color: transparent transparent transparent #1a1500;
}


#content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    /* background-color: var(--border-color); */
    /* border: 1px solid var(--border-color); */
    margin-bottom: 32px;
}

.card {
    background-color: var(--card-bg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-label-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
}

.label,
.role-card-label {
    font-size: 11px;
    font-weight: bold;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.value-container {
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.address-text,
.message-text,
.signature-text {
    font-family: 'Menlo', monospace;
    font-size: 11px;
    font-weight: normal;
    color: var(--text-primary);
    line-height: 1.6;
    word-break: break-all;
    user-select: all;
    letter-spacing: 0.2px;
}

/* Welcome Card (No Params) */
.welcome-card {
    text-align: center;
    padding: 24px;
    background-color: var(--card-bg);
}

.welcome-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 0;
}

.welcome-text+.welcome-text {
    margin-top: 16px;
}

/* Form Styles */
.password-input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 12px;
    color: white;
    font-size: 16px;
    outline: none;
    margin-top: 8px;
}

.password-input:focus {
    border-color: var(--accent-color);
}

/* Buttons */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    position: relative;
    font-family: 'Menlo', sans-serif;
    width: 100%;
    padding: 16px;
    font-size: 14px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: transform 0.1s;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
}

.btn::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 12px 0;
    border-color: transparent var(--bg-color) transparent transparent;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -1px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 0 12px;
    border-color: transparent transparent transparent var(--bg-color);
    z-index: 1;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000000;
}

.btn-secondary {
    background-color: #282828;
    color: var(--text-primary);
}

.btn-danger {
    background-color: #ff3b30;
    color: white;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Notifications */
#notification-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.notification {
    background-color: #ff3b30;
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.notification.success {
    background-color: var(--accent-color);
    color: black;
}

.notification-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 24px;
    cursor: pointer;
}

/* Custom Scrollbar for Long Signatures */
.signature-text {
    max-height: 100px;
    overflow-y: auto;
}

.signature-text::-webkit-scrollbar {
    width: 4px;
}

/* .signature-text::-webkit-scrollbar-thumb {
    background: var(--border-color);
} */

/* NEW DESIGN STYLES */

.card {
    background-color: var(--card-bg);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* border: 1px solid var(--border-color); */
}

.card-section {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* .card-section:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
} */

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.section-header-icon {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
}

.section-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.address-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000000;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    margin-top: 4px;
    margin-bottom: 16px;
}

.address-value {
    font-family: 'Menlo', monospace;
    font-size: 13px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 12px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-icon {
    width: 16px;
    height: 16px;
    fill: var(--text-primary);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.copy-btn:hover .copy-icon {
    opacity: 1;
}

.input-label {
    font-size: 12px;
    font-weight: normal;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.splash-logo-container {
    margin-bottom: 32px;
}

.splash-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

#splash-title {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: white;
}

#splash-subtitle {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}