/* Grundlegende Reset-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 16px;
    background-image:
        linear-gradient(rgba(2, 8, 12, 0.62), rgba(2, 8, 12, 0.62)),
        url("../background/4fomzZe-matrix-hd-wallpaper.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 98px;
}

.container {
    background: linear-gradient(160deg, rgba(4, 18, 14, 0.84), rgba(5, 14, 24, 0.86));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.58);
    text-align: center;
    width: 100%;
    max-width: 430px;
    border: 1px solid rgba(92, 255, 159, 0.5);
}

.brand-header {
    position: relative;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.brand-logo {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 62px;
    height: auto;
    opacity: 1;
    background: rgba(236, 255, 244, 0.94);
    border: 1px solid rgba(114, 255, 167, 0.65);
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 0 18px rgba(88, 255, 154, 0.45), 0 6px 16px rgba(0, 0, 0, 0.45);
}

.brand-header h1 {
    margin: 0;
}

h1 {
    margin-bottom: 0;
    color: #7dffb1;
    letter-spacing: 0.08em;
    text-shadow: 0 0 20px rgba(35, 255, 137, 0.62);
}

label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    color: #c7f7d8;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #2f9460;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #d7ffe6;
    background-color: rgba(5, 25, 17, 0.78);
}

input[type="text"]:focus {
    outline: none;
    border-color: #62ff9e;
    box-shadow: 0 0 0 3px rgba(67, 255, 144, 0.22);
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #2f9460;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #d7ffe6;
    background-color: rgba(5, 25, 17, 0.78);
}

select:focus {
    outline: none;
    border-color: #62ff9e;
    box-shadow: 0 0 0 3px rgba(67, 255, 144, 0.22);
}

.hint {
    display: block;
    margin-top: -12px;
    margin-bottom: 14px;
    color: #8fd4ab;
    font-size: 12px;
    text-align: left;
}

button {
    background: linear-gradient(135deg, #16b867, #0e8f51);
    color: #02140a;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    font-weight: 700;
}

button:hover {
    background: linear-gradient(135deg, #1dd977, #12b665);
}

.hidden {
    display: none;
}

.url-display {
    background-color: rgba(7, 28, 20, 0.84);
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #2f9460;
    text-align: left;
    word-wrap: break-word;
    color: #d7ffe6;
}

.terminal-wrap {
    margin-top: 12px;
    border: 1px solid #2f9460;
    border-radius: 8px;
    overflow: hidden;
    background: #030e09;
}

.terminal-title {
    padding: 8px 10px;
    background: #072115;
    color: #8dffc3;
    font-size: 12px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.scan-terminal {
    min-height: 120px;
    max-height: 180px;
    overflow-y: auto;
    padding: 10px;
    color: #9affbf;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    white-space: pre-wrap;
}

.scan-status {
    margin-top: 12px;
    font-size: 14px;
    color: #b8ffd7;
    font-weight: 600;
}

.app-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px;
    border-top: 1px solid rgba(82, 210, 137, 0.42);
    background: rgba(2, 12, 10, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #b9eacb;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.app-footer p {
    margin: 0 0 4px;
}

.app-footer p:last-child {
    margin-bottom: 0;
}

.recommended-url {
    margin-top: 10px;
    background-color: #eaf7ed;
    border: 1px solid #b9e3c2;
    color: #155724;
    border-radius: 5px;
    padding: 10px;
    text-align: left;
}

.open-ports {
    margin-top: 10px;
    background-color: #eef5ff;
    border: 1px solid #bfd7ff;
    color: #123a73;
    border-radius: 5px;
    padding: 10px;
    text-align: left;
}

.status-insights {
    margin-top: 10px;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    color: #111827;
    border-radius: 5px;
    padding: 10px;
    text-align: left;
}

.status-preview {
    margin-top: 6px;
    background: #0f172a;
    color: #d1fae5;
    border-radius: 4px;
    padding: 8px;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}

.error {
    color: #ff7f7f;
    margin-top: -10px;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: left;
}

a {
    color: #7dffb1;
    text-decoration: underline;
}

a:hover {
    text-decoration: underline;
    cursor: pointer;
}
