/* ==========================================================
   Root Variables
   ========================================================== */
:root {
    --primary-color: #0366d6;
    --primary-gradient: linear-gradient(45deg, #0038ff, #7000ff, #ff8c00);
    --secondary-color: #024a9a;
    --danger-color: #dc3545;
    --danger-hover: #c82333;
    --background-light: #edf2f7;
    --background-white: #fff;
    --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 6px 15px rgba(0, 0, 0, 0.15);
    --font-main: 'Roboto', Arial, sans-serif;
}

/* ==========================================================
   General Styles
   ========================================================== */
body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: linear-gradient(to left, #f9fafb, #e6ecf0);
    background-attachment: fixed;
}

/* ==========================================================
   Header
   ========================================================== */
.header {
    background: var(--primary-gradient);
    background-size: 400% 400%;
    padding: 20px;
    color: #000;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: moveGradient 30s infinite alternate linear;
}

@keyframes moveGradient {
    0% { background-position: 0% 50%; }
    20% { background-position: 25% 75%; }
    40% { background-position: 50% 25%; }
    60% { background-position: 75% 50%; }
    80% { background-position: 100% 75%; }
    100% { background-position: 50% 50%; }
}

/* ==========================================================
   Typography
   ========================================================== */
h1 {
    margin: 0;
    font-size: 2.5rem;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

p {
    font-size: 0.95rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==========================================================
   Auth Containers
   ========================================================== */
.auth-container {
    margin: 30px auto;
    max-width: 400px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#login-section, #signup-section {
    text-align: center;
    background-color: var(--background-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#login-section:hover, #signup-section:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================================
   Forms & Inputs
   ========================================================== */
input[type="text"], input[type="email"], input[type="password"], textarea {
    padding: 12px;
    margin: 15px 0;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(3, 102, 214, 0.5);
    outline: none;
}

textarea {
    width: 100%;
    min-height: 120px;
    font-size: 1rem;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

textarea:focus {
    background-color: #eaf4ff;
    border-color: var(--primary-color);
}

/* ==========================================================
   Buttons
   ========================================================== */
button, .custom-file-upload, .back-button, .delete-profile-btn {
    padding: 14px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover, .custom-file-upload:hover, .back-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

button:disabled, .delete-profile-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

#save-profile-button {
    margin-bottom: 1%;
}

.back-button {
    margin-right: 1%;
}

.delete-profile-btn {
    background-color: var(--danger-color);
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.delete-profile-btn:hover {
    background-color: var(--danger-hover);
}

.custom-file-upload {
    padding: 14px 25px;
    margin: 10px 0;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
}
.custom-file-upload:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.upload-buttons {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

/* ==========================================================
   Search
   ========================================================== */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

#search-input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    padding-right: 40px;
}

#search-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(3, 102, 214, 0.3);
}

#search-button {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: -50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

#search-button:hover {
    color: var(--secondary-color);
}

#search-button svg {
    width: 20px;
    height: 20px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background-color: var(--background-white);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results .result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-results .result-item:last-child {
    border-bottom: none;
}

.search-results .result-item:hover {
    background-color: #f9f9f9;
}

.search-results .result-item .username {
    font-weight: bold;
    color: var(--primary-color);
}

.search-results .result-item .post-content {
    color: #555;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ==========================================================
   Profile Page
   ========================================================== */
.profile-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-content {
    display: flex;
    gap: 20px;
}

.profile-info, .profile-posts {
    background-color: var(--background-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary-color);
    background-size: cover;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.1);
}

.profile-posts h3 {
    margin-bottom: 15px;
}

/* ==========================================================
   Main Container & Feed
   ========================================================== */
.main-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.new-post {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.new-post:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#feed {
    margin-top: 30px;
}

/* ==========================================================
   Post & Comments
   ========================================================== */
.post {
    background-color: var(--background-white);
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.2s ease;
    position: relative;
}

.post:hover {
    transform: translateY(-5px);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-right: 15px;
    background-size: cover;
    flex-shrink: 0;
}

.username {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    white-space: nowrap;
}

.post-date {
    font-size: 0.9rem;
    color: #777;
    margin-left: auto;
    white-space: nowrap;
}

.post-content {
    margin-top: 15px;
    font-size: 1rem;
    color: #555;
}

.post-image, .post-video {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    margin-top: 15px;
    object-fit: cover;
}

.post-video {
    margin-left: 20px;
}

.post-actions {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Comentários */
.comments-section {
    margin-top: 15px;
}

.comment {
    display: flex;
    align-items: flex-start;
    margin-top: 10px;
    padding: 10px;
    border-left: 3px solid #ddd;
}

.comment .profile-img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-content .username {
    font-size: 1rem;
    margin-bottom: 5px;
}

.comment-actions {
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Botão de deletar post */
.delete-btn {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.delete-btn:hover {
    opacity: 1;
}

.delete-btn svg {
    width: 20px;
    height: 20px;
}

/* Botão de alternar comentários */
.toggle-comments-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 10px;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-comments-btn:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.comments-list {
    margin-bottom: 10px;
}

.comments-section textarea {
    margin-top: 10px;
}

.comments-section button {
    margin-top: 5px;
}

/* Contador de caracteres */
.char-counter {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}
.char-counter.red {
    color: red;
}

/* ==========================================================
   Toast Notification
   ========================================================== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.toast.show {
    opacity: 1;
}

.file-name {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

/* ==========================================================
   Video Call Section
   ========================================================== */
.video-call-section {
    margin: 20px auto;
    max-width: 600px;
    background-color: var(--background-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

#call-username {
    width: 70%;
    margin-right: 10px;
}

#start-call-btn, #end-call-btn, #call-profile-btn {
    margin-top: 10px;
}

#video-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 100%;
    overflow: visible;
}

.video-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

#local-video, #remote-video {
    width: 100%;
    max-width: 280px;
    height: 210px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    background-color: #000;
    object-fit: cover;
    box-sizing: border-box;
}

#end-call-btn {
    width: fit-content;
    margin-top: 10px;
}

/* ==========================================================
   Modal
   ========================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: var(--background-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    max-width: 600px;
    width: 90%;
}

#record-preview {
    width: 100%;
    max-width: 400px;
    height: 300px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background-color: #000;
    margin-bottom: 20px;
}

.record-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================
   Legal Footer
   ========================================================== */
.legal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.legal-link {
    color: #4a5568;
    font-size: 0.75rem;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.legal-link:hover {
    color: #2b6cb0;
    background: rgba(66, 153, 225, 0.1);
    text-decoration: underline;
}

.legal-link::after {
    content: " ↗";
    font-size: 0.7rem;
}

/* ==========================================================
   Responsive Design
   ========================================================== */
@media (min-width: 768px) {
    .video-wrapper {
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 20px;
    }

    .new-post, #login-section, #signup-section, .post {
        width: 100%;
        padding: 15px;
    }

    .username {
        font-size: 1rem;
    }

    button {
        font-size: 0.9rem;
    }
}

/* ==========================================================
   Section: Verificação
   ========================================================== */
#verify-section {
    max-width: 600px;
    margin: 0 auto;
    background: var(--background-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#verify-section h2 {
    color: #333;
    margin-bottom: 20px;
}

#verify-section p {
    font-size: 1.1rem;
    color: #555;
}



/* ==========================================================
   Mobile Fullscreen Comfort (até 600px)
   ========================================================== */
/*@media (max-width: 600px) {
    html, body {
        width: 100vw;
        min-height: 100vh;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
        background-image: none;
    }

    *, *::before, *::after {
        box-sizing: border-box;
    }

    body {
        padding: 0 8px;
        background-image: none;
    }

    .main-container,
    .profile-page,
    .new-post,
    #login-section,
    #signup-section,
    .post,
    .profile-info,
    .profile-posts,
    .modal-content,
    #verify-section {
        width: 100%;
        max-width: 100vw;
        margin: 0 auto 16px auto;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }

    .header {
        font-size: 1.2rem;
        padding: 12px 8px;
        width: 100vw;
        box-sizing: border-box;
    }

    .search-container {
        padding: 0 8px;
        max-width: 100vw;
        box-sizing: border-box;
    }

    #search-input {
        font-size: 1rem;
        padding: 8px 12px;
        border-radius: 18px;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-header,
    .profile-content {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-picture,
    .profile-img {
        width: 60px;
        height: 60px;
    }

    .post-image,
    .post-video,
    #record-preview,
    #local-video,
    #remote-video {
        max-width: 100vw;
        width: 100%;
        height: auto;
        min-width: 0;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .video-call-section,
    #video-container,
    .video-wrapper {
        padding: 0 8px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
        width: 100vw;
        box-sizing: border-box;
    }

    button,
    .custom-file-upload,
    .back-button,
    .delete-profile-btn {
        width: 100%;
        font-size: 1rem;
        padding: 12px 0;
        margin: 5px 0;
        box-sizing: border-box;
    }

    .comments-section textarea {
        min-height: 60px;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .legal-footer {
        font-size: 0.8rem;
        padding: 8px 0;
        width: 100vw;
        box-sizing: border-box;
    }
}*/





/*@media (max-width: 600px) {
    html, body {
        width: 100%;
        min-height: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
        background-image: none;
    }

    *, *::before, *::after {
        box-sizing: border-box;
    }

    body {
        padding: 0 8px;
        background-image: none;
    }

    .main-container,
    .profile-page,
    .new-post,
    #login-section,
    #signup-section,
    .post,
    .profile-info,
    .profile-posts,
    .modal-content,
    #verify-section {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 16px auto;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }

    .header {
        font-size: 1.2rem;
        padding: 12px 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .search-container {
        padding: 0 8px;
        max-width: 100%;
        box-sizing: border-box;
    }

    #search-input {
        font-size: 1rem;
        padding: 8px 12px;
        border-radius: 18px;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-header,
    .profile-content {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-picture,
    .profile-img {
        width: 60px;
        height: 60px;
    }

    .post-image,
    .post-video,
    #record-preview,
    #local-video,
    #remote-video {
        max-width: 100%;
        width: 100%;
        height: auto;
        min-width: 0;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .video-call-section,
    #video-container,
    .video-wrapper {
        padding: 0 8px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        box-sizing: border-box;
    }

    button,
    .custom-file-upload,
    .back-button,
    .delete-profile-btn {
        width: 100%;
        font-size: 1rem;
        padding: 12px 0;
        margin: 5px 0;
        box-sizing: border-box;
    }

    .comments-section textarea {
        min-height: 60px;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .legal-footer {
        font-size: 0.8rem;
        padding: 8px 0;
        width: 100%;
        box-sizing: border-box;
    }
}*/






@media (max-width: 600px) {
    html, body {
        width: 100%;
        min-height: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
        background-image: none;
    }

    *, *::before, *::after {
        box-sizing: border-box;
    }

    body {
        padding: 0 8px;
        background-image: none;
    }

    .main-container,
    .profile-page,
    .new-post,
    #login-section,
    #signup-section,
    .post,
    .profile-info,
    .profile-posts,
    .modal-content,
    #verify-section {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 16px auto;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }

    .header {
        font-size: 1.2rem;
        padding: 12px 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .search-container {
        padding: 0 8px;
        max-width: 100%;
        box-sizing: border-box;
    }

    #search-input {
        font-size: 1rem;
        padding: 8px 12px;
        border-radius: 18px;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-header,
    .profile-content {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-picture,
    .profile-img {
        width: 60px;
        height: 60px;
    }

    /* Centraliza vídeos e imagens dentro do post */
    .post-image,
    .post-video,
    #record-preview,
    #local-video,
    #remote-video {
        display: block;
        width: 100%;
        max-width: 400px; /* ajuste conforme o limite desejado */
        min-width: 0;
        height: auto;
        border-radius: 8px;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
        margin-top: 15px;
    }

    .video-call-section,
    #video-container,
    .video-wrapper {
        padding: 0 8px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        box-sizing: border-box;
    }

    button,
    .custom-file-upload,
    .back-button,
    .delete-profile-btn {
        width: 100%;
        font-size: 1rem;
        padding: 12px 0;
        margin: 5px 0;
        box-sizing: border-box;
    }

    .comments-section textarea {
        min-height: 60px;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .legal-footer {
        font-size: 0.8rem;
        padding: 8px 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Centraliza o conteúdo dos posts no mobile */
    .post {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        padding-left: 8px;
        padding-right: 8px;
        text-align: center;
    }
}












/* ==========================================================
   Drawer Hamburguer e Sidebar
   ========================================================== */
.hamburger {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1101;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 4px;
    background: #0366d6; /* azul */
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger:active, .hamburger:hover {
    background: #e6ecf0;
}

.sidebar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 292px; /* 220px + 2cm (~72px) */
    min-width: 292px;
    max-width: 100vw;
    height: 100vh;
    background: #fff; /* fundo branco */
    color: #222;      /* letras pretas */
    padding-top: 80px;
    z-index: 1100;
    box-shadow: 2px 0 8px rgba(0,0,0,0.08);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto; /* Permite rolar o menu se passar da tela */
}
.sidebar-drawer.open {
    transform: translateX(0);
}
.sidebar-drawer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-drawer li {
    margin: 20px 0;
    text-align: center;
}
.sidebar-drawer button {
    background: var(--primary-color); /* azul */
    border: none;
    color: #fff; /* letras brancas nos botões */
    font-size: 1.1em;
    cursor: pointer;
    width: 90%;
    margin: 0 auto;
    border-radius: 8px;
    padding: 12px 0;
    transition: background 0.2s, color 0.2s;
    display: block;
}
.sidebar-drawer button:hover {
    background: var(--secondary-color); /* azul escuro */
    color: #fff;
}
.close-sidebar {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    color: #222;
    font-size: 2em;
    cursor: pointer;
    z-index: 1200;
}
/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.25);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.sidebar-overlay.show {
    opacity: 1;
    pointer-events: all;
}
/* Ajuste main-container para não ficar atrás do menu */
.main-container {
    margin-left: 0 !important;
    transition: margin-left 0.2s;
}

/* Ajustes para vídeos e botão de encerrar chamada no drawer */
.drawer-content {
    padding: 0 16px 20px 16px;
    box-sizing: border-box;
}
.drawer-section {
    max-width: 100%;
}
#drawer-video .video-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}
#drawer-video video {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    background: #000;
    margin-bottom: 8px;
    box-sizing: border-box;
}
#drawer-video #end-call-btn {
    display: block;
    width: 100%;
    margin: 10px 0 0 0;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
    
}



#drawer-video #end-call-btn:hover {
    background: #b71c1c;
}

@media (max-width: 900px) {
    .sidebar-drawer {
        width: 70vw;
        min-width: 200px;
        max-width: 350px;
    }
    #drawer-video video {
        max-width: 90vw;
    }
}
@media (max-width: 600px) {
    .sidebar-drawer {
        width: 90vw;
        min-width: 140px;
        max-width: 100vw;
    }
    .hamburger {
        top: 12px;
        left: 12px;
        width: 38px;
        height: 38px;
    }
    .hamburger span {
        width: 20px;
        height: 3px;
    }
    #drawer-video video {
        max-width: 100vw;
    }
}












.drawer-content {
    padding-bottom: 100px !important;
}