*{
    box-sizing: border-box;
}

:root {
    --background-color: #d6d6d6;
    --background-card: #ffffff;
    --background-box: #eaf4ff;
    --text-color: #000000;
    --button-bg: #007bff;
    --button-text: #ffffff;
}

.dark-mode {
    --background-color: #0a0a0a;
    --background-card: #171717;
    --background-box: #262626;
    --text-color: #ffffff;
    --button-bg: #1e88e5;
    --button-text: #ffffff;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    padding: 20px;
}

h2{
    margin: 0;
    width: 300px;
}
button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    font-size: 15px;
    font-weight: bold;
    padding: 15px 25px;
    cursor: pointer;
    border-radius: 20px;
}

.btn-download{
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    font-size: 15px;
    font-weight: bold;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    position: absolute;
    bottom: 10px;
    right: 10px;
}
.btn-download img{
    width: 20px;
    height: 20px;
    filter: invert(100%);
}

button:hover {
    opacity: 0.8;
}

.container {
    width: 1000px;
    margin: 0 auto;
    margin-bottom: 30px;
    background: var(--background-card);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.box{
    width: 50%;
}

.card-input{
    border-bottom: 1px solid grey;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
}
.card-input .title{
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 10px;
    display: inline-block;
}

/* Drag & Drop Area */
.drop-area {
    border: 2px dashed #007bff;
    padding: 20px;
    cursor: pointer;
    border-radius: 10px;
    background: var(--background-box);
    margin-bottom: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}
.drop-area p, .drop-area h3{
    margin: 10px;
    text-align: center;
}

/* Preview */
.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.preview-image {
    max-width: 100%;
    border-radius: 5px;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background: #ddd;
    border-radius: 5px;
    margin-top: 100px;
    display: none;
}

.progress-bar {
    height: 10px;
    width: 0%;
    background: #28a745;
    border-radius: 5px;
}

/* Result */
.result-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;    
}

input:not([type=file]), select, .input-main {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 20px;
  box-sizing: border-box;
}

label.file {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    font-size: 13px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 20px;
    box-sizing: border-box;
    background: white;
    color: black;
    outline: none;
  }

  
input[type=checkbox]{
    width: 30px;height: 30px;
}

.m-auto{
    margin: 0 auto;
}


.no-border{
    border: none;
}

.card{
    position: relative;   
}
.card img{
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4); 
}
.pdf-result{
    height: 100px;
    background: var(--background-box);
}
.pdf-result::after{
    content: 'PDF';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-color);
}

li{
    margin: 10px 0;
}

.between-center{
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}
.between-start{
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
}

.start-center{
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
}

.w-25{
    width: 25%;
}

.w-50{
    width: 50%;
}

.w-100{
    width: 100%;
}
@media only screen and (max-width: 600px){
    h2{
        width: 100px;
        font-size: 18px;
    }

    body {
        padding: 0px;
        margin: 0;
    }

    .container {
        width: 100%;
        border-radius: 0;
        margin-bottom: 0;
    }

    .column-mob{
        display: flex;
        flex-direction: column;
    }
    
    .drop-area p, .drop-area h3{
        font-size: 18px;
    }

    .box{
        width: 100%;
    }

    .w-25-mob{
        width: 25%;
    }
    
    .w-50-mob{
        width: 50%;
    }
    
    .w-100-mob{
        width: 100%;
    }
    
    .btn-download{
        font-size: 13px;
        font-weight: bold;
        padding: 10px;
    }
    .btn-download img{
        width: 17px;
        height: 17px;
    }

    /* Result */
    .result-container {
        grid-template-columns: 1fr 1fr;
    }

    
    .drop-area p, .drop-area h3{
        font-size: 15px;
    }
}