:root {
    --bg-color: #0f172a;
    --panel-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --success: #10b981;
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15), transparent 25%);
}

.app-container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-main);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.logo i {
    color: var(--primary-color);
}

.upload-area {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    border: 2px dashed var(--border-color);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(30, 41, 59, 0.9);
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: translateY(-5px);
}

.upload-area h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.browse-btn {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

.limits-text {
    font-size: 0.875rem;
    opacity: 0.7;
}

.upload-dialog, .result-area {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.file-preview-icon {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.file-details h3 {
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.file-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.dialog-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-family: inherit;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-cancel {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.result-area h3 {
    margin-bottom: 1.5rem;
}

.link-box {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.link-box input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    outline: none;
    direction: ltr;
}

.btn-icon {
    background: var(--primary-color);
    color: white;
    border-radius: 0;
    padding: 0 1.25rem;
}

.btn-icon:hover {
    background: var(--primary-hover);
}

.mt-3 {
    margin-top: 1rem;
}
