/* The page used to load errors.css, whose global reset and body font also restyled the
   shared top bar. The same rules, limited to the tutorials content (Odoo #7276). */
:where(.tutorial-page) * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.tutorial-page {
    font-family: 'Arial', sans-serif;
    background-color: #481f3f;
    color: #ffffff;
    text-align: center;
}


.tutorial-page {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.main-content {
    flex: 1;
    display: flex;
}
.sidebar {
    width: 260px;
    background: #2c2c2c;
    color: white;
    padding: 20px;
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
    .sidebar li {
        margin: 10px 0;
    }
    .sidebar button {
        width: 100%;
        padding: 10px;
        background: #444;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-weight: bold;
        text-align: left;
    }
    .sidebar button:hover {
        background: #666;
    }
    .sidebar .active-btn {
        background: #702b5f
    }
    .content {
        flex: 1;
        padding: 0px;
        overflow: hidden;
        max-height: 88.3dvh;
    }
    .container{
        width: 100%;
        padding: 0px;
    }
    .tutorial {
        display: none; 
    }
    .tutorial.active {
        display: grid;
        gap: 10px;
        align-items: center;
        justify-content: center;
    
    }
    iframe{
        width: 1200px;
        height: 65dvh;
    }
    .pdf{
        width: calc(100vw - 260px);
        height: calc(96dvh - 80px);
    }

    .bottomLineContainer {
     position: fixed;
     bottom: 0;
    }
     #android {
    text-align: left;   
    margin-left: 0;     
    overflow-y: auto;
    height: calc(94dvh - 80px);
  }

/* Mobile dropdown toggle button */
.sidebar-toggle {
    display: none;
    width: 100%;
    padding: 15px 20px;
    background: #2c2c2c;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    text-align: left;
}

.sidebar-toggle:hover {
    background: #444;
}

.sidebar-toggle::after {
    content: '▼';
    float: right;
    transition: transform 0.3s ease;
}

.sidebar-toggle.open::after {
    transform: rotate(180deg);
}

/* Mobile styles */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar-toggle {
        display: block;
    }

    .sidebar {
        width: 100%;
        display: none;
        padding: 10px 20px;
    }

    .sidebar.open {
        display: block;
    }

    .sidebar ul {
        margin: 0;
    }

    .sidebar li {
        margin: 5px 0;
    }

    .content {
        max-height: none !important;
        min-height: 60dvh !important;
        /* height: 75dvh !important; */
    }
    .tutorial-page {

        min-height: 70dvh;
    }
    .pdf {
        width: 100%;
        height: calc(80dvh - 80px);
    }

    iframe {
        width: 100%;
        height: 50dvh;
    }

    .tutorial.active video {
        width: 100%;
        height: auto;
    }

    #android {
        height: auto;
        padding: 20px;
    }
}
