* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    height: 100vh;
}

/* TOGGLE BUTTON */
#ai-bot-toggle {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 25px #38bdf8;
    transition: .3s;
    z-index: 9999;
}

#ai-bot-toggle:hover {
    transform: scale(1.1)
}

/* BOT BOX */
#ai-bot-box {
    position: fixed;
    bottom: 110px;
    left: 25px;
    width: 370px;
    height: 550px;
    background: #0f172a;
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: white;
    animation: fadeUp .4s ease;
}

/* HEADER */
#ai-bot-header {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

#ai-bot-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* MESSAGES */
#ai-bot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
}

.bot-message {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    width: 85%;
    animation: msg .3s;
}

.user-message {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    padding: 12px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    width: 85%;
    margin-left: auto;
    animation: msg .3s;
}

/* OPTIONS */

.optionBtn {
    flex: 1;
    padding: 10px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: white;
    cursor: pointer;
    font-size: 13px;
    transition: .3s;
}

.optionBtn:disabled {
    opacity: 0.5;
}



/* INPUT */
#ai-bot-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
}

#ai-bot-input-area input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 30px;
    border: none;
    outline: none;
}

#ai-bot-input-area button {
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: white;
    font-weight: 600;
}


.user-default-message {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 12px;
}


/* FORMS */
form {
    margin-top: 5px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: none;
    border-radius: 10px;
    outline: none;
}

/* Here is the code for resume upload styling start*/
#ai-bot-box input[type="file"] {
    display: none !important;
}

.upload-btn {
    background: #2563eb;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
}

.fileName {
    display: block;
    max-width: 100%;
    font-size: 13px;
    color: #ddd;

    word-break: break-all;
    overflow-wrap: anywhere;
}


.cvError {
    font-size: 12px;
    color: red;
}



/* make changes here */
/* Common styling for both dropdowns */
#state_id, #city_id {
    width: 100%;
    /* padding: 10px; */
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    border: none;
    outline: none;
}

/* On focus */
#state_id:focus, #city_id:focus {
    border-color: #007bff; /* blue highlight */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

/* Placeholder option styling */
#state_id option:first-child,
#city_id option:first-child {
    color: #999;
}


#state_id:hover, #city_id:hover {
    border-color: #0056b3;
}
/* make changes here end */

/* Here is the code for resume upload styling ends*/



form button {
    width: 100%;
    padding: 10px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: black;
    font-weight: 700;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes msg {
    from {
        transform: scale(.9);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

/* MOBILE */
@media(max-width:500px) {
    #ai-bot-box {
        width: 94%;
        left: 3%;
        height: 85vh
    }
}

/* Responsive tweaks for mobile */
@media (max-width: 768px) {
    #state_id, #city_id {
        font-size: 13px;
        padding: 8px 10px;
    }
}
