/* Lottery Tab Container */
#lottery-tabs-container {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px; /* equal padding all sides */
    font-family: Arial, sans-serif;
    background-color: #f9e294;
    border-radius: 16px;
}

/* Tab wrapper background and layout */
#lottery-tabs {
    display: flex;
    justify-content: center;
    background-color: black;
    border-radius: 10px;
    overflow: hidden;
    padding: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Each tab item */
#lottery-tabs div {
    background-color: black;
    color: white;
    font-weight: bold;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex: 1 1 auto;
    text-align: center;
    user-select: none;
    min-width: 120px;
}

/* Active tab style */
#lottery-tabs .active {
    background-color: #fe5422;
    color: white;
}

/* Tab content box */
.lottery-tab-content {
    border: 1px solid #ddd;
    border-radius: 12px;
    background: white;
    padding: 20px;
    margin-top: 0;
}

/* Form styling */
.lottery-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

/* Add question mark in black circle after each label */
.lottery-form label::after {
    content: "?";
    display: inline-block;
    background-color: black;
    color: white;
    font-weight: bold;
    font-size: 0.75em;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
    user-select: none;
    font-family: Arial, sans-serif;
}

.lottery-form input[type="text"],
.lottery-form input[type="file"],
.lottery-form textarea,
.lottery-form select,
.lottery-form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
}

.lottery-form button {
    background: #fe5422;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px;
}

.lottery-form button:hover {
    background: #e03d10;
}

/* Status messages */
.lottery-status {
    margin-top: 15px;
    padding: 12px;
    background: #f0f8ff;
    border: 1px solid #87cefa;
    border-radius: 6px;
}

/* Table inside lottery tab content - reduce height */
.lottery-tab-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lottery-tab-content table th,
.lottery-tab-content table td {
    padding: 6px 8px;
    border: 1px solid #ccc;
    vertical-align: middle;
}

/* Mobile Responsive: Keep tabs in a row */
@media (max-width: 768px) {
    #lottery-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    #lottery-tabs div {
        flex: 1 1 auto;
        margin: 5px;
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 6px;
        min-width: 100px;
    }

    .lottery-tab-content {
        padding: 15px 12px;
        font-size: 14px;
    }

    .lottery-form input[type="text"],
    .lottery-form input[type="file"],
    .lottery-form textarea,
    .lottery-form select,
    .lottery-form button {
        font-size: 0.95rem;
        padding: 9px;
    }
}

/* Optional: Hover effect on desktop */
@media (min-width: 769px) {
    #lottery-tabs div:hover:not(.active) {
        transform: scale(1.05);
        background-color: #222;
    }
}
