:root {
    --bg: #1a1626;
    --bg-card: #241f33;
    --purple: #7c5cff;
    --purple-dark: #5c3fd4;
    --green: #3ecf8e;
    --text: #e8e3f5;
    --text-dim: #9b93b5;
    --border: #352f4a;
}

* { box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    min-height: 100vh;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    color: var(--green);
    font-size: 28px;
    margin-bottom: 4px;
}

.subtitle {
    color: var(--text-dim);
    margin-bottom: 32px;
    font-size: 14px;
}

.dropzone {
    border: 2px dashed var(--purple);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    background: var(--bg-card);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--green);
    background: #2a2440;
}

.dropzone p {
    color: var(--text-dim);
    margin: 8px 0 0;
}

.dropzone .icon {
    font-size: 40px;
    color: var(--purple);
}

input[type="file"] { display: none; }

.options {
    margin-top: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
}

.options label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.options input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    background: #1a1626;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: opacity 0.2s;
}

.btn:hover { opacity: 0.9; }

.btn-green {
    background: linear-gradient(135deg, var(--green), #2fa876);
}

.btn-danger {
    background: #c94f4f;
}

.result-list {
    margin-top: 24px;
}

.result-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.result-item a {
    color: var(--green);
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
}

.copy-btn {
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

.image-view {
    text-align: center;
}

.image-view img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.gallery-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.gallery-item .info {
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

.gallery-item .info .ip {
    color: var(--green);
    font-weight: 600;
}

.badge {
    display: inline-block;
    background: var(--purple);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 6px;
}

table.log-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 13px;
}

table.log-table th, table.log-table td {
    border-bottom: 1px solid var(--border);
    padding: 8px 10px;
    text-align: left;
}

table.log-table th {
    color: var(--text-dim);
    font-weight: 600;
}

.back-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
}

.error-msg {
    color: #ff8080;
    font-size: 13px;
    margin-top: 8px;
}
