.preview-title,
.progress-text {
    text-align: center
}

.content label,
.preview-title {
    font-weight: 700;
    color: #0a3d62
}

.spacer {
    height: 5px;
    background: #ccc;
    margin-bottom: 15px
}

.content label {
    margin-bottom: 6px;
    display: block
}

.content input[type=file] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color .3s
}

.content input[type=file]:focus {
    border-color: #0a3d62;
    outline: 0
}

.canvases {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.preview-box {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column
}

.app,
.canvas-wrapper {
    align-items: center;
    overflow: hidden
}

.preview-title {
    margin-bottom: 8px
}

.canvas-wrapper {
    width: 100%;
    height: 260px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    position: relative
}

canvas {
    max-width: 100%;
    max-height: 100%
}

.progress-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s
}

.progress-overlay.active {
    opacity: 1;
    pointer-events: all
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(255, 255, 255, .3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: 1s linear infinite spin;
    margin-bottom: 12px
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.progress-text {
    color: #fff;
    font-size: 14px;
    letter-spacing: .5px
}

.info-boxes {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap
}

.info-card {
    flex: 1;
    min-width: 140px;
    background: #f1f6fb;
    border: 1px solid #d8e6f7;
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px
}

.info-icon {
    font-size: 16px
}

.info-label {
    font-weight: 600;
    font-size: 12px;
    color: #555
}

.info-value {
    font-weight: 700;
    color: #0a3d62
}

.btns {
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    display: none
}

.app {
    display: inline-flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #0a3d62, #07517d);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    transition: .35s;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    text-decoration: none
}

.app .iconn {
    display: flex;
    align-items: center;
    transition: .35s
}

.app:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .35);
    background: linear-gradient(135deg, #07517d, #0a3d62)
}

.app:hover .iconn {
    transform: translateX(6px)
}

.app:active {
    transform: scale(.96);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3)
}

.app::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, .2);
    transform: skewX(-20deg);
    transition: .6s
}

.app:hover::before {
    left: 120%
}

@media screen and (max-width:600px) {
    

    .canvases {
        flex-direction: column;
        gap: 15px
    }

    .app {
        width: 100%
    }
}

@media (max-width:400px) {
    .preview-box {
        max-width: 100% !important
    }

    .tool-box {
        padding: 10px
    }

    .tool-detail-textarea-box {
        padding: 0
    }
}