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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: #101E4A;
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    opacity: 0.8;
    font-size: 1.1rem;
}

main {
    padding: 40px 30px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

input[type="text"] {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #764ba2;
}

.btn-primary {
    background: #101E4A;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #FFDD4A;
    color: #101E4A;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #764ba2;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #5a2d82;
}

.progress-section {
    margin-top: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.5s ease;
}

#progressText {
    margin-top: 15px;
    color: #666;
    font-size: 0.95rem;
}

.result-section {
    margin-top: 30px;
}

.result-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #764ba2;
}

.blog-preview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.6;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.error-section {
    margin-top: 30px;
    padding: 20px;
    background: #ffe0e0;
    border-radius: 10px;
    color: #d00;
    text-align: center;
}

footer {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .container {
        border-radius: 0;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    main {
        padding: 25px 20px;
    }
}
