* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

header h1 {
    color: #2c3e50;
    font-size: 2.8rem;
    margin-bottom: 10px;
}

header .subtitle {
    color: #7f8c8d;
    font-size: 1.2rem;
}

section {
    margin-bottom: 50px;
}

h2 {
    color: #3498db;
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 2px dashed #dce1e6;
}

#bioEditor {
    width: 100%;
    height: 200px;
    padding: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    resize: vertical;
    transition: border 0.3s;
}

#bioEditor:focus {
    outline: none;
    border-color: #3498db;
}

.editor-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-3px);
}

.btn-secondary {
    background: #7f8c8d;
    color: white;
}

.btn-secondary:hover {
    background: #636e72;
    transform: translateY(-3px);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-3px);
}

.bio-preview {
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    padding: 25px;
    min-height: 150px;
    white-space: pre-wrap;
    line-height: 1.8;
}

.upload-area {
    background: #f8f9fa;
    border: 3px dashed #3498db;
    border-radius: 15px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    margin-bottom: 30px;
}

.upload-area:hover {
    background: #e8f4fc;
    border-color: #2980b9;
}

.upload-area i {
    font-size: 4rem;
    color: #3498db;
    margin-bottom: 20px;
}

.upload-area p {
    font-size: 1.2rem;
    color: #555;
}

#imageUpload {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.image-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.image-item:hover {
    transform: translateY(-10px);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.placeholder {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 40px;
}

.image-actions {
    text-align: center;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    color: #7f8c8d;
}

footer i.fa-heart {
    color: #e74c3c;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .editor-actions {
        flex-direction: column;
    }
}
