/* main.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
    position: relative;
    z-index: 1;
    padding-top: 100px; 
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

h1 {
    font-size: 30px;
    font-weight: bold;
    padding: 20px;
    color: #00f7ff;
}

.video-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 2000px;
    height: 450px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#video-feed {
    width: 100%;
    height: 350px;
    border: 2px solid black;
    border-radius: 8px;
    margin-bottom: 10px;
}

#heading {
    font-size: 25px;
    font-weight: bold;
    color: #03476b;
    text-align: center;
}

#subheading{
    font-size: 25px;
    font-weight: bold;
}

h2, h3 {
    padding-bottom: 10px;
}

#greeting-container {
    margin-top: 5px;
    padding: 10px;
    font-size: 20px;
    color: #03476b;
    background: rgba(255, 255, 255, .1);
    border-radius: 5px;
    text-align: center;
    display: none;
}

#greeting-container.show {
    display: block;
    animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; display: none; }
}
/*
.chatBot {
    width: 100%;
    max-width: 3000px;
    height: 1700px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 15px;
    font-size: 20px;
}

.chatBot-container {
    padding: 20px;
    position: relative;
}
*/
.chatBot {
    width: 95%;
    max-width: 1200px;
    height: auto;
    min-height: 70vh;
    /* background-color: white; */
    background-color: #fffff5;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    /*padding: 2vw;*/
    padding: 10px;
    font-size: 1.2rem;
    margin: 0 auto;
    box-sizing: border-box;
}

.chatBot-container {
    padding: 20px;
    position: relative;
    box-sizing: border-box;
    
}



/* Optional: enhance layout for smaller screens */
@media (max-width: 768px) {
    .chatBot {
        padding: 5vw;
        font-size: 1rem;
    }

    .chatBot-container {
        padding: 4vw;
    }
}

.chatBot-container .close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    z-index: 2;
}

#question-box-text, #answer-box-text, #question-box-mic, #answer-box-mic {
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 25px;
}
#text-input {
    width: 95%;
    min-height: 50px;
    max-height: 250px;
    padding: 12px 16px;
    font-size: 20px;
    line-height: 1.5;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: none;
    overflow-y: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: border-color 0.3s ease;
    margin-bottom: 10px;
    overflow-y: auto;
}
.chatBot-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, button {
    width: 100%;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 5px;
    outline: none;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(15px);
    color: #0079b9;
    box-shadow: 0 25px 40px rgba(0, 0, 0, .1);
    font-size: 30px;
    padding-bottom: 30px;
}


button:hover {
    background-color: rgba(141, 9, 250, .3);
    color: #fff;
}

button:not(.no-hover):hover {
    background-color: rgba(141, 9, 250, .3);
    color: #fff;
}

.mic-button {
    width: 100px; /*50*/
    height: 100px;
    background: url('../imgs/mic.svg') no-repeat center;
    background-size: contain;
    border: none;
    cursor: pointer;
    align-self: center;
    margin: 0 auto;
    padding: 10px;
    margin-bottom: 10px;
    
}

.mic-button:not(.no-hover):hover {
    background-color: rgba(141, 9, 250, .3);
    color: #fff;
}

label {
    color: #03476b;
    font-size: 20px;
}

.robotcontrol-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.uploadcontrol-panel, .movementcontrol-panel {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 3000px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.button-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

button.btn-forward { background-color: #4CAF50; color: white; }
button.btn-backward { background-color: #2196F3; color: white; }
button.btn-left { background-color: #FF9800; color: white; }
button.btn-right { background-color: #9C27B0; color: white; }
button.btn-stop { background-color: #F44336; color: white; }
button.btn-emergency { background-color: #D32F2F; color: white; font-weight: bold; grid-column: span 3; }
button.btn-upload { background-color: #2196F3; color: white; width: 300px; margin: 10px auto; display: block; }

#status {
    margin-top: 20px;
    padding: 10px;
    text-align: center;
    width: 90%;
    max-width: 600px;
    border-radius: 4px;
}

.success { background-color: #dff0d8; color: #3c763d; }
.error { background-color: #f2dede; color: #a94442; }

.logo {
    position: fixed; /* Changed from absolute */
    top: 40px; /* Adjust as needed */
    left: 10px; /* Align with home-floating-btn or adjust */
    width: 150px;
    opacity: 0.7;
    z-index: 1000; /* Ensures it's above most elements */
    transition: all 0.3s ease; /* Optional for smooth effect */
}


.bot {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 50px;
    animation: move 5s linear infinite;
    transition: .5s;
}

.bot:hover {
    transform: scale(1.1);
    cursor: pointer;
}

@keyframes move {
    0%, 100% {
        transform: scale(1.05) translateY(-5px);
    }
    50% {
        transform: scale(1) translateY(0);
    }
}

/* .clip {
    width: 200px;
    height: 200px;
    background: rebeccapurple;
    filter: blur(100px);
    clip-path: circle(80px at 50% 50%);
    position: absolute;
    bottom: 20%;
    right: 5%;
} */

@media screen and (orientation: portrait) {
    .robotcontrol-panel {
        flex-direction: column;
        align-items: center;
    }
    .chatBot, .uploadcontrol-panel, .movementcontrol-panel, .video-section {
        width: 90%;
        max-width: 500px;
    }
    .bot {
        display: none;
    }
    .logo {
        width: 90px;
    }
}



.gmailcontainer {
    max-width: 700px;
    margin: 40px auto;
    font-family: Arial, sans-serif;
}

/* Shared section styles (video and preview) */
.shared-section {
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Button Styling with Modal Feel */
.gmailvideo-section button,
#previewSection button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 16px;
    margin: 5px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.gmailvideo-section button:hover,
#previewSection button:hover {
    background-color: rgba(141, 9, 250, 0.6);
    transform: scale(1.05);
    color: #fff;
}

/* Image borders */
.gmailvideo-section img,
#capturedImage {
    border-radius: 6px;
    border: 1px solid #aaa;
}

/* Input styling */
.gmailvideo-section input[type="email"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    width: 250px;
    margin: 5px;
}

/* Status Message */
#statusMessage {
    text-align: center;
    color: green;
    margin-top: 10px;
}



#youtube-controls button {
    background-color: #007bff;
    color: white;
    padding: 10px 16px;
    margin: 4px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

#youtube-controls button:hover {
    background-color: rgba(141, 9, 250, 0.6);
    transform: scale(1.05);
}

.button-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    margin-top: 20px;
}

.modal-content {
    background: #fffff5;
    margin: 1% auto;
    padding: 20px 30px;
    border: 1px solid #ccc;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;

}

.modal-btn:hover {
    background-color: #007bff;
    color: white;
}

.school-content {
    background: #FDF5E6;
    margin: 1% auto;
    padding: 20px 30px;
    border: 1px solid #ccc;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;

}

.school-btn:hover {
    background-color: #007bff;
    color: white;
}

.text-content-box {
    margin-top: 15px;
    padding: 20px;
    background-color: #f3faff;
    color: #03476b;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1.6;
    white-space: pre-wrap;   /* preserves .txt spacing/line breaks */
    text-align: justify;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.home-floating-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.home-floating-btn:hover {
    background-color: rgba(141, 9, 250, 0.6);
    transform: scale(1.05);
}

/* .fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fixed-header h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    color: #00cfff;
    margin: 0;
    white-space: nowrap;
}

.logo-fixed {
    position: absolute;
    right: 20px;
    width: 150px;
    opacity: 0.9;
} */

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    /* background: rgba(255, 255, 255, 0.85); */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;  /* Center the heading */
    padding: 0 20px;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;  /* Needed for absolutely-positioned logo */
}

.fixed-header h1 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 25px;
    color: #00cfff;
    margin: 0;
    white-space: nowrap;
}

.logo-fixed {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
    opacity: 0.9;
}

/* table {
    width: 90%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 40px;
} */

table {
    width: 80%;
    border-collapse: collapse;
    margin: 20px auto 40px auto; /* 👈 centers the table horizontally */
    border: 1px solid #ccc;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}
th {
    background-color: #4a6fa5;
    color: white;
}
/* tr:nth-child(even) {
    background-color: #f2f2f2;
} */

tr {
    background-color: white; 
}

.theme {
    font-weight: bold;
    color: #003366;
    background-color: #e6f0ff;
}

