/* ============================================
   CREATE.CSS - Create page specific styles
   ============================================ */

/* Font faces for create page */
@font-face {
    font-family: 'CustomFont';
    src: url('../css/fonts/custom-font.woff2') format('woff2');
    font-display: swap;
}

/* File upload area */
.file-upload-wrapper {
    text-align: center;
}

.btn-upload {
    transition: all 0.3s ease;
    width: 100%;
    padding: 10px;
    border-radius: 50px;
}

.btn-upload:hover {
    background: #ff0051;
    color: #fff;
    border-color: #ff0051;
}

/* Preview images */
.upload-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #ff0051;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Font preview section */
.fprev {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Result animation */
#result_section {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page loader */
.page-loader {
    display: none;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 15px 0;
}

.page-loader.show {
    display: block;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff0051;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Canvas hidden */
#canvas {
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.konvajs-content,
canvas {
    pointer-events: none !important;
}