body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: #f7f7f9;
    color: #222;
    display: flex;
    min-height: 100vh;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.dropzone {
    border: 2px dashed #bbb;
    border-radius: 12px;
    background: #fff;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: border-color 0.2s;
    margin-bottom: 32px;
    padding: 12px;
}

.dropzone.active {
    border-color: #007bff;
}

.dropzone p {
    color: #888;
    margin: 0;
}

.image-preview {
    margin: 16px 0 8px 0;
    max-width: 100%;
    max-height: 50vh;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.results {
    margin-top: 16px;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 16px;
}

.results h3 {
    margin-top: 0;
}

.url-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.url-list li {
    margin-bottom: 8px;
    word-break: break-all;
}

.sidebar {
    width: 340px;
    background: #fff;
    border-left: 1px solid #eee;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.03);
    padding: 24px 12px 24px 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    margin-top: 0;
    font-size: 1.2em;
    font-weight: 600;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.history-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 8px 8px 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.history-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 10px;
    background: #eee;
}

.history-content {
    flex: 1;
}

.history-urls {
    font-size: 0.95em;
    margin: 0 0 4px 0;
    padding: 0;
    list-style: none;
}

.history-urls li {
    margin-bottom: 2px;
    word-break: break-all;
}

.history-actions {
    display: flex;
    flex-direction: column;
    margin-left: 8px;
}

.btn {
    background: #e0e3e7;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 4px;
    cursor: pointer;
    font-size: 0.95em;
    transition: background 0.15s;
}

.btn:hover {
    background: #d0d4da;
}

.btn-danger {
    background: #ffdddd;
    color: #b00;
}

.btn-danger:hover {
    background: #ffcccc;
}

@media (max-width: 900px) {
    .sidebar {
        display: none;
    }
}