/* User Notes Form Container */
.user-note-form-container {
    margin: 0 auto;
    background: #ffffff;
    border-radius: 0;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    color: #374151;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #fefefe;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Pattern Selector Styles */
.pattern-selector {
    margin-top: 8px;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    border: 2px solid #e5e7eb;
    padding: 16px;
    border-radius: 8px;
    background-color: #f9fafb;
}

.pattern-grid::-webkit-scrollbar {
    width: 6px;
}

.pattern-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.pattern-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.pattern-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.pattern-option {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pattern-option:hover {
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pattern-option.selected {
    border-color: #808080;
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.pattern-option img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}

.pattern-option .no-image {
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.pattern-option .pattern-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #374151;
    display: block;
    word-break: break-word;
}

.pattern-option.selected .pattern-title {
    font-weight: 600;
}

/* Crop Section Styles */
.crop-section {
    margin-bottom: 24px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

@media (max-width: 768px) {
    .crop-section {
        padding: 15px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .crop-section {
        padding: 10px;
        margin-bottom: 15px;
    }
}

.crop-container-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
}

.crop-container {
    background: #fff;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.crop-preview-full {
    position: relative;
    max-width: 300px;
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.crop-preview-full img {
    width: 100%;
    height: auto;
    display: block;
    max-width:300px;
    margin:0 auto;
}


.crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.crop-box {
    position: absolute;
    border: 2px solid #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    cursor: move;
    pointer-events: all;
    min-width: 100px;
    min-height: 50px;
}

.crop-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
}

.crop-handle.top-left { top: -6px; left: -6px; cursor: nw-resize; }
.crop-handle.top-right { top: -6px; right: -6px; cursor: ne-resize; }
.crop-handle.bottom-left { bottom: -6px; left: -6px; cursor: sw-resize; }
.crop-handle.bottom-right { bottom: -6px; right: -6px; cursor: se-resize; }

.crop-info {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 2px dashed #d1d5db;
    margin-top: 10px;
}

.crop-instruction {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.crop-instruction::before {
    content: "✂️";
    font-size: 16px;
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.submit-btn {
    background: black;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: black;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 18px;
}

/* Message Styles */
.form-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease-out;
}

.form-message--success {
    background-color: #dcfce7;
    border: 2px solid #16a34a;
    color: #15803d;
}

.form-message--error {
    background-color: #fef2f2;
    border: 2px solid #dc2626;
    color: #dc2626;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-note-form-container {
        margin: 30px auto;
    }

    .pattern-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        max-height: 250px;
    }

    .pattern-option {
        padding: 8px;
    }

    .pattern-option img,
    .pattern-option .no-image {
        height: 70px;
    }

    .crop-container-simple {
        gap: 10px;
    }

    .crop-container {
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }

    .crop-preview-full {
        max-width: 280px;
        width: 100%;
    }

    .crop-info {
        padding: 12px;
    }

    .crop-instruction {
        font-size: 13px;
    }

    .submit-btn {
        width: 100%;
        padding: 16px;
    }

    .form-message {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pattern-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .pattern-option img,
    .pattern-option .no-image {
        height: 60px;
    }

    .crop-container-simple {
        gap: 8px;
    }

    .crop-container {
        padding: 10px;
    }

    .crop-preview-full {
        max-width: 250px;
    }

    .crop-box {
        min-width: 80px;
        min-height: 40px;
    }

    .crop-handle {
        width: 14px;
        height: 14px;
        border-width: 3px;
    }

    .crop-instruction {
        font-size: 12px;
    }
} 


.user-notes-slider-container {
    margin: 40px 0;
    padding: 0;
}

.user-notes-slider-container h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.user-notes-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 20px 80px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
}

.slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
    justify-content: center;
}

.note-card {
    background: white;
    cursor: pointer;
}

.note-image {
    aspect-ratio: 2 / 1;

    overflow: hidden;
    position: relative;
}

.note-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.note-card:hover .note-image img {
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.note-content {
    padding: 20px;
}

.note-content h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.note-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
    margin: 15px 0;

}

.note-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.slider-nav:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 15px;
}

.slider-nav.next {
    right: 15px;
}

.slider-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #667eea;
    transform: scale(1.2);
}



.user-notes-slider-empty{
    font-size: 16px;
    color: #666;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    margin: 20px auto;
}