/* =============================
   ULTRA MODERN FORM DESIGN
============================= */

.modern-form{
    position:relative;
    padding:40px;
    border-radius:25px;
    background:rgba(255,255,255,0.04);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 30px 80px rgba(0,0,0,.7);
}

/* GRID */
.form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

/* INPUT GROUP */
.input-group{
    position:relative;
}

.input-group input,
.input-group select,
.input-group textarea{
    width:100%;
    padding:16px 45px 16px 16px;
    border-radius:16px;
    background:#0f172a;
    border:1px solid rgba(255,255,255,.1);
    color:white;
    font-size:14px;
    transition:.3s;
}

/* Floating Label */
.input-group label{
    position:absolute;
    left:16px;
    top:16px;
    color:#94a3b8;
    font-size:14px;
    pointer-events:none;
    transition:.3s;
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group select:focus + label,
.input-group select:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label{
    top:-10px;
    left:12px;
    font-size:12px;
    background:#0b1120;
    padding:0 6px;
    color:#6366f1;
}

/* Icons */
.input-icon{
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    font-size:16px;
    opacity:.7;
}

/* Focus effect */
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus{
    outline:none;
    border-color:#6366f1;
    box-shadow:0 0 0 3px rgba(99,102,241,.3);
}

/* FULL WIDTH */
.full-width{
    grid-column:1/-1;
}

/* TEXTAREA */
textarea{
    min-height:140px;
    resize:vertical;
}

/* SALARY SLIDER */
.salary-section{
    margin:40px 0 20px;
}

.salary-section input[type=range]{
    width:100%;
    margin-top:10px;
}

.salary-output{
    margin-top:10px;
    font-size:18px;
    font-weight:600;
    color:#22c55e;
}

/* TOGGLE SWITCH */
.toggle-section{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:25px 0;
}

.switch{
    position:relative;
    width:50px;
    height:26px;
}

.switch input{
    display:none;
}

.slider{
    position:absolute;
    inset:0;
    background:#334155;
    border-radius:30px;
    transition:.3s;
}

.slider::before{
    content:"";
    position:absolute;
    width:20px;
    height:20px;
    left:3px;
    top:3px;
    background:white;
    border-radius:50%;
    transition:.3s;
}

.switch input:checked + .slider{
    background:#6366f1;
}

.switch input:checked + .slider::before{
    transform:translateX(24px);
}

.form-submit{
    display:flex;
    justify-content:flex-end;
    gap:15px;          /* space between buttons */
    margin-top:40px;   /* space below textarea */
}

/* BUTTON */
.publish-btn{
    padding:16px 35px;
    border:none;
    border-radius:20px;
    font-size:15px;
    font-weight:600;
    background:linear-gradient(90deg,#38bdf8,#6366f1);
    color:white;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 15px 40px rgba(99,102,241,.4);
}

.publish-btn:first-child{
    background:#1e293b;
    box-shadow:none;
}

.publish-btn:first-child:hover{
    background:#334155;
}

.publish-btn:hover{
    transform:translateY(-4px);
    box-shadow:0 25px 60px rgba(99,102,241,.6);
}

/* ===============================
   TOAST NOTIFICATION
=============================== */

.custom-toast{
    position:fixed;
    bottom:30px;
    right:30px;
    background:#22c55e;
    color:white;
    padding:14px 22px;
    border-radius:12px;
    font-size:14px;
    font-weight:500;
    opacity:0;
    transform:translateY(20px);
    transition:all .3s ease;
    box-shadow:0 15px 40px rgba(0,0,0,.4);
    z-index:9999;
}

.custom-toast.show{
    opacity:1;
    transform:translateY(0);
}

/* ===============================
   ADMIN JOB CARDS
=============================== */

.grid-jobs{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
}

.admin-job-card{
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(15px);
    border-radius:20px;
    padding:25px;
    transition:.3s;
    box-shadow:0 15px 40px rgba(0,0,0,.5);
}

.admin-job-card:hover{
    transform:translateY(-5px);
}

.job-card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.job-card-header h3{
    font-size:18px;
    font-weight:600;
}

.delete-btn{
    background:#ef4444;
    border:none;
    width:30px;
    height:30px;
    border-radius:50%;
    color:white;
    cursor:pointer;
    font-size:14px;
}

.company{
    margin:10px 0;
    font-weight:500;
    color:#94a3b8;
}

.job-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:15px;
}

.job-meta span{
    background:#1e293b;
    padding:6px 10px;
    border-radius:10px;
    font-size:12px;
}

.remote-badge{
    background:#22c55e !important;
    color:white;
}

.description{
    font-size:14px;
    color:#cbd5e1;
}