body {
    font-family: Segoe UI, sans-serif;
    background: #f9fdff; /* Light blue background */
    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(0,0,0,0.1);
    border-radius: 6px;
    min-width: 300px;
    font-weight: bold;
}

thead {
    background: #3498db; /* Light blue */
    color: white;
}

tbody tr:nth-child(even) { background: #f0f8ff; } /* Very light blue */
tbody tr:hover { background: #d6eaf8; } /* Light blue hover */

th, td {
    padding: 10px 12px;
    border-bottom: 1px solid #bddce7; /* Light blue border */
    vertical-align: middle;
    word-break: break-word;
}

.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; }

th {
    background-color: #5dade2; /* Medium blue */
    color: white;
    font-weight: bold;
    border-radius: 3px;
}

.title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #3498db; /* Light blue */
    background: linear-gradient(to right, #e3f2fd, #ffffff); /* Light blue gradient */
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2); /* Blue shadow */
    width: fit-content;
    margin: 20px auto;
    letter-spacing: 1px;
}

.back-btn {
    display: block;
    margin: 0 auto 25px;
    background-color: #3498db; /* Light blue */
    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: #2980b9; /* Darker blue */
    transform: scale(1.05);
}

.scroll-btn {
    position: fixed;
    right: 15px;
    width: 45px; 
    height: 45px; 
    border-radius: 50%;
    border: 1px solid #3498db; /* Light blue border */
    background: rgba(255, 255, 255, 0.2); 
    color: #2980b9;
    font-size: 20px; 
    backdrop-filter: blur(4px); 
    transition: 0.3s; 
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2); /* Blue shadow */
}

.scroll-btn:hover { 
    background: rgba(255, 255, 255, 0.4); 
    transform: scale(1.1); 
}

#up { bottom: 70px; }
#down { bottom: 15px; }

/* Mobile adjustments */
@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: #5dade2; /* Medium blue */
        color: white;
        font-weight: bold;
        border-radius: 3px;
    }
}
