/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Dark theme */
body {
    font-family: 'Arial', sans-serif;
    background-color: #1e1e1e;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

/* Top bar */
.top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2e2e2e;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 10px 10px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.profile-btn img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* Profile button styling */
.profile-btn {
    position: relative;
    display: inline-block;
}

.dropbtn-profile {
    background-color: #3e3e3e;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Profile dropdown content */
.dropdown-content-profile {
    display: none;
    position: absolute;
    background-color: #3e3e3e;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1;
    border-radius: 8px;
    right: 0;
    width: 160px;  /* Adjust width to fit the full name on one line */
}

.dropdown-content-profile a {
    color: white;
    padding: 12px 16px;  /* Adjust padding for better spacing */
    text-decoration: none;
    display: block;
}

.dropdown-content-profile a:hover {
    background-color: #575757;
}

/* Container for layout */
.container {
    display: flex;
    width: 90%;
    height: 85%;
    margin-top: 10px;
}

/* Sidebar styling */
.sidebar {
    width: 20%;
    background-color: #2e2e2e;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.dropbtn, .sidebar-btn {
    background-color: #3e3e3e;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.dropdown-content {
    display: none;
    background-color: #3e3e3e;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    border-radius: 8px;
}

.dropdown-content a {
    color: white;
    padding: 10px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #575757;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.sidebar-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Main content styling */
.main {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 20px;
    padding-bottom: 0px;
    padding-top: 0px;
}

/* Voice button */
.voice-btn {
    position: absolute;
    top: 0px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

/* Output (Answer area) */
.output {
    width: 80%;
    background-color: #2e2e2e;
    color: white;
    font-size: 20px;
    padding: 30px 20px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    margin-top: 20px;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

/* Input area */
.input-area {
    display: flex;
    align-items: center;
    width: 80%;
}

#input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: none;
    font-size: 16px;
    background-color: #3e3e3e;
    color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

.answer {
    height: 1700px;
    width: 80%;
    color: white;
    padding: 10px;
    padding-top: 20px;
    background-color: #2e2e2e;
    border-radius: 10px;
    margin-top: 0px;
    margin-bottom: 0px;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: top;
    font-size: 18px;
    text-align: top;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}
.video {
    height: 200px !important;
    width: 80%;
    color: gray;
    font-weight: bold;
    padding: 10px;
    padding-top: 20px;
    background-color: #2e2e2e;
    border-radius: 10px;
    margin-top: 7px;
    margin-bottom: 0px;
    display: flex;
    align-items: left;
    font-size: 18px;
    text-align: left;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}
.article {
    height: 200px !important;
    width: 80%;
    color: gray;
    font-weight: bold;
    padding: 10px;
    padding-top: 20px;
    background-color: #2e2e2e;
    border-radius: 10px;
    margin-top: 7px;
    margin-bottom: 0px;
    display: flex;
    font-size: 18px;
    text-align: left;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.txt{
    color: lightblue;
}


#submit-btn {
    background-color: #4caf50;
    color: #fff;
    padding: 11px;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}


#submit-btn:hover {
    background-color: #717171;
}
