* {
    box-sizing: border-box;
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 700px; 
    margin: 2rem auto; 
    /* background: linear-gradient(135deg, #667eea 0%, #e9e5ed 100%); */
    min-height: 100vh;
    padding: 2rem;
    color: #333;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="20" cy="20" r="0.3" fill="%23ffffff" opacity="0.05"/><circle cx="80" cy="30" r="0.4" fill="%23ffffff" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: -1;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

textarea { 
    width: 100%; 
    height: 120px; 
    margin-bottom: 1rem;
    border: 2px solid #e0e7ff;
    border-radius: 16px;
    padding: 1rem;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafbff;
}

textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    background: #ffffff;
}

button.app-button { 
    margin-top: 0.5rem;
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

button.app-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
}

button.app-button:active {
    transform: translateY(0);
}

h1, h2 {
    font-weight: 700; 
    text-align: center; 
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.note { 
    border: none;
    padding: 1.5rem; 
    margin-top: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #8b5cf6;
    transition: all 0.3s ease;
}

.note:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.tag { 
    font-weight: 600; 
    color: #6366f1; 
    margin-right: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: inline-block;
}

label { 
    font-weight: 600; 
    display: block; 
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.95rem;
}

.status { 
    margin: 1.5rem 0; 
    padding: 1rem 1.5rem; 
    border-radius: 16px;
    font-weight: 500;
    border: none;
    position: relative;
    overflow: hidden;
}

.status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.5;
}

.error { 
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #dc2626;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.15);
}

.success { 
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #16a34a;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.15);
}

/* Subtle animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .container {
        padding: 2rem 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Скрываем стандартный input */
input[type="file"] {
    display: none;
}

/* Стилизация кастомной кнопки */
.file-upload {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.3);
}

.file-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(20, 184, 166, 0.4);
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.file-upload:active {
    transform: translateY(0);
}
