* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* =====================================================================   SIGNUP PAGE STYLING   ===================================================================== */

.main-container {
    display: flex;
    height: 100vh;
    width: 100%;
    animation: slideDown 1s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-80px) scale(1.06);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.left-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #ffffff;
}

.logo img {
    width: 20%;
}

.signup-pg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

h1 {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
}

.input-grp {
    margin-bottom: 15px;
}

.input-grp label {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.input-grp input[type="text"],
.input-grp input[type="email"],
.input-grp input[type="password"],
.input-grp input[type="number"] {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-grp input::placeholder {
    color: #979595ec;
}

.input-grp input:focus {
    border-color: #4f46e5;
}

.password-input {
    position: relative;
}

.toggle-password {
    color: #aaa;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.btn-signup {
    background-color: #4f46e5;
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    transition: background-color 0.3s;
}

.btn-signup:hover {
    background-color: #4e46e5e8;
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #e1e1e1;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}


.divider span {
    background-color: #fff;
    padding: 0 10px;
    color: #aaa;
    font-size: 14px;
}

.social-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e1e1e1;
    background-color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-social:hover {
    background-color: #f8f9fa;
}

.login-link {
    text-align: center;
    font-size: 14px;
    color: #555;
}

.login-link a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

/* ================= Responsive Adjustments ================= */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
        height: auto;
    }

    .left-section,
    .right-section {
        flex: none;
        width: 100%;
        padding: 40px 20px;
    }

    .images-container {
        width: 100%;
        height: auto;
        min-height: 300px;
    }

    .img-back {
        width: 90%;
        position: relative;
    }
}

@media (max-width: 630px) {
    .right-section {
        display: none;
    }
}

/* Swal Customization */

.glass-alert {
    backdrop-filter: blur(12px);
    border-radius: 20px;
}












































/* GLOBAL FONT & COLORS */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8f9fa;
}

/* NAVBAR */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

/* RESUME CARDS (DASHBOARD) */
.resume-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.resume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
    border: 1px solid #4f46e5;
}
.icon-circle {
    width: 60px; height: 60px;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}

/* ANIMATIONS */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* EDITOR SPECIFIC */
.letter-spacing-2 { letter-spacing: 2px; }
.object-fit-cover { object-fit: cover; }




/* =================================================================
   RESPONSIVE RESUME FIXES (Paste at the end of style.css)
   ================================================================= */

/* 1. Mobile & Tablet Layout (Screens smaller than 992px) */
@media (max-width: 992px) {
    
    /* Split screen khatam karke stack karo (Upar Form, Neeche Preview) */
    #editorSection .row {
        flex-direction: column;
    }

    /* Scrollbars theek karo */
    #editorSection .col-md-4, 
    #editorSection .col-md-8 {
        width: 100% !important;
        height: auto !important; /* Fixed height hatao */
        overflow: visible !important;
        border-right: none !important;
    }

    /* Form Section Styling */
    #editorSection .col-md-4 {
        padding-bottom: 30px;
        border-bottom: 5px solid #e0e7ff; /* Separation line */
    }

    /* 2. PREVIEW SCALING (The Magic Fix) */
    /* Mobile par A4 page ko chota karke dikhao */
    #resumePreview {
        transform: scale(0.45) !important; /* 45% size kar do */
        transform-origin: top center; /* Center se chota karo */
        margin-top: 20px;
        margin-bottom: -150px; /* Neeche ka khali gap hatao */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    }

    /* Container ko center karo */
    #editorSection .col-md-8 {
        display: flex;
        justify-content: center;
        background-color: #525659 !important; /* Dark background for better contrast */
        padding-bottom: 50px;
        min-height: 500px; /* Kam az kam itni height rahe */
    }
}

/* Very Small Mobiles (iPhone SE etc) */
@media (max-width: 450px) {
    #resumePreview {
        transform: scale(0.38) !important; /* Aur chota karo */
    }
}

/* Desktop Fix (Laptop Screens) */
@media (min-width: 993px) {
    .col-md-4, .col-md-8 {
        height: 90vh; /* Wapis height fix karo */
        overflow-y: auto; /* Scroll wapis lao */
    }
}






/* =======================================================
   FINAL RESPONSIVE FIXES FOR HOME.HTML (DASHBOARD & EDITOR)
   (Is code ko style.css ke sabse neeche paste karein)
   ======================================================= */

/* --- 1. DASHBOARD FIXES (Jahan "My Resumes" likha hai) --- */
@media (max-width: 768px) {
    /* Header ko column bana diya taake text aur button overlap na hon */
    #dashboardSection .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    /* "Create New Resume" button ko mobile par full width diya */
    #dashboardSection .d-flex button {
        width: 100%;
        margin-top: 10px;
    }

    /* Container ki padding thori adjust ki */
    #dashboardSection .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* --- 2. EDITOR FIXES (Jahan Resume edit karte hain) --- */
@media (max-width: 992px) {
    
    /* -- Navbar Fixes -- */
    #editorSection .navbar .d-flex {
        flex-wrap: wrap; /* Buttons ko neeche jagah mile */
        gap: 10px;
        justify-content: center;
    }
    /* Mobile par "Resume Editor" likha hua chupa dein taake jagah bache */
    #editorSection .navbar span.fw-bold.text-primary {
        display: none;
    }
    #editorSection .navbar button {
        font-size: 14px;
        padding: 8px 15px;
    }

    /* -- Layout Stack Fix (Form Upar, Resume Neeche) -- */
    #editorSection .row {
        flex-direction: column; /* Column banao */
        margin: 0;
    }

    /* FORM SECTION (INPUTS) */
    #editorSection .col-md-4 {
        width: 100% !important;
        height: auto !important; /* Height auto taake scroll na phase */
        max-height: 50vh; /* Screen ka aadha hissa form ko diya */
        overflow-y: auto; /* Sirf form scroll ho */
        border-right: none !important;
        border-bottom: 4px solid #e0e7ff; /* Separation line */
        padding-bottom: 20px;
    }

    /* PREVIEW SECTION (RESUME VIEW) */
    #editorSection .col-md-8 {
        width: 100% !important;
        height: auto !important;
        min-height: 60vh; /* Baaki hissa preview ke liye */
        background-color: #525659 !important; /* Dark background taake resume pop kare */
        display: flex;
        justify-content: center; /* Resume ko center karo */
        padding-top: 30px;
        padding-bottom: 50px;
        overflow: hidden;
    }

    /* -- RESUME SCALING MAGIC (Taake horizontal scroll na aye) -- */
    #resumePreview {
        transform: scale(0.45) !important; /* Resume ko 45% size par dikhao */
        transform-origin: top center;
        margin-top: 0;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
        /* Purane margins hatayein */
        left: auto;
        right: auto;
    }
}

/* --- 3. CHOTAY MOBILES KE LIYE (iPhone SE waghera) --- */
@media (max-width: 450px) {
    #resumePreview {
        transform: scale(0.38) !important; /* Aur chota karo taake fit aye */
    }
    
    #editorSection .col-md-4 {
        max-height: 45vh; /* Form ko thora chota karo choti screen par */
    }
}




/* =======================================================================
   FINAL MOBILE FIX - FORM AUR PREVIEW DONO DIKHENGE (Replace Old Code)
   ======================================================================= */

@media (max-width: 992px) {

    /* 1. LAYOUT: Mobile par layout ko column banao */
    #editorSection .row {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important; /* Height auto rakhein taake content na kate */
        overflow: visible !important; /* Scroll allow karein */
    }

    /* 2. FORM SECTION (UPAR) */
    #editorSection .col-md-4 {
        width: 100% !important;
        height: 400px !important; /* Form ko fixed height di */
        flex: none !important; /* Size shrink na ho */
        overflow-y: auto !important; /* Andar scroll ho */
        border-right: none !important;
        border-bottom: 5px solid #e0e7ff; /* Separation line */
        padding: 20px !important;
        background-color: #fff !important;
        display: block !important;
    }

    /* Input fields ko theek se dikhane ke liye */
    #editorSection .col-md-4 .row .col-6 {
        width: 100% !important;
        margin-bottom: 10px;
    }

    /* 3. PREVIEW SECTION (NEECHE - RESUME YAHAN AYEGA) */
    #editorSection .col-md-8 {
        width: 100% !important;
        height: auto !important; /* Height content ke hisaab se */
        min-height: 600px !important; /* ZABARDASTI HEIGHT DI: Taake gayab na ho */
        background-color: #525659 !important; /* Dark background */
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        padding-top: 30px !important;
        padding-bottom: 50px !important;
        flex: none !important;
    }

    /* 4. RESUME PAGE SCALING (Mobile fit) */
    #resumePreview {
        display: block !important; /* Ensure karein ke element visible ho */
        transform: scale(0.42) !important; /* Size set karein */
        transform-origin: top center !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
        margin-bottom: 0 !important;
    }
}

/* Chotay phones ke liye adjustment */
@media (max-width: 450px) {
    #resumePreview {
        transform: scale(0.35) !important;
    }
    #editorSection .col-md-8 {
        min-height: 500px !important; /* Height adjust */
    }
}