﻿.comparison-page
{
    max-width: 100%;
    padding: 2rem 1.5rem;
}

.comparison-header
{
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-title
{
    color: #343434;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.export-excel-btn
{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: #325650;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(50, 86, 80, 0.2);
    margin-bottom: 1.5rem;
}

    .export-excel-btn:hover
    {
        background: #ffc55e;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(50, 86, 80, 0.3);
    }

    .export-excel-btn i
    {
        font-size: 1.25rem;
    }

.table-wrapper
{
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

.comparison-table
{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

    .comparison-table thead th
    {
        background: linear-gradient(135deg, #325650 0%, #2a4a43 100%);
        color: #ffffff;
        padding: 1.25rem 1.5rem;
        font-weight: 700;
        font-size: 1.05rem;
        text-align: left;
        border: none;
        min-width: 250px;
        max-width: 450px;
        position: relative;
    }

        .comparison-table thead th:first-child
        {
            position: sticky;
            left: 0;
            z-index: 3;
            box-shadow: 4px 0 10px rgba(0, 0, 0, 0.15);
            border-top-left-radius: 12px;
        }

        .comparison-table thead th:last-child
        {
            border-top-right-radius: 12px;
        }

.remove-node-btn
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.75rem;
    padding: 0;
}

    .remove-node-btn:hover
    {
        background: #dc3545;
        border-color: #dc3545;
        transform: scale(1.1);
    }

.comparison-table tbody tr
{
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

    .comparison-table tbody tr:hover
    {
        background-color: #f8f9fa;
    }

    .comparison-table tbody tr:last-child
    {
        border-bottom: none;
    }

.comparison-table tbody td
{
    padding: 1.25rem 1.5rem;
    color: #495057;
    font-size: 0.95rem;
    vertical-align: top;
    border: none;
    max-width: 450px;
    word-wrap: break-word;
    border: 0.5px solid #868e96;
}

    .comparison-table tbody td:first-child
    {
        position: sticky;
        left: 0;
        background: linear-gradient(135deg, #325650 0%, #2a4a43 100%);
        color: #ffffff;
        font-weight: 700;
        z-index: 2;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.15);
    }

.comparison-table tbody tr:last-child td:first-child
{
    border-bottom-left-radius: 12px;
}

.comparison-table a
{
    color: #325650;
    text-decoration: none;
    font-weight: 650;
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

    .comparison-table a:hover
    {
        color: #ffc55e;
        border-bottom-color: #ffc55e;
        background-color: rgba(255, 197, 94, 0.1);
    }

.comparison-table ul
{
    list-style: none;
    padding: 0;
    margin: 0;
}

    .comparison-table ul li
    {
        padding: 0.4rem 0;
        padding-left: 1.5rem;
        position: relative;
        margin-bottom: 0.3rem;
    }

        .comparison-table ul li:before
        {
            content: "•";
            color: #ffc55e;
            font-weight: bold;
            font-size: 1.2rem;
            position: absolute;
            left: 0;
        }

        .comparison-table ul li:last-child
        {
            margin-bottom: 0;
        }

.floating-scrollbar
{
    overflow-x: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: #f1f1f1;
    z-index: 100;
}

.scrollbar-inner
{
    width: 100%;
    height: 1px;
}

.table-wrapper::-webkit-scrollbar
{
    height: 12px;
}

.table-wrapper::-webkit-scrollbar-track
{
    background: #f1f3f5;
    border-radius: 6px;
}

.table-wrapper::-webkit-scrollbar-thumb
{
    background: #cbd5e0;
    border-radius: 6px;
}

    .table-wrapper::-webkit-scrollbar-thumb:hover
    {
        background: #a0aec0;
    }

.floating-scrollbar::-webkit-scrollbar
{
    height: 16px;
}

.floating-scrollbar::-webkit-scrollbar-track
{
    background: #e9ecef;
    border-radius: 8px;
}

.floating-scrollbar::-webkit-scrollbar-thumb
{
    background: #325650;
    border-radius: 8px;
}

    .floating-scrollbar::-webkit-scrollbar-thumb:hover
    {
        background: #2a4a43;
    }

.empty-state
{
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #cbd5e0;
    margin: 2rem 0;
}

    .empty-state p
    {
        color: #6c757d;
        font-size: 1.125rem;
        margin: 0;
    }

@media (max-width: 768px)
{
    .comparison-page
    {
        padding: 1.5rem 1rem;
    }

    .comparison-title
    {
        font-size: 1.5rem;
    }

    .export-excel-btn
    {
        width: 100%;
        justify-content: center;
    }

    .comparison-table thead th,
    .comparison-table tbody td
    {
        padding: 1rem;
        font-size: 0.9rem;
    }

        .comparison-table thead th:first-child,
        .comparison-table tbody td:first-child
        {
            max-width: 100px;
            min-width: 100px;
        }
}