﻿<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Roboto:wght@400;500&display=swap" rel="stylesheet" >



:root {
    --primary: #3949AB;
    --primary-light: #E8EAF6;
    --dark: #212121;
    --gray: #6b6b6b;
    --radius: 8px;
}

/* MAIN SECTION */
.chem-table-section {
    padding: 20px 0;
    background: #f8fafc;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* TITLES */
.page-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: #0A2E55;
    margin-bottom: 30px;
}

.page-subtitle {
    text-align: center;
    font-size: 18px;
    color: black;
    font-weight: 800;
}

/* TABLE WRAPPER */
.responsive-table {
    max-width: 1000px; /* adjust */
    margin: 0 auto;
}

/* TABLE */
.chem-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid #e1e1e1;
    overflow: hidden;
}

    /* CENTER ACTION CELL (DESKTOP) */
    .chem-table td:last-child {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* HEADER */
    .chem-table thead {
        background: #3949ab !important;
        color: white;
    }

    .chem-table th {
        padding: 14px;
        text-align: left;
        font-weight: 600;
        font-size: 14px;
    }

    /* ROWS */
    .chem-table td {
        padding: 14px;
        color: black;
        border-bottom: 1px solid #e7e7e7;
        font-family: 'Roboto Slab', serif;
    }

    .chem-table tbody tr {
        transition: 0.25s ease;
    }

        .chem-table tbody tr:hover {
            background: var(--primary-light);
        }

/* ICON */
.icon {
    font-size: 18px;
    margin-right: 6px;
   font-family: 'Roboto Slab'
}

/* VIEW BUTTON */
.view-btn {
    padding: 6px 14px;
    background: #3A6FCA !important;
    color: #fff !important;
    border-radius: var(--radius);
    font-size: 13px;
    text-decoration: none;
    transition: 0.25s;
    display: inline-block;
   font-family: 'Roboto Slab'
}

    .view-btn:hover {
        background: #2e3c96;
       font-family: 'Roboto Slab'
    }

/********************************************
 ✅ RESPONSIVE — MOBILE STACKED
*********************************************/
@media (max-width: 768px) {

    .chem-table thead {
        display: none;
    }

    .chem-table,
    .chem-table tbody,
    .chem-table tr,
    .chem-table td {
        display: block;
        width: 100%;
       font-family: 'Roboto Slab'
    }

        .chem-table tr {
            margin-bottom: 12px;
            border: 1px solid #e1e1e1;
            border-radius: var(--radius);
            background: #ffffff;
            padding: 10px 12px;
           font-family: 'Roboto Slab'
        }

        .chem-table td {
            border: none;
            padding: 10px 0;
            display: flex;
            flex-direction: column; /* ✅ allows long text to wrap */
            gap: 4px;
            border-bottom: 1px dashed #ddd;
            font-size: 14px;
           font-family: 'Roboto Slab'
        }

            .chem-table td:last-child {
                border-bottom: none;
                align-items: center; /* ✅ center "View" button */
                justify-content: center;
               font-family: 'Roboto Slab'
            }

            /* MOBILE LABELS */
            .chem-table td:nth-child(1)::before {
                content: "Category";
                font-weight: 600;
                color: var(--gray);
               font-family: 'Roboto Slab'
            }

            .chem-table td:nth-child(2)::before {
                content: "Action";
                font-weight: 600;
                color: var(--gray);
               font-family: 'Roboto Slab'
            }

    .view-btn {
        margin-top: 4px;
       font-family: 'Roboto Slab'
    }
}

/********************************************
 ✅ PAGINATION
*********************************************/
.pagination {
    margin-top: 25px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
   font-family: 'Roboto Slab'
}

    .pagination button {
        padding: 8px 14px;
        border: 1px solid var(--primary);
        background: #3A6FCA !important;
        color: white;
        border-radius: 6px;
        cursor: pointer;
        transition: 0.25s;
        font-size: 14px;
       font-family: 'Roboto Slab'
    }

        .pagination button:hover {
            background: #007A8A;
           font-family: 'Roboto Slab'
        }

        .pagination button.active {
            background: #0A2E55 !important;
            color: #fff;
            transform: scale(1.05);
           font-family: 'Roboto Slab'
        }

/* smaller buttons on mobile */
@media (max-width: 480px) {
    .pagination button {
        padding: 6px 10px;
        font-size: 12px;
       font-family: 'Roboto Slab'
    }
}


/********************************************
 ✅ OPTIONAL BG SECTIONS (unchanged)
*********************************************/
.bg-attach-fixed {
    background-attachment: fixed;
    background-position: center;
    width: 100%;
    height: 100%;
   font-family: 'Roboto Slab'
}

.cta-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 69, 81, 0.6) 100%);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
   font-family: 'Roboto Slab'
}

.section {
    padding: 11em 2em;
    overflow: hidden;
    background-size: cover;
    background-position: center;
   font-family: 'Roboto Slab'
}
span {
   font-family: 'Roboto Slab'
}
/* Desktop polish */
@media (min-width: 1024px) {
    .chem-table {
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    }

        .chem-table tbody tr:hover {
            transform: translateY(-1px);
            box-shadow: inset 4px 0 0 #3A6FCA;
        }
}
@media (max-width: 1023px) and (min-width: 769px) {
    .chem-table th,
    .chem-table td {
        padding: 12px;
        font-size: 14px;
    }

    .view-btn {
        padding: 6px 12px;
    }
}
@media (max-width: 768px) {

    .chem-table thead {
        display: none;
    }

    .chem-table,
    .chem-table tbody {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        background: transparent;
        border: none;
    }

        .chem-table tr {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 16px;
            border-radius: 12px;
            background: #ffffff;
            box-shadow: 0 6px 18px rgba(0,0,0,0.06);
            border-left: 4px solid #3A6FCA;
            transition: 0.25s ease;
        }

            .chem-table tr:hover {
                transform: translateY(-2px);
            }

        .chem-table td {
            padding: 0;
            border: none;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 15px;
        }

            /* Category name */
            .chem-table td:first-child {
                font-size: 16px;
                font-weight: 600;
                color: #0A2E55;
            }

            /* Action area */
            .chem-table td:last-child {
                margin-top: 10px;
                justify-content: flex-start;
            }

    .view-btn {
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 14px;
        border-radius: 8px;
    }

    .icon {
        font-size: 20px;
    }
}
/***search box*/
/* Center alignment wrapper */
.search-wrapper {
    display: flex;
    justify-content: center;
    background: #f8fafc;
    padding: 25px 0;
    margin-bottom: 10px;
}

/* Input container */
.input-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

/* Input field */
.input-field {
    width: 100%;
    padding: 12px 10px;
    font-size: 16px;
    border: none;
    border-bottom: 2.5px solid #cfd6e1;
    outline: none;
    background-color: transparent;
    color: #222;
    font-family: 'Roboto Slab', serif;
}

/* Label */
.input-label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #8a8a8a;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Highlight bar */
.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #3f51b5; /* matches your theme */
    transition: width 0.3s ease;
}

/* Floating effect */
.input-field:focus + .input-label,
.input-field:not(:placeholder-shown) + .input-label {
    top: -8px;
    font-size: 12px;
    color: #3f51b5;
}

    /* Highlight animation */
    .input-field:focus + .input-label + .input-highlight {
        width: 100%;
    }
