body{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;margin:0;padding:0;background:linear-gradient(135deg,#f8b195,#f67280 40%,#c06c84,#6c5b7b);color:#333;display:flex;justify-content:center;align-items:flex-start;min-height:100vh;box-sizing:border-box;overflow-x:hidden}.app-container{background-color:#ffffffe6;border-radius:20px;box-shadow:0 10px 30px #00000026;margin:20px;padding:30px;width:100%;max-width:1000px;box-sizing:border-box;position:relative}.app-header{text-align:center;margin-bottom:30px;padding-bottom:20px;border-bottom:2px dashed rgba(108,91,123,.3);position:relative}.app-header h1{color:#6c5b7b;margin:10px 0;font-size:2.5em;display:flex;align-items:center;justify-content:center;gap:10px;text-shadow:0 0 8px rgba(108,91,123,.5)}.header-icon{color:#f67280;stroke-width:1.5}.app-header .header-subtitle{font-size:1.1em;color:#888;font-style:italic}.loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fffffff2;display:flex;justify-content:center;align-items:center;font-size:1.5em;color:#f67280;font-weight:700;z-index:1000;border-radius:20px}.main-content{display:flex;flex-direction:column;align-items:center;gap:30px}.editor-section{display:flex;flex-wrap:wrap;gap:30px;width:100%;justify-content:center}.controls-panel{flex:1;min-width:300px;background-color:#fffc;padding:25px;border-radius:15px;box-shadow:0 5px 20px #0000001a;display:flex;flex-direction:column;gap:20px}.control-group{display:flex;flex-direction:column;gap:8px}.control-group label{font-weight:700;color:#6c5b7b;font-size:.95em}.control-group input[type=text],.control-group input[type=range],.control-group select{padding:10px 15px;border:1px solid #c06c84;border-radius:8px;background-color:#fff;font-size:1em;transition:border-color .3s ease,box-shadow .3s ease}.control-group input[type=text]:focus,.control-group select:focus{outline:none;border-color:#f67280;box-shadow:0 0 0 3px #f6728033}.control-group input[type=range]{width:100%;cursor:pointer;background:transparent;height:8px}.control-group input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to right,#f67280,#c06c84);border-radius:4px;height:8px}.control-group input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:20px;height:20px;background:#fff;border:2px solid #f67280;border-radius:50%;cursor:pointer;margin-top:-6px;box-shadow:0 2px 5px #0003}.control-group input[type=range]:focus{box-shadow:0 0 0 3px #f6728066}.color-picker .color-options{display:flex;flex-wrap:wrap;gap:10px}.color-swatch{width:30px;height:30px;border-radius:8px;border:2px solid transparent;cursor:pointer;transition:transform .2s ease,border-color .3s ease;box-shadow:0 2px 5px #0000001a}.color-swatch:hover{transform:scale(1.1)}.color-swatch.selected{border-color:#333;box-shadow:0 0 0 3px #6c5b7b80}.slider-group label{display:flex;justify-content:space-between;align-items:center}.alignment-buttons{flex-direction:row;align-items:center}.alignment-buttons button{background:none;border:1px solid #c06c84;color:#6c5b7b;padding:8px 12px;border-radius:8px;cursor:pointer;transition:all .3s ease}.alignment-buttons button.active{background-color:#f67280;color:#fff;border-color:#f67280;box-shadow:0 2px 8px #f6728066}.alignment-buttons button:hover{background-color:#f67280;color:#fff;border-color:#f67280}.image-controls{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.image-controls button{padding:10px 15px;font-size:1em;font-weight:700;color:#fff;background:linear-gradient(45deg,#f67280,#c06c84);border:none;border-radius:12px;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:8px;box-shadow:0 4px 15px #f6728066}.image-controls button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #f6728099}.image-controls button:disabled{background:#ccc;cursor:not-allowed;box-shadow:none}.remove-image-button{background-color:#888;box-shadow:0 4px 15px #80808066}.remove-image-button:hover:not(:disabled){background-color:#666}.preview-area{flex:2;min-width:300px;background-color:#6c5b7b0d;padding:25px;border-radius:15px;display:flex;flex-direction:column;align-items:center;box-shadow:inset 0 2px 10px #0000000d}.preview-area h3{color:#6c5b7b;margin-bottom:20px;font-size:1.6em;display:flex;align-items:center;gap:10px}.preview-area h3 svg{color:#f67280}.preview-box{width:100%;position:relative;overflow:hidden;transition:background-color .5s ease,color .5s ease;display:flex;justify-content:center;align-items:center;text-align:center}.preview-background-image{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0}.image-placeholder{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#c8c8c84d;color:#aaa;z-index:1;border-radius:inherit}.image-placeholder p{margin-top:10px;font-size:1.1em}.preview-text-content{position:relative;z-index:2;padding:20px;width:100%;box-sizing:border-box;transition:text-align .3s ease}.preview-text-content h4{font-weight:700;margin:0 0 10px;line-height:1.2;transition:font-size .3s ease,color .5s ease}.preview-text-content p{margin:0;line-height:1.5;transition:font-size .3s ease,color .5s ease}.app-footer{display:flex;justify-content:space-around;align-items:center;margin-top:30px;padding-top:20px;border-top:2px dashed rgba(108,91,123,.3)}.footer-button{background:none;border:none;color:#6c5b7b;cursor:pointer;font-size:1em;font-weight:700;display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 15px;border-radius:10px;transition:all .3s ease}.footer-button:hover{background-color:#f6728026;color:#f67280;transform:translateY(-2px)}.footer-button svg{stroke-width:1.8}.footer-button.save-button{background:linear-gradient(45deg,#50e3c2,#4a90d9);color:#fff;box-shadow:0 4px 15px #4a90d966}.footer-button.save-button:hover{background:linear-gradient(45deg,#4a90d9,#50e3c2)}.footer-button.reset-button{background-color:#ff8c001a;color:#ff8c00}.footer-button.reset-button:hover{background-color:#ff8c0033;color:#ff8c00}.history-section{margin-top:30px;padding:25px;background-color:#fffffff2;border-radius:15px;box-shadow:0 5px 20px #0000001a;border:1px solid rgba(192,108,132,.2)}.history-section h3{text-align:center;color:#6c5b7b;margin-bottom:20px;font-size:1.6em;display:flex;align-items:center;justify-content:center;gap:10px}.history-section h3 svg{color:#f67280}.history-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:15px}.history-item{background-color:#fef7f7;border-radius:10px;padding:15px;display:flex;align-items:center;gap:15px;box-shadow:inset 0 1px 3px #0000000d;transition:transform .2s ease,box-shadow .2s ease;cursor:pointer}.history-item:hover{transform:translate(5px);box-shadow:0 3px 10px #0000001a}.history-thumbnail{width:60px;height:60px;border-radius:8px;background-size:cover;background-position:center;display:flex;justify-content:center;align-items:center;flex-shrink:0}.history-info{flex-grow:1}.history-info strong{color:#c06c84;font-size:1.1em;display:block;margin-bottom:5px}.history-info p{font-size:.9em;color:#666;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-time{font-size:.75em;color:#aaa;margin-top:3px;display:block}.clear-history-button{display:block;margin:20px auto 0;background-color:#ff6b6b1a;color:#ff6b6b;border:1px solid rgba(255,107,107,.3)}.clear-history-button:hover{background-color:#ff6b6b33;color:#ff6b6b}@media (max-width: 768px){.app-container{margin:10px;padding:20px}.app-header h1{font-size:2em}.editor-section{flex-direction:column}.controls-panel,.preview-area{width:100%}.alignment-buttons{flex-wrap:wrap;justify-content:center}.history-list{grid-template-columns:1fr}}.app-header h1{background:linear-gradient(45deg,#f67280,#c06c84);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:none}.footer-button,.image-controls button{box-shadow:inset 2px 2px 5px #fff9,inset -2px -2px 5px #0003,3px 3px 8px #0000001a}.footer-button:active,.image-controls button:active{box-shadow:inset 2px 2px 5px #0003,inset -2px -2px 5px #fff9}.alignment-buttons button.active{filter:drop-shadow(0 0 8px rgba(246,114,128,.6))}.controls-panel,.preview-area{box-shadow:0 2.4px 1.7px #00000009,0 5.8px 4.7px #0000000c,0 11px 8.9px #0000000f,0 20.5px 16.6px #00000012,0 50px 40px #0000001a}svg{vertical-align:middle}.history-list::-webkit-scrollbar{width:10px}.history-list::-webkit-scrollbar-track{background:#f0f0f0;border-radius:5px}.history-list::-webkit-scrollbar-thumb{background-color:#f67280;border-radius:5px;border:2px solid #f0f0f0}
