/* General Body and Container Styles */
body {
    margin: 0;
    padding: 0;
    background: #0a0a0a; /* Dark background */
    color: #33ff33; /* Green text */
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: #1a1a1a; /* Slightly lighter dark for content areas */
    border: 1px solid #33ff33;
    box-shadow: 0 0 15px rgba(51, 255, 51, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #55ff55; /* Brighter green for headings */
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(51, 255, 51, 0.3);
}

h1 {
    font-size: 28px;
    border-bottom: 2px solid #33ff33;
    padding-bottom: 10px;
    margin-top: 0;
}

h2 { font-size: 24px; }
h3 { font-size: 20px; }

/* Links */
a {
    color: #00cc00; /* Medium green for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #77ff77; /* Lighter green on hover */
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #33ff33;
    background: rgba(51, 255, 51, 0.1);
    color: #33ff33;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.btn:hover {
    background: rgba(51, 255, 51, 0.25);
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.4);
    transform: translateY(-1px);
}

.btn-primary {
    background: rgba(51, 255, 51, 0.15);
}

.btn-secondary {
    background: rgba(100, 100, 100, 0.1);
    border-color: #777;
    color: #ccc;
}

.btn-secondary:hover {
    background: rgba(100, 100, 100, 0.25);
    box-shadow: 0 0 10px rgba(150, 150, 150, 0.4);
}

/* Forms */
form {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #228b22; /* Forest green border */
    background: rgba(0, 50, 0, 0.3); /* Dark green translucent background */
    border-radius: 5px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #00cc00; /* Medium green for labels */
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: #000; /* Black input background */
    border: 1px solid #00cc00; /* Green border */
    color: #33ff33; /* Green text */
    border-radius: 3px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    box-sizing: border-box;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #77ff77; /* Lighter green on focus */
    box-shadow: 0 0 8px rgba(51, 255, 51, 0.6);
}

/* Alerts and Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
}

.alert-danger {
    background-color: #5c0000; /* Dark red background */
    border-color: #ff3333; /* Red border */
    color: #ffcccc; /* Light red text */
}

.alert-success {
    background-color: #005c00; /* Dark green background */
    border-color: #33ff33; /* Green border */
    color: #ccffcc; /* Light green text */
}

.info-message {
    background: #003333; /* Dark teal background */
    padding: 15px;
    border-left: 4px solid #00cc00;
    color: #00cc00;
    margin-bottom: 15px;
}

.error {
    color: #ff3333; /* Red error text */
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff3333;
    padding: 10px;
    border-radius: 4px;
    margin: 15px 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #0a0a0a;
    border: 1px solid #33ff33;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #005500; /* Darker green for table borders */
    color: #33ff33;
}

th {
    background: #003300; /* Dark green for table headers */
    font-weight: bold;
    color: #77ff77;
    text-transform: uppercase;
}

tr:hover {
    background: #001a00; /* Slightly lighter dark green on hover */
}

/* Navigation */
nav {
    background: #0a0a0a;
    border: 1px solid #33ff33;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-around;
}

nav a {
    color: #00cc00;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 3px;
}

nav a:hover {
    background: rgba(0, 204, 0, 0.1);
    text-decoration: none;
}

/* Utility Classes (from landing page, can be expanded) */
.terminal {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    border: 2px solid #33ff33;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(51, 255, 51, 0.03);
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.1);
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(51, 255, 51, 0.5);
    letter-spacing: 2px;
}

.header .subtitle {
    color: #00cc00;
    font-size: 14px;
    opacity: 0.8;
}

.prompt {
    color: #33ff33;
    margin-right: 10px;
}

.section {
    border: 1px solid #33ff33;
    margin-bottom: 20px;
    background: rgba(51, 255, 51, 0.02);
}

.section-header {
    background: rgba(51, 255, 51, 0.1);
    padding: 10px 15px;
    border-bottom: 1px solid #33ff33;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-content {
    padding: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    padding: 10px;
    border-left: 3px solid #33ff33;
    background: rgba(51, 255, 51, 0.03);
}

.feature-item strong {
    color: #55ff55;
    display: block;
    margin-bottom: 5px;
}

.stat-box {
    border: 1px solid #33ff33;
    padding: 15px;
    text-align: center;
    background: rgba(51, 255, 51, 0.03);
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: #55ff55;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(51, 255, 51, 0.4);
}

.stat-label {
    font-size: 12px;
    color: #00cc00;
    text-transform: uppercase;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.tech-item {
    padding: 8px 12px;
    border: 1px solid #33ff33;
    background: rgba(51, 255, 51, 0.02);
    font-size: 12px;
}

.tech-item::before {
    content: '▸ ';
    color: #55ff55;
}

.cta-section {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.btn {
    padding: 15px 40px;
    border: 2px solid #33ff33;
    background: rgba(51, 255, 51, 0.05);
    color: #33ff33;
    text-decoration: none;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.2);
}

.btn:hover {
    background: rgba(51, 255, 51, 0.15);
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.4);
    transform: translateY(-2px);
}

.btn-primary {
    background: rgba(51, 255, 51, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(51, 255, 51, 0.2); }
    50% { box-shadow: 0 0 30px rgba(51, 255, 51, 0.4); }
}

.api-example {
    background: #000;
    border: 1px solid #33ff33;
    padding: 15px;
    margin: 10px 0;
    overflow-x: auto;
    font-size: 13px;
}

.api-example pre {
    margin: 0;
    white-space: pre-wrap;
}

.comment {
    color: #008800;
}

.endpoint {
    color: #55ff55;
    font-weight: 600;
}

.footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #33ff33;
    margin-top: 30px;
    color: #00cc00;
    font-size: 12px;
}

.blink {
    animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
    to { opacity: 0; }
}

.status-line {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #00cc00;
    margin-top: 5px;
}

.key-value {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px;
    margin: 8px 0;
}

.key {
    color: #55ff55;
}

.value {
    color: #33ff33;
}

code {
    background: rgba(51, 255, 51, 0.1);
    padding: 2px 6px;
    border: 1px solid #33ff33;
    font-family: inherit;
}

/* Terminal container layout */
.terminal-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #0a0a0a;
    color: #33ff33;
}

.terminal-header {
    border: 2px solid #33ff33;
    padding: 20px;
    margin: 10px;
    background: rgba(51, 255, 51, 0.03);
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.1);
}

.terminal-header h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.status-bar {
    display: flex;
    gap: 30px;
    font-size: 12px;
    color: #00cc00;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    margin: 0 10px;
    border: 1px solid #33ff33;
    background: rgba(51, 255, 51, 0.02);
}

.nav-item {
    color: #00cc00;
    padding: 5px 10px;
    border: 1px solid #33ff33;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(51, 255, 51, 0.1);
    color: #55ff55;
}

.nav-logout {
    margin-left: auto;
    border-color: #ff3333;
    color: #ff6666;
}

.nav-logout:hover {
    background: rgba(255, 51, 51, 0.1);
    color: #ff9999;
}

.terminal-content {
    flex: 1;
    padding: 20px;
    margin: 0 10px;
    overflow-y: auto;
}

.terminal-footer {
    border-top: 1px solid #33ff33;
    padding: 10px 20px;
    text-align: center;
    font-size: 12px;
    color: #00cc00;
    background: rgba(51, 255, 51, 0.03);
}

/* Data tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #0a0a0a;
    border: 1px solid #33ff33;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #005500;
    color: #33ff33;
}

.data-table th {
    background: #003300;
    font-weight: bold;
    color: #77ff77;
    text-transform: uppercase;
}

.data-table tbody tr:hover {
    background: #001a00;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    background: #0a0a0a;
}

.detail-table tr:nth-child(odd) {
    background: rgba(51, 255, 51, 0.03);
}

.detail-table th {
    width: 30%;
    color: #55ff55;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #005500;
}

.detail-table td {
    padding: 10px;
    color: #33ff33;
    border-bottom: 1px solid #005500;
}

/* Cards */
.card {
    border: 1px solid #33ff33;
    margin-bottom: 20px;
    background: rgba(51, 255, 51, 0.02);
}

.card-header {
    background: rgba(51, 255, 51, 0.1);
    padding: 10px 15px;
    border-bottom: 1px solid #33ff33;
    font-weight: 600;
    color: #55ff55;
}

.card-body {
    padding: 15px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-active {
    background: rgba(51, 255, 51, 0.2);
    color: #55ff55;
    border: 1px solid #33ff33;
}

.badge-inactive {
    background: rgba(255, 51, 51, 0.2);
    color: #ff6666;
    border: 1px solid #ff3333;
}

/* Buttons (variants) */
.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-primary {
    border-color: #33ff33;
    background: rgba(51, 255, 51, 0.15);
    color: #33ff33;
}

.btn-primary:hover {
    background: rgba(51, 255, 51, 0.25);
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.4);
}

.btn-success {
    border-color: #00cc00;
    background: rgba(0, 204, 0, 0.15);
    color: #00cc00;
}

.btn-success:hover {
    background: rgba(0, 204, 0, 0.25);
    box-shadow: 0 0 10px rgba(0, 204, 0, 0.4);
}

.btn-warning {
    border-color: #ffaa00;
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
}

.btn-warning:hover {
    background: rgba(255, 170, 0, 0.25);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.4);
}

.btn-danger {
    border-color: #ff3333;
    background: rgba(255, 51, 51, 0.15);
    color: #ff6666;
}

.btn-danger:hover {
    background: rgba(255, 51, 51, 0.25);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.4);
}

/* Actions column */
.actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.action-link {
    color: #00cc00;
    padding: 2px 6px;
    border: 1px solid #00cc00;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.action-link:hover {
    background: rgba(0, 204, 0, 0.1);
    color: #55ff55;
}

/* Footer navigation */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    margin-top: 20px;
    border-top: 1px solid #33ff33;
}

.footer-nav a {
    color: #00cc00;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #33ff33;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    background: rgba(0, 204, 0, 0.1);
    color: #55ff55;
}

/* Token Progress Bars */
.token-bar {
    margin: 10px 0;
}

.token-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 12px;
    color: #55ff55;
}

.token-bar-label .token-name {
    text-transform: uppercase;
    font-weight: 600;
}

.token-bar-label .token-value {
    color: #33ff33;
}

.token-bar-container {
    background: #0a0a0a;
    border: 1px solid #33ff33;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.token-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Color coding for token levels */
.token-bar-fill.token-high {
    background: linear-gradient(90deg, #33ff33 0%, #55ff55 100%);
    box-shadow: 0 0 5px rgba(51, 255, 51, 0.4);
}

.token-bar-fill.token-medium {
    background: linear-gradient(90deg, #ffaa00 0%, #ffcc00 100%);
    box-shadow: 0 0 5px rgba(255, 170, 0, 0.4);
}

.token-bar-fill.token-low {
    background: linear-gradient(90deg, #ff3333 0%, #ff6666 100%);
    box-shadow: 0 0 5px rgba(255, 51, 51, 0.4);
}

/* Token section card */
.token-section {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #33ff33;
    background: rgba(51, 255, 51, 0.02);
}

.token-section-title {
    color: #55ff55;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Badge for subscription tier */
.badge-subscription {
    background: rgba(0, 170, 255, 0.2);
    color: #66ccff;
    border: 1px solid #00aaff;
}

.badge-subscription.tier-free {
    background: rgba(150, 150, 150, 0.2);
    color: #aaaaaa;
    border: 1px solid #888888;
}

.badge-subscription.tier-pro {
    background: rgba(0, 170, 255, 0.2);
    color: #66ccff;
    border: 1px solid #00aaff;
}

.badge-subscription.tier-enterprise {
    background: rgba(170, 0, 255, 0.2);
    color: #cc66ff;
    border: 1px solid #aa00ff;
}

/* Verified/Unverified badges */
.badge-verified {
    background: rgba(51, 255, 51, 0.2);
    color: #55ff55;
    border: 1px solid #33ff33;
}

.badge-unverified {
    background: rgba(255, 170, 0, 0.2);
    color: #ffcc00;
    border: 1px solid #ffaa00;
}

/* Event class badges for audit */
.badge-control-plane {
    background: rgba(0, 170, 255, 0.2);
    color: #66ccff;
    border: 1px solid #00aaff;
}

.badge-data-plane {
    background: rgba(170, 0, 255, 0.2);
    color: #cc66ff;
    border: 1px solid #aa00ff;
}

.badge-record {
    background: rgba(51, 255, 51, 0.2);
    color: #55ff55;
    border: 1px solid #33ff33;
}

/* Metadata display */
.metadata-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.metadata-item {
    display: flex;
    gap: 10px;
    padding: 4px 0;
    border-bottom: 1px solid #003300;
    font-size: 12px;
}

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

.metadata-key {
    color: #55ff55;
    font-weight: 600;
    min-width: 100px;
}

.metadata-value {
    color: #33ff33;
    word-break: break-all;
}

/* Expandable sections */
.expandable {
    cursor: pointer;
}

.expandable-content {
    display: none;
    padding: 10px;
    margin-top: 5px;
    background: rgba(0, 50, 0, 0.3);
    border: 1px solid #005500;
}

.expandable-content.expanded {
    display: block;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .cta-section {
        flex-direction: column;
    }
    .key-value {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .main-nav {
        gap: 5px;
    }
    .nav-item {
        padding: 4px 8px;
        font-size: 12px;
    }
}
