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


 .wrapper-container {
     background-color: white;
     border-radius: 12px;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
     padding: 30px;
 }

 h1 {
     margin-bottom: 20px;
     color: #2c3e50;
     font-weight: 600;
 }

 .upload-area {
     border: 2px dashed #3498db;
     border-radius: 8px;
     padding: 40px 20px;
     text-align: center;
     margin-bottom: 30px;
     transition: all 0.3s;
     background-color: #f8fafc;
     cursor: pointer;
 }

 .upload-area:hover,
 .upload-area.dragover {
     background-color: #e1f0fa;
     border-color: #2980b9;
 }

 .upload-area p {
     margin: 10px 0;
     color: #7f8c8d;
 }

 .upload-icon {
     font-size: 50px;
     color: #3498db;
     margin-bottom: 15px;
 }

 .btn {
     background-color: #3498db;
     color: white;
     border: none;
     padding: 10px 20px;
     border-radius: 5px;
     cursor: pointer;
     font-size: 16px;
     transition: background-color 0.3s;
 }

 .btn:hover {
     background-color: #2980b9;
     color: white;
 }

 .btn:disabled {
     background-color: #bdc3c7;
     cursor: not-allowed;
 }

 .controls {
     display: flex;
     flex-wrap: wrap;
     gap: 20px;
     margin-bottom: 30px;
     justify-content: space-between;
 }

 .dimension-control {
     flex: 1;
     min-width: 200px;
 }

 .dimension-control label {
     display: block;
     margin-bottom: 8px;
     font-weight: 500;
 }

 .dimension-control input {
     width: 100%;
     padding: 10px;
     border: 1px solid #ddd;
     border-radius: 5px;
 }

 .ratio-lock {
     display: flex;
     align-items: center;
     margin-top: 10px;
 }

 .preview-area {
     display: flex;
     flex-wrap: wrap;
     gap: 30px;
     margin-bottom: 30px;
 }

 .preview-box {
     flex: 1;
     width: 100% !important;
     /* min-width: 300px; */
     /* text-align: center; */
 }

 .preview-box h3 {
     margin-bottom: 15px;
     color: #2c3e50;
 }

 .image-container {
     border: 1px solid #ddd;
     border-radius: 5px;
     padding: 10px;
     background-color: #f8fafc;
     min-height: 200px;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .image-container img {
     max-width: 100%;
     max-height: 300px;
     display: block;
 }

 #resized-canvas {
     max-width: 100%;
     max-height: 300px;
     display: block;
 }

 .image-info {
     margin-top: 10px;
     font-size: 14px;
     color: #7f8c8d;
 }

 .action-buttons {
     text-align: center;
     margin-top: 20px;
 }

 .hidden {
     display: none;
 }

 #maintain-ratio {
     margin-right: 10px;
 }

 @media (max-width: 768px) {
     .preview-area {
         flex-direction: column;
     }

     .controls {
         flex-direction: column;
     }
 }