body {
    font-family: Segoe UI, sans-serif;
    background: #f5f0fa;
    margin: 10px;
}

.table-container {
    width: 80%;
    max-width: 900px;
    overflow-x: auto;
    margin: 20px auto;
}

table {
    width: 100%;
    border-collapse: collapse;

    font-size: 15px;
    color: #333;
    background: white;

    box-shadow: 0 0 8px rgba(106, 74, 153, 0.15);

    border-radius: 6px;
    min-width: 300px;
    font-weight: bold;
}

thead {
    background: #8e44ad;
    color: white;
}

tbody tr:nth-child(even) {
    background: #faf7fc;
}

tbody tr:hover {
    background: #f0e5f7;
}

th,
td {
    padding: 10px 12px;

    border-bottom: 1px solid #ddd;

    vertical-align: middle;

    word-break: break-word;
}


/* COLUMN WIDTH */

.sno {
    width: 40px;
    text-align: left;
}

.rno {
    width: 70px;
    text-align: left;
}

.rname {
    width: 200px;
}

.time {
    width: 80px;
    text-align: center;
}

.start1 {
    width: 80px;
    text-align: center;
}


/* TABLE HEADER */

th {
    background-color: #8e44ad;
    color: white;

    font-weight: bold;

    border-radius: 3px;
}


/* TITLE */

.title {
    text-align: center;

    font-size: 22px;

    font-weight: bold;

    color: #6a4a99;

    background: linear-gradient(
        to right,
        #f0e5f7,
        #ffffff
    );

    padding: 10px 15px;

    border-radius: 8px;

    box-shadow:
        0 2px 6px rgba(106, 74, 153, 0.2);

    width: fit-content;

    margin: 20px auto;

    letter-spacing: 1px;
}


/* BACK BUTTON */

.back-btn {
    display: block;

    margin: 0 auto 25px;

    background-color: #8e44ad;

    color: white;

    border: none;

    padding: 8px 18px;

    border-radius: 25px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: #6a4a99;

    transform: scale(1.05);
}


/* SCROLL BUTTON */

.scroll-btn {
    position: fixed;

    right: 15px;

    width: 45px;
    height: 45px;

    border-radius: 50%;

    border: 1px solid #b9a3c8;

    background: rgba(255, 255, 255, 0.8);

    color: #6a4a99;

    font-size: 20px;

    backdrop-filter: blur(4px);

    transition: 0.3s;

    box-shadow:
        0 2px 6px rgba(106, 74, 153, 0.2);
}

.scroll-btn:hover {
    background: #f0e5f7;

    color: #8e44ad;

    transform: scale(1.1);
}

#up {
    bottom: 70px;
}

#down {
    bottom: 15px;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .table-container {
        width: 95%;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 11px;

        min-width: 200px;
    }

    .sno {
        width: 25px;
    }

    .rno {
        width: 35px;
    }

    .rname {
        width: 100px;
    }

    .time {
        width: 55px;
    }

    .start1 {
        width: 45px;
    }

    th,
    td {
        padding: 4px 5px;
    }

    th {
        background-color: #8e44ad;

        color: white;

        font-weight: bold;

        border-radius: 3px;
    }

    .title {
        font-size: 18px;

        padding: 8px 12px;
    }

    .back-btn {
        font-size: 13px;

        padding: 7px 16px;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;

        right: 10px;

        font-size: 18px;
    }
}