#myimgdiv{
    border: 1px dotted #5e4444;
    width: 200px;
    height: 230px;
    text-align: center;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    padding: 10px;
}

#myimg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin-bottom: 10px;
}

.image-buttons {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.image-buttons button {
    flex: 1;
    padding: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
}

.btn-remove {
    background: #dc3545;
    color: white;
}

.btn-replace {
    background: #4a688a;
    color: white;
    left: 100px;
}

.btn-remove:hover {
    background: #c82333;
}

.btn-replace:hover {
    background: #2c3b4e;
}

#myimgfile {
    display: none;
}

.crop-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.crop-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#cropPreview {
    width: 100%;
    height: 300px;
    margin: 0 auto;
}

.cr-slider-wrap {
    margin: 15px auto;
    width: 100%;
}

.crop-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 10px;
    background: white;
    width: 100%;
}

.crop-buttons button {
    min-width: 120px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.crop-buttons .btn-primary {
    background: #4a688a;
    color: white;
}

.crop-buttons .btn-danger {
    background: #dc3545;
    color: white;
}

.crop-buttons .btn-primary:hover {
    background: #2c3b4e;
}

.crop-buttons .btn-danger:hover {
    background: #c82333;
}

@media (max-width: 768px) {
    .crop-container {
        height: 100%;
        max-height: none;
        display: flex;
        flex-direction: column;
    }

    #cropPreview {
        height: 250px;
    }

    .crop-buttons {
        margin-top: auto;
        padding: 15px;
        position: sticky;
        bottom: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }

    .crop-buttons button {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
    }
}

.large-input {
    /* width: 400px; */
    height: 50px;
}

.myBook {
    background: #eee;
    border: 1px solid #ddd;
    padding: 8px;
    height: 350px;
    border-radius: 6px;
}

.myBook section button {
    position: absolute;
    bottom: 0;
}

.page-next {
    right: 0
}

label.error {
    color: red;
}

h1 {
    color: #fff;
}

.progress {
    position: relative;
}

.progress span {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
    font-weight: bold;
}

.progress {
    height: 25px;
    background: #262626;
    padding: 5px;
    overflow: visible;
    border-radius: 20px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #7992a8;
    margin-top: 50px;
}

.progress .progress-bar {
    border-radius: 20px;
    position: relative;
    animation: animate-positive 2s;
}

.progress .progress-value {
    display: block;
    padding: 3px 7px;
    font-size: 13px;
    color: #fff;
    border-radius: 4px;
    background: #191919;
    border: 1px solid #000;
    position: absolute;
    top: -40px;
    right: -10px;
}

.progress .progress-value:after {
    content: "";
    border-top: 10px solid #191919;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    position: absolute;
    bottom: -6px;
    left: 26%;
}

.progress-bar.active {
    animation: reverse progress-bar-stripes 0.40s linear infinite, animate-positive 2s;
}

@-webkit-keyframes animate-positive {
    0% {
        width: 0;
    }
}

@keyframes animate-positive {
    0% {
        width: 0;
    }
}

body {
    background: linear-gradient(to right, #2c3b4e, #4a688a, #2c3b4e);
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}