/* General Table Section Styling */
.table-section {
    padding: 40px 0;
    background-color: var(--light-bg);
}

    .table-section h2 {
        text-align: center;
        margin-bottom: 40px;
        color: var(--text-color-dark);
    }

.table-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px; /* Reduced padding slightly for table */
    margin-bottom: 40px;
    overflow-x: auto; /* Enable horizontal scrolling for small screens */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Table Styling */
#cpuTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    #cpuTable th,
    #cpuTable td {
        padding: 12px 15px;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }

    #cpuTable thead th {
        background-color: var(--primary-color);
        color: var(--text-color-light);
        font-weight: 700;
        white-space: nowrap; /* Prevent headers from wrapping too much */
    }

    #cpuTable tbody tr:nth-child(even) {
        background-color: var(--light-bg); /* Zebra striping */
    }

    #cpuTable tbody tr:hover {
        background-color: #e9ecef; /* Hover effect */
        cursor: pointer;
    }

/* Ensure that your existing general styling (from style.css) is still active */
/* For example, variables like --primary-color, --text-color-dark, etc. */
/* These are taken from your style.css snippet */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-bg: #212529;
    --light-bg: #f8f9fa;
    --text-color-dark: #343a40;
    --text-color-light: #ffffff;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --footer-bg: #343a40;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header h1 {
        margin: 0;
        color: var(--text-color-light);
        font-size: 2.5rem;
    }

    header nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 20px;
    }

        header nav ul li a {
            color: var(--text-color-light);
            text-decoration: none;
            font-weight: 500;
            padding: 5px 10px;
            transition: color 0.3s ease;
        }

            header nav ul li a:hover,
            header nav ul li a.active {
                color: var(--primary-color);
            }

/* Dropdown specific styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dark-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    left: 0; /* Align dropdown with the dropdown button */
}

    .dropdown-content a {
        color: var(--text-color-light) !important; /* Important to override header nav a */
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
    }

        .dropdown-content a:hover {
            background-color: #333; /* Slightly darker hover for dropdown items */
        }

.dropdown:hover .dropdown-content {
    display: block;
}

/* Footer Styling */
footer {
    background-color: var(--footer-bg);
    color: var(--text-color-light);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px; /* Space above footer */
}

    footer a {
        color: var(--primary-color);
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }

/* Responsive adjustments for header and nav */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .dropdown-content {
        position: static; /* Make dropdown full width on small screens */
        box-shadow: none;
        background-color: transparent; /* Remove background on small screens */
    }

        .dropdown-content a {
            padding-left: 30px; /* Indent dropdown items on small screens */
        }
}

/* "Nach oben" Button Styling */
#scrollToTopBtn {
    display: none; /* Versteckt den Button standardmäßig */
    position: fixed; /* Positioniert den Button fix auf dem Bildschirm */
    bottom: 30px; /* Abstand vom unteren Rand */
    right: 30px; /* Abstand vom rechten Rand */
    z-index: 99; /* Stellt sicher, dass der Button über anderen Elementen liegt */
    border: none; /* Entfernt den Rahmen */
    outline: none; /* Entfernt den Fokusrahmen */
    background-color: var(--primary-color); /* Hintergrundfarbe des Buttons */
    color: white; /* Textfarbe des Buttons */
    cursor: pointer; /* Zeigt den Hand-Cursor beim Überfahren */
    padding: 15px;
    border-radius: 50%; /* Macht den Button rund */
    font-size: 18px; /* Schriftgröße des Pfeils */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Schatten für Tiefe */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Sanfte Übergänge */
    display: flex; /* Für die SVG-Zentrierung */
    align-items: center;
    justify-content: center;
}

    #scrollToTopBtn:hover {
        background-color: #0056b3; /* Dunklere Farbe beim Hover */
        transform: translateY(-2px); /* Leichter Hoch-Effekt beim Hover */
    }

    #scrollToTopBtn svg {
        width: 24px;
        height: 24px;
    }

/* Search Container Styling */
.search-container {
    display: flex;
    justify-content: center; /* Center the search input */
    align-items: center;
    margin-bottom: 30px;
    gap: 10px; /* Space between input and button */
}

#cpuSearchInput {
    width: 100%;
    max-width: 400px; /* Limit max width of input */
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    #cpuSearchInput:focus {
        border-color: var(--primary-color);
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(0, 123, 255, 0.25);
        outline: none;
    }

#clearSearchBtn {
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

    #clearSearchBtn:hover {
        background-color: #5a6268; /* Darker secondary color */
    }

/* Responsive adjustments for search field */
@media (max-width: 600px) {
    .search-container {
        flex-direction: column; /* Stack input and button on small screens */
        align-items: stretch;
    }

    #cpuSearchInput {
        max-width: none; /* Allow input to take full width */
    }
}