/* === Загальні стилі === */
body {
    background-color: #FFFFFF !important;
}

/* === Шапка (Header) === */
.app-header {
    border-bottom: 1px solid #CCCCCC !important;
}

.app-header .nav-link,
.app-header .bi {
    color: #333333 !important;
}

.app-header .nav-link:hover {
    color: #181818 !important;
}

/* === Сайдбар (Sidebar) === */
.app-sidebar {
    border-right: 1px solid #CCCCCC !important;
    background-color: #181818 !important;
}

.app-sidebar .brand-link,
.app-sidebar .brand-text,
.app-sidebar .nav-link,
.app-sidebar .nav-icon,
.app-sidebar .bi {
    color: #FFFFFF !important;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link.active,
.app-sidebar .nav-link:hover .nav-icon,
.app-sidebar .nav-link.active .nav-icon {
    color: #CCCCCC !important;
}

.sidebar-brand {
    height: 57px !important;
    display: flex !important;
    align-items: center !important;
}

.public-tools-link {
    color: #c2c7d0;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.public-tools-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* === Контент (Main Content) === */
.app-content-header {
    padding: 20px !important;
}

/* === Футер (Footer) === */
.app-footer {
    background-color: #181818 !important;
    border-top: 1px solid #CCCCCC !important;
    color: #FFFFFF !important;
}

/* === Форми (Forms) === */
.form-control {
    border: 1px solid #CCCCCC !important;
}

/* === Кнопки (Buttons) === */
.btn-primary {
    background-color: transparent !important;
    border: 1px solid #CCCCCC !important;
    color: #333333 !important;
}

.btn-primary:hover {
    background-color: #F6F6F6 !important;
    border-color: #CCCCCC !important;
    color: #333333 !important;
}

.btn-accent {
    background-color: #181818 !important;
    border-color: #181818 !important;
    color: #FFFFFF !important;
}

.btn-accent:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
}

/* === Попапи === */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup {
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.popup button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #181818 !important;
    border-color: #181818 !important;
    color: #FFFFFF !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup button:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
}

/* === Картки інструментів === */
.tool-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    border: 1px solid #CCCCCC !important;
}

.tool-card__body {
    padding: 1.5rem;
}

.tool-card__title {
    font-family: 'Play', sans-serif;
    font-weight: 700;
    color: #333333 !important;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    display: block;
}

.tool-card__subtitle {
    font-family: 'Play', sans-serif;
    font-weight: 700;
    color: #333333 !important;
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.tool-card__text {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333 !important;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* === Вирівнювання іконок у картках === */
.card-body {
    padding: 1rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.card-body .nav-icon {
    font-size: 2.5rem !important;
    color: #181818 !important;
}

.card-title {
    font-weight: 600;
    float: none !important;
    margin-bottom: 0.3rem !important;
}

.card-text {
    margin-bottom: 0 !important;
    color: #333333 !important;
}

/* === Стрілка в меню === */
.nav-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.nav-item.menu-open > .nav-link .nav-arrow {
    transform: translateY(-50%) rotate(90deg);
}

/* === Анімація при ховері на картку === */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd !important;
}

/* === NGRAM ANALYZER === */
.tool-container ul {
    list-style-type: none;
    padding-left: 0;
}

.tool-container li {
    padding: 2px 4px;
    margin-bottom: 2px;
    border-bottom: 1px solid #e0e0e0;
}

.tool-container h3 {
    margin-top: 30px;
    color: #007BFF;
}

.tool-container code {
    background-color: #f1f1f1;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95em;
}
