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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    padding: 20px;
    color: #000000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: #000000;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #000000;
}

.header p {
    font-size: 1.2rem;
    color: #000000;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.form-section, .output-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 2px solid #000000;
}

.form-section h2, .output-section h2 {
    color: #000000;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000000;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #000000;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #000000;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.generate-btn {
    width: 100%;
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: #333333;
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.output-content {
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
    border: 2px solid #000000;
    border-radius: 12px;
    background: #ffffff;
    white-space: pre-wrap;
    line-height: 1.6;
    font-family: 'Georgia', serif;
    color: #000000;
}

.output-content.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-style: italic;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #000000;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #000000;
}

.action-btn:hover {
    background: #000000;
    color: #ffffff;
}

.tips {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid #000000;
}

.tips h3 {
    color: #000000;
    margin-bottom: 10px;
}

.tips ul {
    list-style-type: none;
    padding-left: 0;
}

.tips li {
    color: #000000;
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}

.tips li::before {
    content: "💡";
    position: absolute;
    left: 0;
}

.error {
    background: #ffffff;
    color: #000000;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #000000;
    margin-top: 10px;
}

.success {
    background: #ffffff;
    color: #000000;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #000000;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .form-section, .output-section {
        padding: 20px;
    }
}

.word-count {
    text-align: right;
    font-size: 12px;
    color: #000000;
    margin-top: 5px;
}

.character-limit {
    color: #000000;
    font-weight: bold;
}

.footer {
    text-align: center;
    margin-top: 40px;
}

.footer p {
    color: #000000;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer p:hover {
    text-decoration: underline;
}