.number {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin: 0 5px;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.number:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.num-1-10 { background-color: #FCC400; }
.num-11-20 { background-color: #69C8F2; }
.num-21-30 { background-color: #FF7272; }
.num-31-40 { background-color: #AAAAAA; }
.num-41-45 { background-color: #B0D840; }
.bonus { background-color: #108080; }

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px auto;  /* Changed from '20px 0' to '20px auto' */
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(32, 32, 32, 0.1);
}

th {
    background: #4a90e2;
    color: #ffffff;
    padding: 15px;
    font-weight: bold;    /* Changed from 500 to bold */
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    text-align: center;
    vertical-align: middle;
}

td {
    padding: 12px 1px;
    border-bottom: 1px solid #eef2f7;
    color: #2d3748;
    text-align: center;
    vertical-align: middle;
    font-weight: bold;    /* Added this line */
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

h2 {
    text-align: center;
    margin: 30px 0;
    padding: 10px;
    color: #333;
    font-size: 24px;
}

.chart-container {
    width: 100%;
    height: 400px;
    margin: 20px auto;
    padding: 0;
    position: relative;
}


/* Update lotto menu styles */
.sidebar .nav-item[href="?page=lotto"] {
    color: #2196F3 !important;
    background-color: rgba(33, 150, 243, 0.1);
}

.sidebar .nav-item[href="?page=lotto"]:hover {
    background-color: rgba(33, 150, 243, 0.2);
}

.sidebar .nav-item[href="?page=lotto"] i {
    color: #2196F3 !important;
}

.sidebar .nav-item[href="?page=lotto"]::before {
    content: "로또 번호 얍~";
    display: inline-block;
    width: 100%;
}

.sidebar .nav-item[href="?page=lotto"] span {
    display: none;
}


@media screen and (max-width: 768px) {
    table {
        width: 100%;
        margin: 15px 0;
        border-radius: 0;
    }

    .table-container {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: auto;
    }

    td {
        padding: 12px 5px;
    }

    .number {
        width: 35px;
        height: 35px;
        line-height: 35px;
        margin: 0 2px;
        font-size: 14px;
    }

    h2 {
        padding: 10px 0;
        font-size: 18px;
        margin: 5px 0;
        width: 100%;
    }

    .chart-container {
        width: 100%;
        margin: 15px 0;
        padding: 0;
    }
}