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

body {
    background-color: #0d0d0d;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.app {
    width: 100%;
    max-width: 660px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

#logo h1 {
    font-size: 2.7rem;
    font-weight: 300;
    letter-spacing: 0.55em;
    text-transform: uppercase;
    color: #e8e8e8;
    text-align: center;
}

.search-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#searchInput {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #cccccc;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07),
                0 4px 20px rgba(0,0,0,0.4);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#searchInput:focus {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.09);
}

.actions {
    display: flex;
    gap: 32px;
    align-items: center;
}

.actions button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.actions button:hover {
    color: #ffffff;
}

#searchBtn::before {
    content: '⌕';
    font-size: 1.7rem;
}

#AddDocBtn::before {
    content: '✚';
    font-size: 1.7rem;
}

.form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#docForm {
    width: 45%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;

    color: #ccc;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.05),
        0 0 25px rgba(255, 255, 255, 0.08),
        inset 0 0 10px rgba(255, 255, 255, 0.05);

    transition: 0.3s ease;
}

#docForm:hover {
    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.1),
        0 0 35px rgba(255, 255, 255, 0.15),
        inset 0 0 12px rgba(255, 255, 255, 0.06);
}

input {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    outline: none;
    font-family: "Courier New", Courier, monospace;
}

textarea {
    width: 100%;
    height: 180px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    outline: none;
    font-family: monospace;
    resize: none;
    overflow-y: auto;

}

input:focus, textarea:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);

}

#docForm button {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: white;
    font-family: monospace;
    cursor: pointer;
    transition: 0.3s ease;
}

#docForm button:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.results-container {
    width: 60%;
    margin: 40px auto;
    color: white;
    font-family: monospace;
}

#resultsBox {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    padding: 16px 18px;
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow:
        0 0 8px rgba(255,255,255,0.05),
        0 0 20px rgba(255,255,255,0.06),
        inset 0 0 8px rgba(255,255,255,0.04);

    transition: 0.25s ease;
}

.result-item:hover {
    border-color: rgba(255,255,255,0.35);

    box-shadow:
        0 0 12px rgba(255,255,255,0.08),
        0 0 30px rgba(255,255,255,0.12),
        inset 0 0 10px rgba(255,255,255,0.05);

    transform: translateY(-3px);
}

.result-title {
    font-size: 18px;
    color: #4da3ff;
    cursor: pointer;
    margin-bottom: 6px;
    transition: 0.2s;
}

.result-title:hover {
    text-decoration: underline;
    color: #6bb8ff;
}

.result-snippet {
    font-size: 14px;
    color: #bfbfbf;
    line-height: 1.5;
}

.result-item:hover {
    outline: 1px solid rgba(255,255,255,0.1);
}

.doc-view-container {
    width: 100%;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-box {
    width: 60%;
    max-width: 800px;
    padding: 24px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 0 12px rgba(255,255,255,0.06),
        0 0 30px rgba(255,255,255,0.08),
        inset 0 0 10px rgba(255,255,255,0.05);

    color: white;
    font-family: monospace;
}

.doc-box h1 {
    margin-bottom: 16px;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

#docContent {
    height: 300px;
    overflow-y: auto;

    padding: 12px;

    background: rgba(0,0,0,0.4);
    border-radius: 8px;

    line-height: 1.5;
    color: #ccc;
}

#docContent {
    white-space: pre-wrap;
}