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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    text-align: center;
    padding-top: 50px;
    padding: 15px;
}

.hamburger {
    display: none;
    position: fixed;
    top: 1.6rem;
    left: 1.1rem;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: none;
    z-index: 1100;
    font-size: 35px;
    cursor: pointer;
    text-align: center;
    padding: 2px;
}
.bell-icon {
    position: fixed;
    top: 1rem;
    right: 1rem;
    font-size: 40px;
    cursor: pointer;
    color: #6366f1;
    z-index: 1100;
    padding: 10px 15px;
    border-radius: 50%;
}
.bell-icon:hover {
    color: #8b5cf6;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
.bell-icon:active{
    transform: scale(1);
    background-color: #fbf8f817;
    transition: transform 0.1s ease;

}

.sidebar {
    width: 250px;
    background: #f5f5f5;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 0 20px 20px 0;
    padding: 2rem;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    height: 100%;  
    justify-content: space-between; 
}

.logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 10px;
    background: linear-gradient(135deg,  #6366f1, #8b5cf6);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(41, 98, 255, 0.3);
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.logo svg {
    fill: white;
}

.nav-list {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 1rem 0;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: #6366f1;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item .nav-link:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: rgb(255, 255, 255);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(41, 98, 255, 0.3);
    z-index: 1;
}
.nav-item .nav-link .material-symbols-outlined {
    font-size: 30px;
}

.secondary-nav {
    position: relative;
    bottom: 5px;
    left: 3px;
    right: 20px;
    border-top: 2px solid #8a5ff9;
    padding-top: 20px;
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .sidebar {
    transform: translateX(-100%);
    }

    .sidebar.active {
    transform: translateX(0);
    }

    .hamburger {
    display: block;
    }

    .sidebar-nav {
    justify-content: space-between; 
    height: 40%;
    }

    .logo {
    margin-top: 80px;
}
}

.main {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    transition: all 0.5s ease;
}

h2#animatedTitle {
    font-size: 50px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-header {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px;
    max-width: 900px;
    margin: 0 0 30px 450px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-container h1 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 25px;
    margin-top: 20px;
    color: #1e293b;
    text-align: center;
}

.form-container input,
.form-container select,
.form-container textarea {
    width: 100%;
    margin-bottom: 20px;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    outline: none;
    transition: all 0.5s ease;
    background: rgba(255, 255, 255, 0.8);
}

/* focus effect  */
.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.1);
    transform: translateY(-2px);
}

/* hover effect  */
.form-container input:hover,
.form-container select:hover,
.form-container textarea:hover {
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.1);
    transform: translateY(-2px);
}

.form-container button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 10px 40px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 150px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(41, 98, 255, 0.3);
}

form#queryForm button {
    width: 250px;
}

div.response-feedback button {
    width: 300px;
}

div.response-feedback span {
    font-size: larger;
}

.form-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 98, 255, 0.4);
}
.form-container button:active {
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.2);
}

.form-container button:active {
    transform: translateY(-2px);
}

/* UPLOAD IMAGE */
.upload-box {
    height: 8.6rem;
    border-radius: 20px;
    border: 2px solid rgba(53, 52, 52, 0.322);
    background-color: rgba(255, 255, 255, 0.015);
    margin-bottom: 1rem;
    transition: all 0.5s ease;
}

.upload-box:hover {
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.1);
}

.upload-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 20px 25px;
    border-radius: 34px;
    cursor: pointer;
    margin: 12px 0 20px 0;
    display: inline-block;
    transition: all 0.3s ease;
}


.upload-btn i {
    margin-right: 4px;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(41, 98, 255, 0.4);
}

.upload-btn p {
    font-size: 0.65rem;
}

.file-attachment input {
    margin-top: 5px;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.response-feedback {
    margin-top: 10px;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.dashboard h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e293b;
    background: none;
    -webkit-text-fill-color: #1e293b;
}

.queries {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 35px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}

.queries:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.queries h3 {
    font-size: 18px;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
}

.queries button {
    background: linear-gradient(180deg, #10b981, #0f7e5b);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.queries button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Loading state for answer textarea */
.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}
#theme-toggle:hover{
        box-shadow: 0 4px 15px rgb(51, 0, 255, 0.5);
    }
#theme-toggle:active {
    transform: translateY(-3px);
    background-color: #6366f1;
    transform: scale(0.92);
    box-shadow: 0 2px 10px rgb(255, 0, 0, 0.2);
    transition: all 0.2s ease;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container,
.dashboard {
    animation: fadeInUp 0.6s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
        border-radius: 0 15px 15px 0;
        padding: 15px 10px;
        transition: 300ms ease-in;
    }

    .sidebar:hover {
        width: 260px;
        padding: 15px;
    }

    .nav-label {
        display: none;
    }

    .sidebar:hover .nav-label {
        display: inline;
    }

    .logo img {
        margin-right: 0;
    }

    .sidebar:hover .logo img {
        margin-right: 10px;
    }

    .main {
        margin-left: 80px;
        padding: 20px;
    }

    .main h2 {
        font-size: 36px;
    }

    .form-container,
    .dashboard {
        max-width: 100%;
        padding: 20px;
    }
    #theme-toggle:hover{
        background-color: transparent;
        color: #1e293b;
        box-shadow: 0 4px 20px rgba(135, 98, 255, 0.068);
        transition: all 0.2s ease;
        outline: none;
    }
    .form-container {
        margin: 0 auto 30px;
    }
    .bell-icon{
        display: none;
    }
}
@media (max-width: 480px) {
    .sidebar {
        width: 60px;
        padding: 10px 5px;
    }

    .main {
        margin-left: 60px;
        padding: 15px;
    }

    .main h2 {
        font-size: 28px;
    }

    .form-container,
    .dashboard {
        padding: 15px;
    }

    .form-container h1 {
        font-size: 24px;
    }

    .queries {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .queries button {
        width: 100%;
    }

    .form-container {
        margin: 0 auto 30px;
    }
    .bell{
        display: none;
    }
    .bell-icon {
        cursor: pointer;
        color: #6366f1;
        z-index: 1100;
        display: none;
    }
}

/* DARK THEME  */
.theme-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    position: relative;
}

.theme-wrapper:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

    #theme-toggle {
        border-radius: 25px;
        font-weight: bold;
        padding: 10px 30px;
        margin-left: 0 auto;
        max-width: 90%;
        font-size: 15px;
    }

    .dark-mode {
        color: #ffffff !important;
        border-color: #444 !important;
        background-color: #121212; 
    }

    .dark-mode .sidebar,
    .dark-mode .dashboard,
    .dark-mode .queries {
        background-color: #1e1e1e;
        border-color: #333;
    }

    .dark-mode .form-container {
        background-color: #1e1e1e;
        border-color: #333;
    }

    .dark-mode #category {
        background-color: #1a1a1a;
        color: #ffffff;
    }

    .dark-mode h3 {
        background-color: #1a1a1a;
        color: #ffffff;
    }

    .dark-mode h1 {
        color: #ffffff;
    }

    .dark-mode h2 {
        color: #ffffff;
    }

    .dark-mode .hamburger {
        background-color: black;
    }

    .dark-mode .btn {
        background-color: #333;
        color: #fff;
        border: 1px solid #555;
    }

    .dark-mode input,
    .dark-mode textarea {
        background-color: #222;
        color: #fff;
        border: 1px solid #555;
    }
    .downloadBtn{
        margin: 10px;
    }

    @media (max-width: 768px) {
    .theme-wrapper:hover {
        justify-content: center;
        width: 100%;
    }

    .icon-button {
        margin-top: 0.7rem;
    }

    .downloadBtn {
        margin-top: 1rem;
    }

    #theme-toggle {
        padding: 10px 10px;
        font-size: 13px;
        max-width: 90%;
    }
}

    /* ANIMATION EFFECT  */
    h1 {
    width: 180px;
    font-family: monospace;
    text-wrap: nowrap;
    overflow: hidden;
    animation: typing 2s steps(20) infinite alternate-reverse;
}

@keyframes typing {
    from {
        width: 0ch;
    }
}
.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.icon-button:active {
    transform: translateY(-2px);
}

#feedback-status {
    font-size: 20px;
    margin: 10px;
    color: #4caf50; /* Green color for success */
}

.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    z-index: 1;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.toast.show {
    visibility: visible;
    opacity: 1;
}

/* In recent queries list  */
.status-badge {
    padding: 8px 8px;
    border-radius: 5px;
    font-size: 12px;
}
.pending {
    background: #2962ff;
    color: white;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 30px;
    padding: 10px 15px;
}
.pending:hover {
    background: #1e40af;
}
.pending:active {
    transform: translateY(-2px);
    background: #1e3a8a;
}
.answered {
    background: #059669;
    color: white;
    border-radius: 30px;
    padding: 10px 15px;
}
.answered:hover {
    background: #047857;
}
.answered:active {
    transform: translateY(-2px);
    background: #065f46;
}

#searchQuery {
    background-color: transparent;
    color: #6366f1;
    width: 90%;
    height: 50px;
    margin: auto;
    border-radius: 50px;
    border: 2px solid #6366f1;
    padding: 15px;
    font-size: 18px;
    display: flex;
    align-items: flex-start;
}
#searchQuery:hover{
    box-shadow: 0 4px 20px rgba(41, 98, 255, 0.4);
}
#searchQuery:active{
    transform: scale(0.98);
}
.help-box{
    background-color: #0000003e;
    width: 100%;
    height: 150px;
    padding: 30px;
    margin: auto;
    margin-top: 20px;
    font-style: italic;
    font-size: 10px;
    border-radius: 30px;
    display: flex;
    gap: 5px;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid #535151;
}
.help-box span{
    display: flex;
    flex-direction: row;
    gap: 10px;
    font-size: 15px;
}
.help-box span a{
    color: #6366f1;
    text-decoration: underline;
    transition: color 0.2s;
    text-decoration: none;
    }

.help-box span a:hover {
        color: #8b5cf6;
        text-decoration: none;
}
.help-box span a:active{
    transform: translateY(+2px);
}
.ext{
    margin-top: 10px;
}