body {
    font-family: Arial;
    padding: 20px;
    background: #f0f0f0;
}

/* ======================= */
/* ГЛАВНАЯ ТАБЛИЦА         */
/* ======================= */
table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: center;
}

th {
    background: #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 10;
    cursor: pointer;
}

.url-col {
    position: sticky;
    left: 0;
    background: #fafafa;
    text-align: left;
    z-index: 9;
}

/* ======================= */
/* HEATMAP                 */
/* ======================= */
.heat-low  { background: rgba(255, 0, 0, 0.25); }
.heat-mid  { background: rgba(255, 165, 0, 0.25); }
.heat-high { background: rgba(0, 200, 0, 0.35); }
.heat-best { background: rgba(0, 160, 0, 0.55); }

/* ======================= */
/* ФОРМА                   */
/* ======================= */
textarea {
    width: 350px;
    height: 80px;
    padding: 6px 10px;
}

button {
    padding: 6px 15px;
    font-size: 15px;
    cursor: pointer;
}

.dates-box {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
}

/* ======================= */
/* РЯДЫ ТАБЛИЦ             */
/* ======================= */
.domain-row { cursor: pointer; }
.domain-row:hover { background: #f5f5f5; }
.domain-cats td { background: #fafafa; }

/* ======================= */
/* ВНУТРЕННИЕ ТАБЛИЦЫ      */
/* ======================= */
.inner-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

.inner-table th,
.inner-table td {
    border: 1px solid #ddd;
    padding: 4px 6px;
    font-size: 12px;
}

.inner-table th {
    background: #f3f3f3;
    cursor: default;
}

.inner-url-col {
    text-align: left;
}

.category-row { cursor: pointer; }
.category-row:hover { background: #f0f0f0; }
.diff-up {
    background: #d6f5d6 !important;
    color: #0a7a0a !important;
    font-weight: bold;
}

.diff-down {
    background: #ffd6d6 !important;
    color: #b30000 !important;
    font-weight: bold;
}
