body{margin:0;background:#000;color:#00ff00;font-family:"Space Mono",monospace}
.blink{animation:blink 1s step-start infinite}
@keyframes blink{50%{opacity:0}}
input,button{background:#001400;color:#00ff00;border:1px solid #00ff00;padding:4px}
table{width:100%;border-collapse:collapse;margin-top:8px}
td,th{border:1px solid #00ff00;padding:4px;text-align:left}

/* ─────────── Login Form Styling ─────────── */
#app h1 {
    text-align: center;
    margin-bottom: 2rem;
}

h1-section {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    text-align: left;
    margin: 1rem 2rem 1rem 2rem;
    color: #00ff00;
}

#app input {
    display: block;
    width: 200px;
    margin: 0.5rem auto;
    text-align: center;
}

#app button {
    display: block;
    width: 200px;
    margin: 1rem auto;
    cursor: pointer;
}

#app button:hover {
    background: #002800;
}

/* ─────────── Button Styling ─────────── */
button {
    cursor: pointer;
    transition: background-color 0.1s ease;
}

button:hover {
    background: #002800;
}

button:active {
    background: #003800;
    transform: translateY(1px);
}

/* ─────────── Table and Add Section Styling ─────────── */
.data-table {
    width: auto;
    min-width: 400px;
    margin-left: 2rem;
    margin-top: 1rem;
}

.add-section {
    background: #001400;
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 2rem;
    width: fit-content;
}

.add-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: left;
}

.add-section input {
    display: inline-block;
    width: 150px;
    margin: 0.5rem 1rem 0.5rem 0;
    text-align: left;
}

.add-section button {
    display: inline-block;
    width: auto;
    margin: 0.5rem 0;
    padding: 4px 12px;
}

.delete-btn {
    background: #001400;
    color: #00ff00;
    border: 0px solid #000000;
    padding: 0px 0px;
    margin-left: 0rem;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
    line-height: 1;
}

.delete-cell {
    width: 16px;
    min-width: 0;
    max-width: 20px;
    text-align: left;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    overflow: visible;
}

th.delete-header {
    background: #000 !important;
    border: none !important;
    width: 16px;
    min-width: 0;
    max-width: 20px;
    padding: 0 !important;
}

.delete-cell .delete-btn {
    background: transparent !important;
    border: none !important;
    color: #00ff00;
    font-size: 1.2rem;
    margin: 0;
    margin-left: 4px;
    padding: 1;
    box-shadow: none;
    outline: none;
    width: 16px;
    height: 16px;
    min-width: 0;
    min-height: 0;
    display: inline-block;
    line-height: 1;
    text-align: left;
    transition: color 0.1s;
}

.delete-cell .delete-btn:hover {
    color: #00ff88;
    background: transparent !important;
    border: none !important;
}

/* ─────────── ASCII Logo Styling ─────────── */
#logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

#ascii-logo {
    font-family: monospace;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--shadow-color);
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    background: rgba(0, 20, 0, 0.3);
    border: 0px solid var(--shadow-color);
    border-radius: 5px;
    padding: 1rem;
    margin: 0;
    letter-spacing: 0;
    white-space: pre;
    max-width: 100%;
    overflow: auto;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2);
    cursor: pointer;
}

input[type="date"]::-moz-calendar-picker-indicator {
    filter: invert(1) brightness(2);
    cursor: pointer;
}

/* ─────────── Encoder Container Styling ─────────── */
.encoder-container {
    display: flex;
    gap: 1rem;
    margin: 1rem 2rem;
    flex-wrap: wrap;
}

.encoder-container .add-section {
    flex: 1;
    min-width: 300px;
    margin: 0;
}

#image-preview {
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#image-preview img {
    margin-bottom: 0.5rem;
}

.preview-container {
    width: 320px;
    height: 240px;
    background: #000;
    border: 1px solid #00ff00;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem auto;
    overflow: hidden;
}

.preview-image {
    max-width: 320px;
    max-height: 240px;
    object-fit: contain;
}

#image-preview p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #00ff88;
}

/* ─────────── Multiple File Upload Styling ─────────── */
.multiple-files-preview {
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.multiple-files-preview ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.multiple-files-preview li {
    padding: 0.2rem 0;
    font-size: 0.9rem;
    color: #00ff88;
    border-bottom: 1px solid #003300;
}

.multiple-files-preview li:last-child {
    border-bottom: none;
}

/* ─────────── Upload Progress Styling ─────────── */
.upload-progress {
    text-align: center;
    padding: 1rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #001400;
    border: 1px solid #00ff00;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00ff88);
    transition: width 0.3s ease;
}

.upload-complete {
    text-align: center;
    padding: 1rem;
}

.upload-complete details {
    margin-top: 1rem;
    text-align: left;
}

.upload-complete summary {
    cursor: pointer;
    color: #00ff88;
    margin-bottom: 0.5rem;
}

.upload-complete ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.upload-complete li {
    padding: 0.2rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #003300;
}

.upload-complete li:last-child {
    border-bottom: none;
}