/* Globale Stile */
body {
    font-family: "Inter", "SF Pro Display", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0b1426;
    color: #e6e6e6;
}

body.user-transactions-page {
    background-color: #f6f8fb;
    color: #1f2937;
}

.shell-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px 32px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo {
    height: 56px;
    width: auto;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 4px;
}

.main-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-item {
    color: #d1d5db;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.top-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.control {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #d1d5db;
}

select {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #1f2937;
    background: #111827;
    color: #f3f4f6;
}

.page-shell {
    max-width: 1200px;
    margin: 24px auto 48px;
    padding: 0 20px;
}

.panel {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.panel h2 {
    margin: 0;
    color: #ffffff;
}

.primary {
    background: linear-gradient(135deg, #0d6efd, #38bdf8);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

.ghost {
    background: transparent;
    color: inherit;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
}

.muted {
    color: #6b7280;
    margin: 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.table-wrapper {
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    background: #0b1221;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: 12px 10px;
    text-align: left;
}

thead {
    background: rgba(255, 255, 255, 0.04);
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-weight: 600;
    font-size: 12px;
}

.address-link {
    color: #38bdf8;
    text-decoration: none;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.address-link:hover {
    text-decoration: underline;
}

.mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.right {
    text-align: right;
}

.empty-row td {
    text-align: center;
    color: #6b7280;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 0 0;
}

.pagination button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.dense-table td,
.dense-table th {
    padding: 8px 6px;
    font-size: 14px;
}

.card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.card-list li {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.block-table td:first-child a {
    color: #60a5fa;
    text-decoration: none;
}

.block-table td:first-child a:hover {
    text-decoration: underline;
}

.control-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.control-row input {
    flex: 1;
    min-width: 220px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0b1221;
    color: #e5e7eb;
}

.code-shell {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    background: #0b1221;
}

.code-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.code-viewer {
    margin: 0;
    max-height: 420px;
    overflow: auto;
    background: #0b1221;
    color: #e5e7eb;
}

.code-viewer code {
    display: block;
    padding: 16px;
    font-size: 14px;
}

/* User transactions scoped styles */
.user-transactions-page .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: #111827;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.user-transactions-page .top-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-transactions-page .search-card,
.user-transactions-page .table-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    margin-bottom: 24px;
}

.user-transactions-page .search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.user-transactions-page .search-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.user-transactions-page .input-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-transactions-page .input-group input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 16px;
    min-width: 240px;
}

.user-transactions-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.user-transactions-page .stat-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f9fafb, #eef2ff);
}

.user-transactions-page .stat-card h3 {
    margin: 4px 0 0;
    color: #0f172a;
}

.user-transactions-page .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.user-transactions-page .table-controls {
    display: flex;
    gap: 12px;
}

.user-transactions-page .table-wrapper {
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.user-transactions-page table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.user-transactions-page th,
.user-transactions-page td {
    padding: 12px 10px;
    text-align: left;
}

.user-transactions-page thead {
    background: #f9fafb;
}

.user-transactions-page tbody tr:nth-child(even) {
    background: #f8fafc;
}

/* Standards */
#standards ul {
    list-style-type: none;
    padding: 0;
}

#standards li {
    margin: 10px 0;
}

#standards a {
    text-decoration: none;
    color: #4caf50; /* Standard-Grün für Links */
}

#standards a:hover {
    text-decoration: underline;
    color: #66bb6a; /* Helleres Grün beim Hover */
}

#standards a:visited {
    color: #a9a9a9; /* Hellgrau für besuchte Links */
}

/* Responsive Design */
@media (max-width: 900px) {
    .shell-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .main-nav {
        justify-content: center;
    }

    .top-controls {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-shell {
        padding: 0 14px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .control-row {
        flex-direction: column;
    }
}
