/* style.css */
:root {
    --bg-color: #0d1624;
    --box-border: #4a5c75;
    --btn-color: #38bdf8;
    --btn-hover: #0ea5e9;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --font-stack: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-stack);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Header */
h1 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px; /* Khoảng cách vừa phải với tiêu đề phụ */
    letter-spacing: 1px;
    text-align: center;
}

/* Tiêu đề phụ */
.subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 35px; /* Đẩy khung đứt nét xuống dưới cho thoáng */
    font-weight: 500;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

/* Upload Box */
.upload-box {
    border: 1px dashed var(--box-border);
    border-radius: 8px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.02);
    margin-bottom: 30px;
}

.upload-box:hover, .upload-box.dragover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--btn-color);
}

.cloud-icon {
    margin-bottom: 15px;
}

.drop-text {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.support-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

/* Button */
.upload-btn {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
    background: var(--btn-color);
    color: #ffffff; /* Đã sửa thành màu trắng */
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

.upload-btn:hover {
    background: var(--btn-hover);
    transform: translateY(-2px);
}

.upload-btn:disabled {
    background: #64748b;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 30px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.author-link {
    color: var(--btn-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.author-link:hover {
    text-decoration: underline;
}

/* iOS Blur Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1000;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Content Box */
.popup-content {
    background: #ffffff;
    color: #333;
    padding: 40px 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.25s ease;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

.success-header {
    text-align: center;
    margin-bottom: 25px;
}

.check-icon {
    display: inline-block;
    color: #10b981;
    font-size: 24px;
    border: 2px solid #10b981;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 28px;
    margin-bottom: 10px;
}

.success-header h2 {
    font-size: 20px;
    color: #111827;
}

/* Link Row in Popup */
.link-row {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 15px;
}

.link-row input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    color: #374151;
    font-family: var(--font-stack);
    font-size: 14px;
}

.copy-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.copy-btn:hover {
    background: #2563eb;
}

.copy-btn.copied {
    background: #10b981;
}