/* =====================================
   BASIC RESET
===================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f5f6f8;

    color: #222;

    line-height: 1.5;
}


/* =====================================
   MAIN CONTAINER
===================================== */

.container {

    width: 100%;

    max-width: 760px;

    margin: auto;

    padding: 25px 15px 50px;
}


/* =====================================
   HEADER
===================================== */

.header {

    text-align: center;

    margin-bottom: 25px;
}


.header h1 {

    font-size: 30px;

    margin-bottom: 8px;
}


.header p {

    color: #666;

    font-size: 15px;
}


/* =====================================
   CARD
===================================== */

.card {

    background: white;

    border-radius: 10px;

    padding: 20px;

    margin-bottom: 18px;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.07);
}


/* =====================================
   STEP TITLE
===================================== */

.step-title {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;
}


.step-title span {

    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #0066ff;

    color: white;

    border-radius: 50%;

    font-weight: bold;
}


.step-title h2 {

    font-size: 20px;
}


/* =====================================
   LABEL
===================================== */

label {

    display: block;

    font-weight: 600;

    margin-bottom: 7px;
}


/* =====================================
   FILE INPUT
===================================== */

#photoInput {

    display: none;
}


/* =====================================
   UPLOAD BUTTON
===================================== */

.upload-button {

    display: inline-block;

    padding: 12px 20px;

    background: #222;

    color: white;

    border-radius: 6px;

    cursor: pointer;

    font-size: 16px;
}


.upload-button:hover {

    background: #444;
}


/* =====================================
   HELP TEXT
===================================== */

.help-text {

    margin-top: 9px;

    color: #777;

    font-size: 14px;
}


/* =====================================
   CROP AREA
===================================== */

.crop-area {

    width: 100%;

    max-width: 600px;

    margin: 20px auto;

    background: #eeeeee;

    display: none;

    overflow: hidden;
}


.crop-area img {

    display: block;

    max-width: 100%;
}


/* =====================================
   BUTTONS
===================================== */

button {

    font-family: inherit;
}


.secondary-button {

    width: 100%;

    padding: 12px;

    border: none;

    border-radius: 6px;

    background: #008000;

    color: white;

    font-size: 16px;

    cursor: pointer;
}


.secondary-button:disabled {

    background: #aaa;

    cursor: not-allowed;
}


.small-button {

    width: 100%;

    padding: 11px;

    border: none;

    border-radius: 6px;

    background: #008000;

    color: white;

    cursor: pointer;

    font-size: 15px;
}


/* =====================================
   SELECT & INPUT
===================================== */

select,
input[type="number"] {

    width: 100%;

    padding: 12px;

    border: 1px solid #ccc;

    border-radius: 6px;

    background: white;

    font-size: 16px;

    outline: none;
}


select:focus,
input[type="number"]:focus {

    border-color: #0066ff;
}


/* =====================================
   CUSTOM SIZE
===================================== */

.custom-box {

    display: none;

    margin-top: 15px;

    padding: 15px;

    background: #f7f7f7;

    border-radius: 8px;
}


.input-group {

    margin-bottom: 13px;
}


/* =====================================
   SELECTED INFO
===================================== */

.selected-info {

    margin-top: 12px;

    padding: 10px;

    background: #f4f7ff;

    border-radius: 6px;

    color: #444;

    font-size: 14px;
}


/* =====================================
   GENERATE BUTTON
===================================== */

.generate-button {

    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 7px;

    background: #0066ff;

    color: white;

    font-size: 17px;

    font-weight: 600;

    cursor: pointer;

    margin-bottom: 18px;
}


.generate-button:hover {

    background: #0052cc;
}


/* =====================================
   RESULT
===================================== */

.result {

    text-align: center;

    min-height: 120px;

    padding: 10px;
}


.empty-message {

    color: #777;

    padding: 35px 10px;
}


.result-title {

    font-weight: bold;

    margin-bottom: 15px;
}


.generated-preview {

    width: 100%;

    max-width: 650px;

    height: auto;

    display: block;

    margin: 15px auto;

    border: 1px solid #ddd;
}


/* =====================================
   ACTION BUTTONS
===================================== */

.action-buttons {

    display: flex;

    gap: 10px;

    margin-top: 15px;
}


.download-button,
.print-button {

    flex: 1;

    padding: 13px;

    border: none;

    border-radius: 6px;

    color: white;

    font-size: 16px;

    cursor: pointer;
}


.download-button {

    background: #008000;
}


.print-button {

    background: #222;
}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 600px) {

    .container {

        padding: 18px 12px 40px;
    }


    .header h1 {

        font-size: 25px;
    }


    .card {

        padding: 16px;
    }


    .step-title h2 {

        font-size: 18px;
    }


    .action-buttons {

        flex-direction: column;
    }

}