label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
    margin-bottom: 6px;
}

input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

/* MAIN LAYOUT */

.workspace {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* CANVAS */

.canvas-box {
    flex: 1;
}

canvas {
    display: block;
    width: 100%;
    /* height: 420px; */
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* RIGHT PANEL */

.control-box {
    width: 230px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* height: 320px; */
}

.btns {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    padding: 12px 22px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(135deg, #0a3d62, #07517d);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 6px 18px rgba(78, 78, 78, 0.25);
}

/* Text & Icon */
.app .text {
    transition: 0.3s ease;
}

.app .iconn {
    display: flex;
    align-items: center;
    transition: 0.35s ease;
}

/* Hover Effect */
.app:hover {
    /* transform: translateY(-3px); */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #07517d, #0a3d62);
}

/* Icon Slide Animation */
.app:hover .iconn {
    transform: translateX(6px);
}

/* Click Effect */
.app:active {
    transform: scale(0.96);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Shine Effect */
.app::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: 0.6s;
}

.app:hover::before {
    left: 120%;
}

/* DOWNLOAD BUTTON */

.download {
    text-align: right;
    margin-top: 20px;
    border-top: 1px solid #292929;
    padding-top: 20px;
}

.download .app {
    background: #10b981;
    color: #fff;
}

.download a:hover {
    background: #059669;
}

@media (max-width: 700px) {
    .workspace {
        flex-direction: column;
    }

    .control-box {
        width: 100%;
    }
}