body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    color: #0f0;
    font-size: 16px;
    overflow: hidden;
    position: relative;
}

canvas#matrix-background {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
}

header {
    background-color: rgba(51, 51, 51, 0.95);
    color: #0f0;
    text-align: center;
    padding: 1em;
    border-bottom: 2px solid #0f0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

.hospital-name {
    font-size: 1.2em;
    margin-top: 5px;
    color: #0cc;
}

nav {
    background-color: rgba(34, 34, 34, 0.95);
    border-bottom: 2px solid #0f0;
    position: fixed;
    top: 80px;
    width: 100%;
    z-index: 1000;
    padding: 0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
}

nav ul li {
    flex: 1;
}

nav ul li a {
    display: block;
    color: #0f0;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #444;
}

main {
    padding: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    margin-top: 150px;
    min-height: calc(100vh - 150px - 40px);
    background-color: rgba(26, 26, 26, 0.8);
}

section {
    background-color: rgba(34, 34, 34, 0.98);
    padding: 20px;
    border: 2px solid #0f0;
    border-radius: 5px;
    flex: 1;
    min-width: 300px;
    min-height: 400px;
    position: relative;
    transition: opacity 0.5s;
    opacity: 0;
}

section.active {
    opacity: 1;
}

#blockchain-data, #logs {
    flex: 1;
    max-width: 500px;
}

#content {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
}

#blockchain-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.block {
    background-color: #333;
    color: #0f0;
    padding: 10px;
    border: 1px solid #0f0;
    border-radius: 5px;
    display: inline-block;
    min-width: 150px;
    max-width: 300px;
    word-wrap: break-word;
    margin: 5px;
    text-align: left;
}

#log-panel {
    max-height: 300px;
    overflow-y: auto;
    color: #0f0;
}

.log-entry {
    margin: 5px 0;
    padding: 5px;
    border-bottom: 1px solid #444;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin-top: 20px;
}

label {
    color: #0f0;
}

input, select, button {
    padding: 8px;
    border: 1px solid #0f0;
    border-radius: 4px;
    background-color: #333;
    color: #0f0;
}

button {
    background-color: #0f0;
    color: #1a1a1a;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #0c0;
}

footer {
    background-color: rgba(51, 51, 51, 0.95);
    color: #0f0;
    text-align: center;
    padding: 1em;
    border-top: 2px solid #0f0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}