body {
    font-family: sans-serif;
    background: #f5f7fb;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 500px;
    margin: auto;
}

.card {
    background: white;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align:center;
}

    .card textarea {
        width: 100%;
        margin-top: 5px;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #ccc;
        resize: vertical;
        font-size: 14px;
        box-sizing: border-box;
    }

h2 {
    margin-top: 0;
}

.bar {
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
    margin: 10px 0;
}

.bar-inner {
    height: 100%;
    width: 0%;
    background: green;
    color: white;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    transition: width 0.3s ease;
}

.drop-area {
    border: 2px dashed #aaa;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    background: #fafafa;
    transition: 0.2s;
}

    .drop-area.dragover {
        border-color: #4CAF50;
        background: #f0fff0;
    }

.preview {
    margin: 10px 0;
    display: inline-block;
    max-width: 100%;
    max-height: 400px;
}

.preview.preview_none {
    display: none;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.hidden {
    display: none;
}

.loading-box {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: #333;
    color: white;
    padding: 12px 16px;
    margin-top: 10px;
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

    .toast.show {
        opacity: 1;
        transform: translateY(0);
    }

    .toast.success {
        background: #4CAF50;
    }

    .toast.error {
        background: #f44336;
    }

.prompt {
    text-align:left;
}

.error {
    text-align: center;
    padding: 60px 20px;
}

    .error h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .error p {
        color: #666;
    }