* {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Crop Tool Styles */
.crop-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    border: 3px solid #fff;
    background: #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#cropCanvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.crop-box {
    position: absolute;
    border: 3px solid #4f46e5;
    cursor: move;
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.5);
    z-index: 10;
    touch-action: none;
    border-radius: 4px;
}

.resize-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #4f46e5;
    border: 3px solid white;
    z-index: 11;
    border-radius: 50%;
    touch-action: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.resize-handle.nw {
    top: -10px;
    left: -10px;
    cursor: nw-resize;
}

.resize-handle.ne {
    top: -10px;
    right: -10px;
    cursor: ne-resize;
}

.resize-handle.sw {
    bottom: -10px;
    left: -10px;
    cursor: sw-resize;
}

.resize-handle.se {
    bottom: -10px;
    right: -10px;
    cursor: se-resize;
}

.resize-handle.n {
    top: -10px;
    left: 50%;
    margin-left: -10px;
    cursor: n-resize;
}

.resize-handle.s {
    bottom: -10px;
    left: 50%;
    margin-left: -10px;
    cursor: s-resize;
}

.resize-handle.e {
    top: 50%;
    right: -10px;
    margin-top: -10px;
    cursor: e-resize;
}

.resize-handle.w {
    top: 50%;
    left: -10px;
    margin-top: -10px;
    cursor: w-resize;
}

/* Border Preview */
.border-preview {
    width: 60px;
    height: 70px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    transition: all 0.3s;
}

.border-preview:hover {
    transform: scale(1.05);
}

.border-white {
    border: 4px solid white;
    box-shadow: 0 0 0 1px #ddd;
}

.border-black {
    border: 4px solid black;
}

.border-gray {
    border: 4px solid #9ca3af;
}

.border-gold {
    border: 4px solid #fbbf24;
}

.border-blue {
    border: 4px solid #3b82f6;
}

/* Progress Steps */
.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s;
}

.progress-step.active {
    background: #4f46e5;
    color: white;
    transform: scale(1.1);
}

.progress-step.completed {
    background: #10b981;
    color: white;
}

.progress-line {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    margin: 0 10px;
}

.progress-line.completed {
    background: #10b981;
}

/* Toast Notification */
.toast-message {
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #4f46e5;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #4f46e5;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #4f46e5;
    color: white;
}

/* Cards */
.preset-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.preset-card:hover {
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.1);
}

.preset-card.selected {
    border-color: #4f46e5;
    background: #eef2ff;
}

.hidden {
    display: none !important;
}