/* ОСНОВНОЙ СТИЛЬ */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #27494d; 
    color: #212121;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* СТИЛЬ ССЫЛОК */
a {
    text-decoration: none;
    color: inherit;
}

/* ВЕРХНЯЯ ПАНЕЛЬ (КОНТЕЙНЕР) */
.app-bar {
    background-color: #000000;
    color: white;
    padding: 0;
    height: 56px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: none; 
    border-bottom: 1px solid #414141; 
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* КОНТЕЙНЕР ЗАГОЛОВКА */
.app-bar-title-container {
    flex-grow: 1; 
    display: flex;
    align-items: center;
    min-width: 0;
    height: 100%;
}

/* ЗАГОЛОВОК */
.app-bar-title {
    font-size: 20px;
    font-weight: 400; 
    margin: 0; 
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ИКОНКИ ВЕРХНЕЙ ПАНЕЛИ (ОСНОВНОЙ СТИЛЬ) */
.app-bar-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    width: 48px; 
    box-sizing: border-box;
}
        
.app-bar-icon {
    font-size: 17px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    margin: 0;
}

/* КОНТЕЙНЕР ПРАВЫХ ИКОНОК */
.right-icons-wrapper {
    display: flex;
}

    .app-bar-icon:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .notes-list-container {
        flex-grow: 1;
        padding: 10px 0; 
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .note-card {
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12); 
        padding: 16px;
        width: 95%; 
        max-width: 1000px; 
        box-sizing: border-box;
        margin-top: 1px; 
        margin-bottom: 1px; 
        border-bottom: 1px solid #e0e0e0; 
    }
    
    .note-card:last-of-type {
        border-bottom: none; 
    }

    .note-card-content {
        font-size: 16px;
        line-height: 1.6;
        color: #212121;
        white-space: pre-wrap;
    }

    .fab {
        position: fixed;
        bottom: 24px;
        right: 24px;
        background-color: #eaddff; 
        color: #4f378b;
        border: none;
        border-radius: 16px;
        width: 56px;
        height: 56px;
        font-size: 17px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 6px 10px 0 rgba(0,0,0,.14), 0 1px 18px 0 rgba(0,0,0,.12), 0 3px 5px -1px rgba(0,0,0,.2);
        cursor: pointer;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    .fab:hover {
        background-color: #d8cceb;
        box-shadow: 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12), 0 5px 5px -3px rgba(0,0,0,.2);
    }
    
    .side-drawer {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px; 
        height: 100%;
        background-color: white;
        box-shadow: 2px 0 6px rgba(0, 0, 0, 0.2); 
        z-index: 2000;
        transform: translateX(-100%); 
        transition: transform 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
    }

    .side-drawer.open {
        transform: translateX(0);
    }

    .drawer-header {
        background-color: #000000;
        color: white;
        padding: 16px 16px 10px 16px;
        font-size: 22px;
        font-weight: 500;
    }
    
    .drawer-header a {
        color: white; 
        text-decoration: none;
    }

    .drawer-item {
        padding: 12px 16px;
        cursor: pointer;
        font-size: 16px;
        color: #212121;
    }

    .drawer-item:hover {
        background-color: #f5f5f5;
    }

    .drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    .drawer-overlay.visible {
        opacity: 1;
        visibility: visible;
    }

    .profile-photo {
        max-width: 180px;
        border-radius: 50%;
        border: 1px solid #0d6efd;
        margin-bottom: 20px;
    }
    
    .text-center {
        text-align: center;
    }
    
    .platforms-list ul {
        list-style: none; 
        padding: 0;
        display: flex; 
        justify-content: center; 
        gap: 30px; 
        margin-top: 10px;
    }

    .platforms-list li i {
        font-size: 1.5em; 
        margin-right: 5px;
        vertical-align: middle;
    }

    .platforms-list li:nth-child(1) i { color: #3DDC84; } 
    .platforms-list li:nth-child(2) i { color: #A2AAAD; } 
    .platforms-list li:nth-child(3) i { color: #0078D6; } 

.app-icon {
    width: 80px; 
    height: 80px; 
    border-radius: 20%; 
    margin: 10px 0 15px 0; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
}

/* Style for preformatted text (FAQ content) */
pre {
    background-color: #f9f9f9; /* Светлый фон для блока */
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-family: 'Roboto', Arial, sans-serif; /* Используем читаемый шрифт */
    font-size: 1rem;
    line-height: 1.8; /* Увеличиваем высоту строки для лучшей читаемости */
    color: #333;
    white-space: pre-wrap; /* Обеспечиваем перенос текста */
    word-wrap: break-word; /* Перенос длинных слов */
    border: 1px solid #ddd; /* Добавим легкую границу */
}

/* FAQ Styling */
.faq-container {
    margin-top: 20px;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,.14);
}

.faq-question {
    display: block;
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    color: #0056b3; /* A distinct color for questions */
    position: relative;
    padding-right: 40px; /* Space for the arrow */
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg); /* No rotation needed for minus */
}

.faq-answer {
    padding: 0 15px 15px 15px;
    color: #333;
    line-height: 1.6;
}