 /* Image Cropper Tool Styles */

 /* Upload Page Styles */
 .upload-container {
     background-color: transparent;
     border-radius: 0px;
     overflow: hidden;
     margin-bottom: 0px;
     transition: all 0.3s ease;
     border: none;
 }

 .upload-area {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     min-height: 300px;
     position: relative;
     background: transparent;
 }

 .upload-content {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     text-align: center;
     width: 100%;
     max-width: 1000px;
     transition: all 0.3s ease;
     padding: 20px 20px;
     border-radius: 2px;
     background-color: transparent;
     border: 2px dashed #d0d0d0;
     opacity: 1;
     cursor: pointer;
     position: relative;
     overflow: hidden;
 }

 .upload-content:hover {
     border: 2px dashed #7953db;
     box-shadow: 0 0 10px rgba(121, 83, 219, 0.1);
 }

 .upload-icon {
     font-size: 24px;
     color: white;
     margin-bottom: 25px;
     transition: transform 0.3s ease, color 0.3s ease;
     background-color: #7953db;
     width: 80px;
     height: 80px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .upload-icon i {
     font-size: 32px;
 }

 .upload-content:hover .upload-icon {
     transform: translateY(-5px);
 }

 .upload-content h3 {
     font-size: 24px;
     font-weight: 600;
     margin-bottom: 12px;
     color: var(--text-color);
 }

 .upload-content p {
     font-size: 16px;
     color: var(--tool-description-color);
     margin-bottom: 25px;
 }

 .upload-info {
     display: none;
 }

 /* Format tags */
 .format-tags {
     display: flex;
     gap: 10px;
     margin-top: 30px;
     justify-content: center;
 }

 .format-tag {
     background-color: transparent;
     color: #666;
     padding: 5px 15px;
     border-radius: 20px;
     font-size: 14px;
     font-weight: 500;
     border: 1px solid #eee;
 }

 [data-theme="dark"] .format-tag {
     background-color: transparent;
     color: #aaa;
     border: 1px solid #333;
 }

 .file-input {
     position: absolute;
     width: 100%;
     height: 100%;
     top: 0;
     left: 0;
     opacity: 0;
     cursor: pointer;
     z-index: 2;
 }

 .upload-button {
     background-color: #7953db;
     color: white;
     border: none;
     border-radius: 6px;
     padding: 12px 28px;
     font-size: 16px;
     font-weight: 500;
     cursor: pointer;
     transition: background-color 0.2s ease;
 }

 .upload-button:hover {
     background-color: #6a44cc;
 }

 /* Upload Preview Styles */
 .upload-preview {
     display: none;
     width: 100%;
     flex-direction: column;
     align-items: center;
     transition: opacity 0.3s ease;
     opacity: 1;
 }

 .preview-container {
     width: 100%;
     max-width: 450px;
     height: 280px;
     border-radius: 10px;
     overflow: hidden;
     margin-bottom: 25px;
     background-color: transparent;
     display: flex;
     align-items: center;
     justify-content: center;
     position: relative;
     border: 1px solid #eee;
 }

 .preview-container::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(135deg, rgba(121, 83, 219, 0.05) 0%, rgba(121, 83, 219, 0.05) 100%);
     z-index: 0;
 }

 .preview-container img {
     max-width: 100%;
     max-height: 100%;
     object-fit: contain;
     position: relative;
     z-index: 1;
 }

 .preview-info {
     width: 100%;
     max-width: 450px;
     display: flex;
     flex-direction: column;
     gap: 18px;
     background-color: transparent;
     padding: 20px;
     border-radius: 10px;
 }

 .file-details {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding-bottom: 15px;
     border-bottom: 1px solid var(--card-border);
 }

 .file-name {
     font-size: 17px;
     font-weight: 500;
     color: var(--text-color);
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     max-width: 70%;
 }

 .file-size {
     font-size: 15px;
     color: var(--tool-description-color);
     background-color: rgba(121, 83, 219, 0.1);
     padding: 4px 10px;
     border-radius: 15px;
     font-weight: 500;
 }

 .preview-actions {
     display: flex;
     justify-content: space-between;
     gap: 15px;
     margin-top: 5px;
 }

 .preview-actions button {
     flex: 1;
     padding: 12px 20px;
     border-radius: 30px;
     font-weight: 500;
     transition: all 0.3s ease;
 }

 .preview-actions .secondary-btn {
     background-color: transparent;
     border: 1px solid var(--card-border);
     color: var(--text-color);
 }

 .preview-actions .secondary-btn:hover {
     background-color: rgba(0, 0, 0, 0.05);
 }

 .preview-actions .primary-btn {
     background-color: #7953db;
     color: white;
     border: none;
 }

 .preview-actions .primary-btn:hover {
     background-color: #6a44cc;
 }

 /* Cropper Page Styles */
 .cropper-container {
     background-color: var(--card-bg);
     border-radius: 10px;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
     overflow: hidden;
     margin-bottom: 30px;
     transition: all 0.3s ease;
 }

 /* Cropper.js Container Styles */
 .cropper-image-container {
     width: 100%;
     height: 450px;
     background: linear-gradient(135deg, var(--background-color) 0%, rgba(121, 83, 219, 0.03) 100%);
     border-radius: 16px;
     overflow: hidden;
     position: relative;
     margin-bottom: 25px;
     display: flex;
     align-items: center;
     justify-content: center;
     border: 2px solid var(--card-border);
     box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
     transition: all 0.3s ease;
 }

 .cropper-image-container:hover {
     box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
     transform: translateY(-2px);
 }

 .cropper-image-container img {
     max-width: 100%;
     max-height: 100%;
     display: block;
     border-radius: 8px;
 }

 /* Cropper.js theme customization */
 .cropper-container {
     direction: ltr;
     font-size: 0;
     line-height: 0;
     position: relative;
     -ms-touch-action: none;
     touch-action: none;
     -webkit-user-select: none;
     -moz-user-select: none;
     -ms-user-select: none;
     user-select: none;
 }

 .cropper-container img {
     display: block;
     height: 100%;
     image-orientation: 0deg;
     max-height: none;
     max-width: none;
     min-height: 0;
     min-width: 0;
     width: 100%;
 }

 /* Custom Cropper.js styling for dark mode */
 [data-theme="dark"] .cropper-view-box {
     outline: 1px solid rgba(157, 109, 255, 0.75);
 }

 [data-theme="dark"] .cropper-dashed {
     border: 0 dashed rgba(157, 109, 255, 0.5);
 }

 [data-theme="dark"] .cropper-center::before,
 [data-theme="dark"] .cropper-center::after {
     background-color: rgba(157, 109, 255, 0.75);
 }

 /* Cropper.js point styling */
 .cropper-point {
     background-color: #4158D0;
     border: 2px solid #fff;
     border-radius: 50%;
     height: 12px;
     width: 12px;
 }

 [data-theme="dark"] .cropper-point {
     background-color: #9d6dff;
     border-color: #333;
 }

 .cropper-wrapper {
     display: flex;
     flex-wrap: wrap;
     min-height: 500px;
 }

 /* Left Panel - Image Preview */
 .preview-panel {
     flex: 1.2;
     min-width: 350px;
     padding: 30px;
     border-right: 1px solid var(--card-border);
     background: linear-gradient(135deg, var(--card-bg) 0%, rgba(121, 83, 219, 0.02) 100%);
     position: relative;
 }

 .preview-panel::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: radial-gradient(circle at top right, rgba(121, 83, 219, 0.05) 0%, transparent 50%);
     pointer-events: none;
 }

 .image-preview-container {
     width: 100%;
     height: 450px;
     background: linear-gradient(135deg, var(--background-color) 0%, rgba(121, 83, 219, 0.03) 100%);
     border-radius: 16px;
     overflow: hidden;
     position: relative;
     margin-bottom: 25px;
     display: flex;
     align-items: center;
     justify-content: center;
     border: 2px solid var(--card-border);
     box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
     transition: all 0.3s ease;
 }

 .image-preview-container:hover {
     box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
     transform: translateY(-2px);
 }

 .image-preview {
     width: 100%;
     height: 100%;
     position: relative;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .image-preview img {
     max-width: 100%;
     max-height: 100%;
     object-fit: contain;
     border-radius: 4px;
 }

 .image-label {
     position: absolute;
     top: 20px;
     left: 50%;
     transform: translateX(-50%);
     padding: 8px 16px;
     background: linear-gradient(135deg, rgba(121, 83, 219, 0.9), rgba(157, 109, 255, 0.9));
     color: white;
     font-size: 13px;
     font-weight: 600;
     border-radius: 20px;
     backdrop-filter: blur(10px);
     box-shadow: 0 4px 12px rgba(121, 83, 219, 0.3);
     letter-spacing: 0.5px;
     text-transform: uppercase;
     z-index: 10;
 }

 .before-image .image-label {
     left: 15px;
 }

 .after-image .image-label {
     right: 15px;
 }

 .image-info {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
     gap: 18px;
     margin-top: 25px;
     padding: 20px;
     background: linear-gradient(135deg, rgba(121, 83, 219, 0.02) 0%, rgba(157, 109, 255, 0.02) 100%);
     border-radius: 16px;
     border: 1px solid rgba(121, 83, 219, 0.1);
 }

 .info-item {
     background-color: var(--background-color);
     padding: 16px 20px;
     border-radius: 12px;
     display: flex;
     flex-direction: column;
     gap: 8px;
     border: 1px solid var(--card-border);
     transition: all 0.3s ease;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
 }

 .info-item:hover {
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
 }

 .info-label {
     font-size: 13px;
     color: var(--tool-description-color);
     font-weight: 500;
     display: flex;
     align-items: center;
     gap: 6px;
 }

 .info-label i {
     font-size: 14px;
     opacity: 0.8;
 }

 .info-value {
     font-size: 18px;
     font-weight: 700;
     color: var(--text-color);
     letter-spacing: 0.5px;
 }

 .crop-badge {
     color: #2ecc71;
     background-color: rgba(46, 204, 113, 0.1);
     padding: 4px 8px;
     border-radius: 6px;
     font-size: 16px;
     display: inline-block;
     width: fit-content;
 }

 /* Crop Selection Overlay */
 .crop-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     pointer-events: none;
     z-index: 10;
 }

 .crop-selection {
     position: absolute;
     border: 2px solid #4158D0;
     background-color: rgba(65, 88, 208, 0.1);
     cursor: move;
     pointer-events: all;
     min-width: 20px;
     min-height: 20px;
 }

 .crop-handle {
     position: absolute;
     width: 12px;
     height: 12px;
     background-color: #4158D0;
     border: 2px solid white;
     border-radius: 50%;
     cursor: pointer;
     z-index: 11;
 }

 .crop-handle-nw {
     top: -6px;
     left: -6px;
     cursor: nw-resize;
 }

 .crop-handle-ne {
     top: -6px;
     right: -6px;
     cursor: ne-resize;
 }

 .crop-handle-sw {
     bottom: -6px;
     left: -6px;
     cursor: sw-resize;
 }

 .crop-handle-se {
     bottom: -6px;
     right: -6px;
     cursor: se-resize;
 }

 .crop-handle-n {
     top: -6px;
     left: 50%;
     transform: translateX(-50%);
     cursor: n-resize;
 }

 .crop-handle-s {
     bottom: -6px;
     left: 50%;
     transform: translateX(-50%);
     cursor: s-resize;
 }

 .crop-handle-w {
     top: 50%;
     left: -6px;
     transform: translateY(-50%);
     cursor: w-resize;
 }

 .crop-handle-e {
     top: 50%;
     right: -6px;
     transform: translateY(-50%);
     cursor: e-resize;
 }

 /* Right Panel - Crop Options */
 .options-panel {
     flex: 1;
     min-width: 320px;
     padding: 25px;
     background-color: var(--card-bg);
 }

 .options-container {
     max-width: 100%;
 }

 .options-container h3 {
     font-size: 24px;
     font-weight: 700;
     margin-bottom: 8px;
     color: var(--text-color);
     letter-spacing: -0.5px;
 }

 .options-description {
     font-size: 14px;
     color: var(--tool-description-color);
     margin-bottom: 30px;
     line-height: 1.6;
     opacity: 0.9;
 }

 .option-group {
     margin-bottom: 25px;
     background-color: var(--background-color);
     padding: 20px;
     border-radius: 12px;
     border: 1px solid var(--card-border);
 }

 .option-group>label {
     display: block;
     font-size: 16px;
     font-weight: 600;
     margin-bottom: 15px;
     color: var(--text-color);
     letter-spacing: 0.2px;
 }

 .crop-inputs {
     display: flex;
     gap: 12px;
     margin-bottom: 0;
 }

 .crop-input-group {
     flex: 1;
 }

 .crop-input-group label {
     display: block;
     margin-bottom: 8px;
     color: var(--text-color);
     font-weight: 500;
     font-size: 13px;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     opacity: 0.8;
 }

 .crop-input,
 .crop-select {
     width: 100%;
     padding: 12px 15px;
     border: 2px solid var(--card-border);
     border-radius: 8px;
     background-color: var(--card-bg);
     color: var(--text-color);
     font-size: 14px;
     font-weight: 500;
     transition: all 0.3s ease;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
 }

 .crop-input:focus,
 .crop-select:focus {
     border-color: var(--tool-icon-color);
     outline: none;
     box-shadow: 0 0 0 3px rgba(121, 83, 219, 0.1);
     transform: translateY(-1px);
 }

 .crop-input:hover,
 .crop-select:hover {
     border-color: rgba(121, 83, 219, 0.5);
 }

 .option-input {
     width: 100%;
     padding: 10px 15px;
     border: 1px solid var(--card-border);
     border-radius: 5px;
     font-size: 16px;
     color: var(--text-color);
     background-color: var(--background-color);
     transition: border-color 0.3s ease;
 }

 .option-input:focus {
     border-color: var(--tool-icon-color);
     outline: none;
 }

 .option-select {
     width: 100%;
     padding: 10px 15px;
     border: 1px solid var(--card-border);
     border-radius: 5px;
     font-size: 16px;
     color: var(--text-color);
     background-color: var(--background-color);
     transition: border-color 0.3s ease;
     appearance: none;
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
     background-repeat: no-repeat;
     background-position: right 10px center;
     background-size: 16px;
     padding-right: 35px;
 }

 .option-select:focus {
     border-color: var(--tool-icon-color);
     outline: none;
 }

 /* Preset buttons for quick crop */
 .preset-buttons {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
     gap: 8px;
     margin-top: 15px;
 }

 .preset-btn {
     background-color: var(--card-bg);
     border: 2px solid var(--card-border);
     color: var(--text-color);
     padding: 10px 12px;
     border-radius: 8px;
     font-size: 12px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     white-space: nowrap;
     text-align: center;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
 }

 .preset-btn:hover {
     background-color: #7953db;
     color: white;
     border-color: #7953db;
 }

 .action-buttons {
     display: flex;
     gap: 15px;
     margin-top: 30px;
 }

 .action-buttons button {
     flex: 1;
     padding: 12px;
 }

 /* Simple Button Styles */
 .enhanced-btn {
     padding: 12px 24px;
     border-radius: 6px;
     font-weight: 500;
     font-size: 14px;
     cursor: pointer;
     border: none;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     transition: background-color 0.2s ease;
 }

 .enhanced-btn:disabled {
     opacity: 0.6;
     cursor: not-allowed;
 }

 .primary-btn.enhanced-btn {
     background-color: #7953db;
     color: white;
 }

 .primary-btn.enhanced-btn:hover:not(:disabled) {
     background-color: #6a44cc;
 }

 .secondary-btn.enhanced-btn {
     background-color: transparent;
     border: 1px solid var(--card-border);
     color: var(--text-color);
 }

 .secondary-btn.enhanced-btn:hover:not(:disabled) {
     background-color: var(--card-border);
 }

 /* Dark mode support for simple buttons */
 [data-theme="dark"] .secondary-btn.enhanced-btn {
     border-color: #444;
     color: var(--text-color);
 }

 [data-theme="dark"] .secondary-btn.enhanced-btn:hover:not(:disabled) {
     background-color: #444;
 }

 /* Animations */
 @keyframes float {
     0% {
         transform: translateY(0px);
     }

     50% {
         transform: translateY(-10px);
     }

     100% {
         transform: translateY(0px);
     }
 }

 @keyframes pulse {
     0% {
         transform: scale(1);
     }

     50% {
         transform: scale(1.1);
     }

     100% {
         transform: scale(1);
     }
 }

 @keyframes shake {

     0%,
     100% {
         transform: translateX(0);
     }

     20%,
     60% {
         transform: translateX(-5px);
     }

     40%,
     80% {
         transform: translateX(5px);
     }
 }

 .hover-effect {
     transform: translateY(-5px);
 }

 .shake-animation {
     animation: shake 0.5s ease-in-out;
 }

 /* Drag and Drop Highlight */
 .upload-area.drag-over .upload-content {
     border: 2px dashed #7953db;
     background-color: rgba(121, 83, 219, 0.03);
     transform: scale(1.02);
     transition: all 0.3s ease;
 }

 .upload-area.drag-over .upload-icon {
     transform: translateY(-5px) scale(1.1);
 }

 

 /* Responsive Styles */
 @media (max-width: 992px) {
     .cropper-wrapper {
         flex-direction: column;
     }

     .preview-panel {
         border-right: none;
         border-bottom: 1px solid var(--card-border);
     }

     .options-container {
         max-width: 100%;
     }
 }

 @media (max-width: 768px) {
     .upload-area {
         padding: 25px;
     }

     .upload-content {
         padding: 20px;
     }

     .upload-icon {
         font-size: 56px;
     }

     .upload-content h3 {
         font-size: 24px;
     }

     .preview-panel,
     .options-panel {
         padding: 20px;
     }

     .image-info {
         flex-direction: column;
         gap: 10px;
     }

     .info-item {
         min-width: auto;
     }

     .crop-inputs {
         flex-direction: column;
         gap: 10px;
     }
 }

 @media (max-width: 480px) {
     .upload-area {
         padding: 20px 15px;
     }

     .upload-content {
         padding: 15px;
     }

     .upload-icon {
         font-size: 48px;
         margin-bottom: 15px;
     }

     .upload-content h3 {
         font-size: 20px;
     }

     .upload-info {
         padding: 12px 15px;
     }

     .action-buttons {
         flex-direction: column;
     }

     .enhanced-btn {
         padding: 12px 20px !important;
         margin-bottom: 5px;
     }
 }

 /* Notification Styles */
 .notification-container {
     position: fixed;
     top: 20px;
     right: 20px;
     z-index: 10000;
     max-width: 400px;
 }

 .notification {
     background-color: var(--card-bg);
     border-radius: 8px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     margin-bottom: 10px;
     padding: 16px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     border-left: 4px solid;
     animation: slideIn 0.3s ease-out;
     transition: all 0.3s ease;
 }

 .notification.success {
     border-left-color: #2ecc71;
 }

 .notification.error {
     border-left-color: #e74c3c;
 }

 .notification.warning {
     border-left-color: #f39c12;
 }

 .notification.info {
     border-left-color: #3498db;
 }

 .notification-content {
     display: flex;
     align-items: center;
     gap: 12px;
     flex: 1;
 }

 .notification-content i {
     font-size: 18px;
 }

 .notification.success .notification-content i {
     color: #2ecc71;
 }

 .notification.error .notification-content i {
     color: #e74c3c;
 }

 .notification.warning .notification-content i {
     color: #f39c12;
 }

 .notification.info .notification-content i {
     color: #3498db;
 }

 .notification-content span {
     color: var(--text-color);
     font-size: 14px;
     line-height: 1.4;
 }

 .notification-close {
     background: none;
     border: none;
     color: var(--tool-description-color);
     cursor: pointer;
     padding: 4px;
     border-radius: 4px;
     transition: all 0.2s ease;
     margin-left: 12px;
 }

 .notification-close:hover {
     background-color: rgba(0, 0, 0, 0.1);
     color: var(--text-color);
 }

 .notification.fade-out {
     opacity: 0;
     transform: translateX(100%);
 }

 @keyframes slideIn {
     from {
         opacity: 0;
         transform: translateX(100%);
     }

     to {
         opacity: 1;
         transform: translateX(0);
     }
 }

 /* Dark mode support for notifications */
 [data-theme="dark"] .notification {
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
 }

 [data-theme="dark"] .notification-close:hover {
     background-color: rgba(255, 255, 255, 0.1);
 }

 /* Mobile responsive notifications */
 @media (max-width: 480px) {
     .notification-container {
         left: 10px;
         right: 10px;
         max-width: none;
     }

     .notification {
         padding: 12px;
     }

     .notification-content {
         gap: 8px;
     }

     .notification-content span {
         font-size: 13px;
     }
 }
