.document-editor{width:100%}.editor-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;padding-bottom:20px;border-bottom:2px solid #e0e0e0}.editor-header h2{color:#333;font-size:1.8rem;font-weight:600}.download-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:12px 24px;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #667eea66}.download-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #667eea99}.download-btn:disabled{opacity:.5;cursor:not-allowed}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-bottom:30px}.form-group{display:flex;flex-direction:column}.form-group label{font-weight:600;color:#333;margin-bottom:8px;font-size:.95rem}.form-group input{padding:12px;border:2px solid #e0e0e0;border-radius:6px;font-size:1rem;transition:border-color .3s ease;font-family:inherit}.form-group input:focus{outline:none;border-color:#667eea}.form-section{margin-bottom:30px}.textarea-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px;gap:15px}.textarea-header label{flex:1;margin-bottom:0}.form-section label{display:block;margin-bottom:12px}.form-section h3{color:#333;font-size:1.3rem;font-weight:600;margin-bottom:5px}.label-hint{color:#666;font-size:.9rem;font-weight:400;margin-top:5px}.form-section textarea{width:100%;padding:12px;border:2px solid #e0e0e0;border-radius:6px;font-size:1rem;font-family:inherit;resize:vertical;transition:border-color .3s ease;line-height:1.6}.form-section textarea:focus{outline:none;border-color:#667eea}.problems-section{margin-bottom:30px}.problems-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:2px solid #e0e0e0}.problems-header h2{color:#333;font-size:1.5rem;font-weight:600}.add-problem-btn{background:#4caf50;color:#fff;border:none;padding:10px 20px;border-radius:6px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease}.add-problem-btn:hover{background:#45a049;transform:translateY(-1px)}.problem-card{background:#f9f9f9;border:2px solid #e0e0e0;border-radius:8px;padding:25px;margin-bottom:20px;position:relative}.problem-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:2px solid #ddd}.problem-card-header h3{color:#667eea;font-size:1.3rem;font-weight:600}.remove-problem-btn{background:#f44336;color:#fff;border:none;width:30px;height:30px;border-radius:50%;font-size:1.5rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;transition:all .3s ease}.remove-problem-btn:hover{background:#da190b;transform:scale(1.1)}.problem-card .form-section{margin-bottom:20px}.problem-card .form-section h4{color:#333;font-size:1.1rem;font-weight:600;margin-bottom:5px}.image-upload-area{margin-top:10px}.image-input{display:none}.image-upload-label{display:inline-block;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:12px 24px;border-radius:6px;cursor:pointer;font-weight:600;transition:all .3s ease;box-shadow:0 2px 10px #667eea4d}.image-upload-label:hover{transform:translateY(-2px);box-shadow:0 4px 15px #667eea66}.image-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:15px;margin-top:15px}.image-preview-wrapper{position:relative;border-radius:8px;overflow:hidden;border:2px solid #e0e0e0;background:#fff}.image-preview{width:100%;height:200px;object-fit:cover;display:block}.remove-image-btn{position:absolute;top:5px;right:5px;background:#f44336e6;color:#fff;border:none;width:28px;height:28px;border-radius:50%;font-size:1.2rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;transition:all .3s ease;box-shadow:0 2px 5px #0003}.remove-image-btn:hover{background:#da190b;transform:scale(1.1)}.rephrase-btn{background:linear-gradient(135deg,#4caf50,#45a049);color:#fff;border:none;padding:8px 16px;border-radius:6px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .3s ease;white-space:nowrap;box-shadow:0 2px 8px #4caf504d;flex-shrink:0}.rephrase-btn:hover:not(:disabled){background:linear-gradient(135deg,#45a049,#3d8b40);transform:translateY(-1px);box-shadow:0 4px 12px #4caf5066}.rephrase-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}@media (max-width: 768px){.form-grid{grid-template-columns:1fr}.editor-header{flex-direction:column;align-items:flex-start;gap:15px}.download-btn{width:100%}.problems-header{flex-direction:column;align-items:flex-start;gap:15px}.add-problem-btn{width:100%}.image-preview-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.textarea-header{flex-direction:column;align-items:flex-start;gap:10px}.rephrase-btn{width:100%;padding:10px}}.app{max-width:1200px;margin:0 auto}.app-header{text-align:center;color:#fff;margin-bottom:30px;padding:20px}.app-header h1{font-size:2.5rem;font-weight:700;margin-bottom:10px;text-shadow:2px 2px 4px rgba(0,0,0,.2)}.subtitle{font-size:1.1rem;opacity:.95;font-weight:300}.app-main{background:#fff;border-radius:12px;box-shadow:0 10px 40px #0003;padding:40px;min-height:600px}@media (max-width: 768px){.app-header h1{font-size:2rem}.app-main{padding:20px}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh;padding:20px}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
