/* =========================
   GLOBAL RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: Arial, sans-serif;
    background:#f5f6fa;
    color:#333;
}

/* =========================
   HEADER / NAVBAR
========================= */
.header{
    background: linear-gradient(135deg,#5b6cff,#7f8cff);
    color:#fff;
    padding:15px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    font-weight:bold;
    font-size:18px;
}

.nav{
    display:flex;
    align-items:center;
    transition:0.3s;
}

.nav a{
    color:white;
    margin-left:20px;
    text-decoration:none;
    font-size:14px;
}

.nav a:hover{
    text-decoration:underline;
}

/* MOBILE MENU */
.menu-toggle{
    display:none;
    font-size:22px;
    cursor:pointer;
}

/* =========================
   PAGE TITLE
========================= */
.page-title{
    background: linear-gradient(135deg,#4a56e2,#7c84ff);
    color:white;
    text-align:center;
    padding:50px 20px;
}

.page-title h1{
    font-size:28px;
}

.page-title p{
    margin-top:10px;
    opacity:.9;
}

/* =========================
   HERO
========================= */
.hero{
    text-align:center;
    padding:70px 20px;
    background:linear-gradient(135deg,#4a56e2,#7c84ff);
    color:white;
}

.hero h1{
    font-size:42px;
}

.hero p{
    font-size:18px;
}

/* =========================
   SEARCH
========================= */
.search{
    margin-top:30px;
}

.search input{
    width:90%;
    max-width:450px;
    padding:14px;
    border-radius:8px;
    border:none;
}

/* =========================
   CONTAINER
========================= */
.container{
    max-width:1200px;
    margin:auto;
    padding:50px 20px;
}

/* =========================
   GRID SYSTEM
========================= */
.tools{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

/* =========================
   CARD
========================= */
.tool-card{
    background:white;
    padding:30px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    transition:0.3s;
}

.tool-card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 20px rgba(0,0,0,0.12);
}

.tool-card i{
    font-size:40px;
    color:#4a56e2;
    margin-bottom:15px;
}

.tool-card p{
    font-size:14px;
    color:#666;
}

.tool-card a{
    display:inline-block;
    margin-top:10px;
    padding:8px 16px;
    background:#4a56e2;
    color:white;
    border-radius:6px;
    text-decoration:none;
}

/* =========================
   FEATURES
========================= */
.features{
    background:white;
    padding:60px 20px;
    text-align:center;
}

.feature-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
    max-width:1000px;
    margin:auto;
}

/* =========================
   BUTTON
========================= */
button{
    background:#4a56e2;
    color:white;
    border:none;
    padding:12px;
    border-radius:6px;
    cursor:pointer;
}

button:hover{
    opacity:0.9;
}

/* =========================
   TOOL BOX (MAIN FIX)
========================= */
.tool-box{
    max-width:700px;
    margin:40px auto;
    background:white;
    padding:40px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

/* WIDE TOOL */
.tool-box.wide{
    max-width:800px;
}

/* =========================
   FORM GROUP (IMPORTANT)
========================= */
.form-group{
    margin-bottom:20px;
}

.form-group label{
    display:block;
    margin-bottom:6px;
    font-weight:600;
}

.form-group input,
.form-group select{
    width:100%;
    padding:12px;
    border-radius:6px;
    border:1px solid #ccc;
}

/* =========================
   DESCRIPTION
========================= */
.description{
    background:#eef1ff;
    padding:15px;
    border-radius:6px;
    margin-bottom:25px;
    line-height:1.6;
}

.description ul{
    margin-top:10px;
    padding-left:20px;
}

/* =========================
   DISCIPLINE GRID
========================= */
.discipline-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:12px;
    margin-top:10px;
}

.checkbox-item{
    background:#f1f3f9;
    padding:14px;
    border-radius:10px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:15px;
    border:2px solid transparent;
    transition:0.2s;
}

.checkbox-item:hover{
    background:#e4e8ff;
}

/* 🔥 ACTIVE STATE */
.checkbox-item.active{
    background:#4a56e2;
    color:white;
    border-color:#4a56e2;
}
/* =========================
   RESULT BOX
========================= */
.result{
    margin-top:25px;
    background:#f7f7f7;
    padding:20px;
    border-radius:6px;
    font-family:monospace;
    text-align:center;
}

/* =========================
   DROPZONE
========================= */
#dropzone{
    border:2px dashed #4a56e2;
    padding:30px;
    border-radius:10px;
    text-align:center;
    margin-bottom:20px;
}

/* =========================
   PREVIEW
========================= */
#previewArea{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
}

/* =========================
   PROGRESS
========================= */
.progress{
    height:10px;
    background:#eee;
    border-radius:5px;
    margin:20px 0;
}

#progressBar{
    height:100%;
    width:0%;
    background:#4a56e2;
}



/* UPLOAD BOX */
.upload-box{
    border:2px dashed #4a56e2;
    padding:40px;
    text-align:center;
    background:white;
    border-radius:10px;
    cursor:pointer;
}

.upload-box:hover{
    background:#f1f2ff;
}

.preview{
    display:flex;
    flex-wrap:wrap;
    margin-top:20px;
    gap:10px;
    justify-content:center;
}

.progress{
    width:100%;
    background:#eee;
    border-radius:5px;
    margin-top:20px;
    display:none;
}

.progress-bar{
    height:10px;
    width:0%;
    background:#4a56e2;
}

/* =========================
   FOOTER
========================= */
.footer{
    background:#111;
    color:#ccc;
    text-align:center;
    padding:15px;
}

/* =========================
   MOBILE
========================= */
@media(max-width:768px){

    .menu-toggle{
        display:block;
    }

    .nav{
        position:absolute;
        top:60px;
        left:0;
        width:100%;
        background:#5b6cff;
        flex-direction:column;
        display:none;
    }

    .nav.active{
        display:flex;
    }

    .nav a{
        padding:15px;
        margin:0;
        text-align:center;
    }

    .hero h1{
        font-size:30px;
    }
}