:root {
    --bg-color: #0b0e14;
    --card-bg: #151922;
    --primary: #6c5ce7;
    --primary-hover: #5b4bc4;
    --text: #ffffff;
    --subtext: #8a99ad;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Tahoma, Segoe UI, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: var(--card-bg);
    width: 100%;
    max-width: 480px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.upload-area {
    border: 2px dashed rgba(108, 92, 231, 0.4);
    border-radius: 12px;
    padding: 35px 20px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

input[type="file"] {
    display: none;
}

.btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    transition: 0.3s;
}

.btn:hover {
    background: var(--primary-hover);
}

.btn-success {
    margin-top: 10px;
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.progress-box {
    display: none;
    margin-top: 20px;
    text-align: right;
}

.progress-bar-bg {
    background: #232a3b;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar {
    background: var(--primary);
    height: 100%;
    width: 0%;
    transition: width 0.1s;
}

.status-text {
    font-size: 12px;
    color: var(--subtext);
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
}

.result-box {
    display: none;
    margin-top: 20px;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    padding: 15px;
    border-radius: 8px;
}

.result-input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #0b0e14;
    color: #fff;
    margin-top: 10px;
    text-align: left;
    direction: ltr;
}

.subtext-hint {
    font-size: 12px;
    color: var(--subtext);
    margin-top: 8px;
    display: block;
}

.success-text {
    color: #28a745;
    font-size: 14px;
}