:root {
    --bg-color: #0b1120;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #f43f5e; /* Rose / Pink red */
    --primary-hover: #e11d48;
    --secondary: #3b82f6; /* Blue */
    --success: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden; /* Avoid scroll on small content */
}

/* Background gradient blobs */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 40%, rgba(244, 63, 94, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    filter: blur(60px);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 20px rgba(244, 63, 94, 0.4));
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #fecdd3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Drag and Drop Zone */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 3rem 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(244, 63, 94, 0.05);
}

.icon-large {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.drop-zone:hover .icon-large {
    color: var(--primary);
}

.drop-zone h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.drop-zone p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -10px rgba(244, 63, 94, 0.5);
}

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

.btn-upload {
    background: linear-gradient(135deg, var(--secondary), #6366f1);
    color: white;
    width: 100%;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    padding: 1rem;
}

.btn-upload:hover {
    box-shadow: 0 10px 25px -10px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
}

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

/* Preview Section */
.hidden { display: none !important; }

.preview-section {
    animation: fadeIn 0.4s ease;
}

#imagePreview {
    max-width: 100%;
    max-height: 250px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
}

.file-info {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Loader */
.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem auto;
}

/* Result Section */
.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.result-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.link-box {
    display: flex;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
}

.link-box input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    outline: none;
}

.btn-copy {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
}
.btn-copy:hover {
    background: var(--success);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.5);
    z-index: 1000;
    animation: fadeInUp 0.3s ease-out;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
