@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');

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

body {
    background-color: #000000;
    color: #00ff00;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

.terminal-container {
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: radial-gradient(ellipse at center, #001100 0%, #000000 100%);
}

.terminal-header {
    margin-bottom: 30px;
}

.main-header {
    color: #ff8800;;
    text-align: center;
    font-size: 1.286em;
    font-weight: bold;
    text-shadow: 0 0 15px #FF7300;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.main-header:hover {
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
    text-decoration: none;
    transform: scale(1.02);
}


.terminal-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

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

.section-header {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.286em;
    font-weight: bold;
    margin-bottom: 20px;
    #color: #ff8800;
    #color: #FF7300;
    color: #999999;
    #text-shadow: 0 0 15px #ff8800;
}

.app-block {
    background-color: #001100;
    border: 2px solid #00ff00;
    padding: 25px;
    text-decoration: none;
    color: #00ff00;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.1);
}

.app-block::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #00ff00;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-block:hover {
    background-color: #002200;
    box-shadow: 0 5px 25px rgba(0, 255, 0, 0.4);
    transform: translateY(-4px);
    border-color: #00ff00;
}

.app-block:hover::before {
    opacity: 0.1;
}

.app-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #006600;
}


.app-name {
    font-weight: bold;
    font-size: 1.286em;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.app-divider {
    display: none;
}

.app-description {
    color: #00cc00;
    margin-bottom: 20px;
    font-size: 0.929em;
    line-height: 1.6;
    text-align: justify;
    min-height: 3em;
}

.app-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #00ff00;
    font-size: 0.857em;
    text-transform: uppercase;
    padding-top: 15px;
    border-top: 1px solid #006600;
}

.status-indicator {
    color: #00ff00;
    animation: pulse 2s infinite;
}


.status-line {
    color: #00cc00;
    font-size: 0.857em;
    margin-bottom: 10px;
}

.prompt {
    color: #00ff00;
    font-weight: bold;
    animation: blink 1s infinite;
}

.command-hint {
    margin-top: 30px;
}

.command-hint pre {
    color: #00cc00;
    font-size: 0.786em;
    text-align: center;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.blink {
    animation: blink 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Scanlines effect */
.terminal-container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 0, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* Terminal command section */
.terminal-command-section {
    margin: 0 auto 30px auto;
    background-color: #001100;
    border: 2px solid #00ff00;
    padding: 20px;
    border-radius: 10px;
    max-width: 1200px;
    width: 100%;
}

/* Terminal input styling */
.terminal-input-container {
    margin-top: 10px;
}

#terminal-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-prompt {
    color: #00ff00;
    font-weight: bold;
}

.terminal-input {
    width: 100%;
    background-color: transparent;
    border: none;
    color: #00ff00;
    font-family: inherit;
    font-size: 1em;
    outline: none;
    caret-color: #00ff00;
}

.terminal-input::placeholder {
    color: #006600;
    opacity: 0.7;
}

.terminal-output {
    margin-top: 10px;
    max-height: 120px;
    overflow-y: auto;
    font-size: 0.929em;
}

.output-line {
    padding: 2px 0;
    animation: fadeIn 0.3s ease;
}

.output-success {
    color: #00ff00;
}

.output-error {
    color: #ff3333;
}

.output-info {
    color: #00cc00;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background-color: #001100;
    border: 1px solid #00ff00;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.2);
}

.autocomplete-item {
    padding: 8px 12px;
    color: #00cc00;
    cursor: pointer;
    font-size: 0.929em;
    border-bottom: 1px solid #003300;
    transition: all 0.2s ease;
}

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

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #003300;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

/* Custom scrollbar for autocomplete */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: #001100;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .terminal-container {
        padding: 10px;
    }
    
    .app-block {
        padding: 20px;
    }
    
    .app-name {
        font-size: 1.143em;
    }
    
    .main-header {
        font-size: 1em;
        padding: 0 60px 0 10px;
        word-break: break-word;
    }
    
    .main-header:hover {
        transform: scale(1.01);
    }
    
    .ascii-header {
        font-size: 0.714em;
    }
    
    .terminal-command-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .terminal-input {
        font-size: 0.857em;
    }
}

/* Status info at the top */
.status-info {
    text-align: center;
    color: #00ff00;
    font-size: 0.857em;
    margin: 0 auto 50px auto;
    padding: 20px;
    border: 2px solid #00ff00;
    background-color: #001100;
    text-transform: uppercase;
    border-radius: 10px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}


/* Login page styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-box {
    background-color: #001100;
    border: 2px solid #00ff00;
    padding: 40px;
    max-width: 400px;
    width: 100%;
}

.login-header {
    text-align: center;
    color: #00ff00;
    font-size: 1.286em;
    margin-bottom: 30px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #00ff00;
    margin-bottom: 5px;
    font-size: 0.857em;
    text-transform: uppercase;
}

.login-input {
    width: 100%;
    padding: 10px;
    background-color: #000000;
    border: 1px solid #00ff00;
}

.terminal-button {
    background-color: #001100;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 10px 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.terminal-button:hover {
    background-color: #00ff00;
    color: #000000;
    box-shadow: 0 0 10px #00ff00;
}

.terminal-button.small {
    padding: 5px 10px;
    font-size: 0.857em;
}

.terminal-button.danger:hover {
    background-color: #ff3333;
    border-color: #ff3333;
    box-shadow: 0 0 10px #ff3333;
}

.terminal-link {
    color: #00ff00;
    text-decoration: none;
    margin-left: 10px;
}

.terminal-link:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.alert {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #00ff00;
}

.alert-error {
    color: #ff3333;
    border-color: #ff3333;
}

.security-notice {
    margin-top: 30px;
    font-size: 0.786em;
    color: #006600;
    text-align: center;
}

/* Admin dashboard styles */
.admin-container {
    max-width: 1000px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #00ff00;
}

.admin-header h2 {
    color: #00ff00;
    margin: 0;
}

.admin-actions {
    display: flex;
    gap: 20px;
}

.admin-section {
    margin-bottom: 30px;
}

.admin-section h3 {
    color: #00ff00;
    margin-bottom: 15px;
}

.add-button {
    margin-bottom: 20px;
}

.app-form {
    background-color: #001100;
    border: 1px solid #00ff00;
    padding: 20px;
    margin-bottom: 20px;
}

.app-form h4 {
    color: #00ff00;
    margin-bottom: 15px;
}

.admin-input {
    width: 100%;
    padding: 8px;
    background-color: #000000;
    border: 1px solid #00ff00;
}

textarea.admin-input {
    resize: vertical;
    font-family: inherit;
}

.apps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-app-item {
    background-color: #001100;
    border: 1px solid #00ff00;
    padding: 20px;
}

.app-info h4 {
    color: #00ff00;
    margin: 0 0 10px 0;
}

.app-url {
    color: #00cc00;
    font-size: 0.857em;
    margin: 5px 0;
}

.app-desc {
    color: #00cc00;
    font-size: 0.929em;
    margin: 10px 0;
}

.app-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.edit-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #006600;
}

/* Admin buttons container */
.admin-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Data management section */
.data-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #00ff00;
}

/* Import info styling */
.import-info {
    margin: 20px 0;
    padding: 15px;
    background-color: #000000;
    border: 1px solid #006600;
}

.import-info p {
    color: #ffcc00;
    margin: 5px 0;
    font-size: 0.857em;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .admin-link-container {
        top: 10px;
        right: 10px;
    }
    
    .login-box {
        padding: 20px;
        margin: 0 10px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .admin-actions {
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .terminal-button {
        width: 100%;
    }
    
    .app-controls {
        flex-direction: column;
    }
    
    .app-controls .terminal-button {
        width: 100%;
    }
    
    .admin-buttons {
        flex-direction: column;
    }
    
    .admin-buttons .terminal-button {
        width: 100%;
    }
    
    /* Improve autocomplete for mobile */
    .autocomplete-dropdown {
        max-height: 200px;
        font-size: 1em;
    }
    
    .autocomplete-item {
        padding: 12px 16px;
        font-size: 1em;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Monitor page styles */
.monitor-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #00ff00;
}

.last-check {
    color: #00cc00;
    font-size: 0.857em;
}

.monitor-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #001100;
    border: 1px solid #00ff00;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-label {
    color: #00cc00;
    font-size: 0.857em;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 1.714em;
    font-weight: bold;
    color: #00ff00;
}

.summary-value.online {
    color: #00ff00;
}

.summary-value.offline {
    color: #ff3333;
}

.summary-value.error {
    color: #ffcc00;
}

.monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.monitor-app-item {
    background-color: #001100;
    border: 1px solid #00ff00;
    padding: 20px;
}

.monitor-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #006600;
}

.monitor-app-header h4 {
    color: #00ff00;
    margin: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    font-size: 1.143em;
    animation: pulse 2s infinite;
}

.status-dot.online {
    color: #00ff00;
}

.status-dot.offline {
    color: #ff3333;
}

.status-dot.timeout {
    color: #ffcc00;
}

.status-dot.error {
    color: #ff6600;
}

.status-dot.pending {
    color: #999999;
}

.status-text {
    font-size: 0.857em;
    color: #00cc00;
    text-transform: uppercase;
}

.monitor-app-details {
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.857em;
}

.detail-label {
    color: #00cc00;
    text-transform: uppercase;
}

.detail-value {
    color: #00ff00;
    text-align: right;
}

.error-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #660000;
}

.error-text {
    color: #ff3333;
}

.monitor-app-actions {
    display: flex;
    gap: 10px;
}

/* Responsive monitor */
@media (max-width: 768px) {
    .monitor-controls {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .monitor-summary {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .summary-item {
        flex: 1 1 40%;
    }
    
    .monitor-grid {
        grid-template-columns: 1fr;
    }
    
    .monitor-app-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .detail-row {
        flex-direction: column;
        text-align: left;
    }
    
    .detail-value {
        text-align: left;
        margin-top: 2px;
    }
    
    .monitor-app-actions {
        flex-direction: column;
    }
    
    .monitor-app-actions .terminal-button {
        width: 100%;
    }
}

/* Navigation menu */
.navigation-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: #001100;
    border: 1px solid #00ff00;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #00ff00;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background-color: #002200;
    box-shadow: 0 0 10px #00ff00;
}

.nav-toggle:hover .hamburger-line {
    background-color: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    background-color: #001100;
    border: 1px solid #00ff00;
    padding: 10px;
    min-width: 150px;
    margin-top: 5px;
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.2);
}

.nav-links.show {
    display: flex;
}

.nav-link {
    color: #00cc00;
    text-decoration: none;
    font-size: 0.857em;
    padding: 8px 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.nav-link:hover {
    background-color: #002200;
    border-color: #00ff00;
    color: #00ff00;
}

.nav-link.active {
    background-color: #00ff00;
    color: #000000;
    border-color: #00ff00;
}

/* Imprint page styles */
.imprint-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.imprint-header h2 {
    color: #00ff00;
}

.imprint-content {
    background-color: #001100;
    border: 1px solid #00ff00;
    padding: 30px;
}

.imprint-section h3 {
    color: #00ff00;
    margin-bottom: 20px;
    font-size: 1.143em;
}

.imprint-block {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #006600;
}

.imprint-block:last-child {
    border-bottom: none;
}

.imprint-block h4 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 1em;
}

.imprint-block h5 {
    color: #00cc00;
    margin: 15px 0 10px 0;
    font-size: 0.929em;
}

.imprint-data {
    margin-bottom: 15px;
}

.data-row {
    display: flex;
    margin-bottom: 8px;
}

.data-label {
    color: #00cc00;
    margin-right: 10px;
    min-width: 100px;
    font-size: 0.857em;
}

.data-value {
    color: #00ff00;
    font-size: 0.857em;
}

.imprint-text {
    color: #00cc00;
    font-size: 0.857em;
    line-height: 1.6;
}

.imprint-text p {
    margin-bottom: 15px;
}

.imprint-footer {
    margin-top: 30px;
    text-align: center;
}

/* Imprint page links */
.imprint-content a {
    color: #00ff00;
    text-decoration: none;
    border-bottom: 1px dotted #00ff00;
    transition: all 0.3s ease;
}

.imprint-content a:hover {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    border-bottom: 1px solid #00ff00;
}

/* About page styles */
.about-container {
    max-width: 1200px;
    margin-bottom: 20px;
}

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

.about-header h2 {
    color: #00ff00;
}

.about-content {
    background-color: #001100;
    border: 1px solid #00ff00;
    padding: 10px;
}

.about-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #006600;
}

.about-section:last-of-type {
    border-bottom: none;
}

.about-section h3 {
    color: #00ff00;
    margin-bottom: 15px;
    font-size: 1.143em;
}

.about-block, .about-text {
    color: #00cc00;
    font-size: 0.929em;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
}

.info-label {
    color: #00cc00;
    margin-right: 10px;
    min-width: 120px;
    font-size: 0.857em;
}

.info-value {
    color: #00ff00;
    font-size: 0.857em;
}

.feature-list {
    margin-left: 20px;
}

.feature-item {
    color: #00cc00;
    margin-bottom: 8px;
    font-size: 0.929em;
}

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

.tech-item {
    background-color: #000000;
    padding: 15px;
    border: 1px solid #006600;
}

.tech-name {
    color: #00ff00;
    font-size: 0.857em;
    margin-bottom: 5px;
}

.tech-detail {
    color: #00cc00;
    font-size: 0.857em;
}

.command-list {
    margin-top: 10px;
}

.command-item {
    margin-bottom: 10px;
    color: #00cc00;
    font-size: 0.857em;
}

.command-name {
    color: #00ff00;
    font-weight: bold;
}

.about-footer {
    margin-top: 30px;
    text-align: center;
}

.ascii-art {
    margin-bottom: 20px;
}

.ascii-art pre {
    color: #00ff00;
    font-size: 0.714em;
    line-height: 1.2;
    text-shadow: 0 0 5px #00ff00;
}

/* Remember me checkbox */
.remember-me {
    margin-top: 15px;
    text-align: center;
}

.remember-me label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #00cc00;
    font-size: 0.857em;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    cursor: pointer;
}

/* Footer links styling */
.footer-links {
    text-align: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #006600;
}

.footer-link {
    color: #00ff00;
    text-decoration: none;
    font-size: 0.857em;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    text-transform: uppercase;
    border: 1px solid #00ff00;
    padding: 8px 16px;
    background-color: #001100;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background-color: #00ff00;
    color: #000000;
    box-shadow: 0 0 10px #00ff00;
    text-decoration: none;
}

/* Font size configuration styles */
.font-size-controls {
    background-color: #000000;
    border: 1px solid #006600;
    padding: 20px;
    margin-bottom: 20px;
}

.font-size-display {
    text-align: center;
    margin-bottom: 20px;
}

.font-size-display label {
    color: #00cc00;
    margin-right: 10px;
    font-size: 1em;
}

#current-font-size {
    color: #00ff00;
    font-size: 1.286em;
    font-weight: bold;
}

.font-size-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.font-size-info {
    text-align: center;
    color: #00cc00;
    font-size: 0.857em;
}

.font-size-info p {
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    
    .imprint-content {
        padding: 20px;
    }
    
    .data-row {
        flex-direction: column;
    }
    
    .data-label {
        margin-bottom: 5px;
    }
    
    .about-content {
        padding: 20px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        margin-bottom: 5px;
    }
    
    .font-size-buttons {
        flex-direction: column;
    }
    
    .font-size-buttons .terminal-button {
        width: 100%;
    }
}

