/* dcw-football.css */

/* Enhanced Styling for the Betting Tool */
.betting-tool-wrapper {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: linear-gradient(to bottom right, #ffffff, #e6f7ff);
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.betting-tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.betting-tool-header h1 {
    font-size: 36px;
    color: #0073e6;
    margin-bottom: 10px;
}

.betting-tool-header p {
    font-size: 18px;
    margin-top: 10px;
    color: #555;
}

.betting-tool-balance {
    text-align: center;
    font-size: 18px;
    margin-bottom: 10px;
    color: #0073e6;
}

.betting-tool-balance button {
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 14px;
    background-color: #17a2b8;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.betting-tool-balance button:hover {
    background-color: #138496;
}

.betting-tool-time {
    text-align: center;
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.betting-tool-form {
    margin-bottom: 30px;
    text-align: center;
}

.betting-tool-form label {
    font-size: 18px;
    margin-right: 10px;
    color: #333;
}

.betting-tool-form input[type="date"] {
    padding: 10px;
    font-size: 16px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.betting-tool-form input[type="submit"] {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.betting-tool-form input[type="submit"]:hover {
    background-color: #218838;
}

.betting-tool-note {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.betting-tool-disclaimer {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 40px;
}

.match-table-container {
    overflow-x: auto;
}

.match-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.match-table th, .match-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
    font-size: 14px;
}

.match-table th {
    background-color: #0073e6;
    color: #fff;
    font-weight: bold;
}

.match-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.locked-prediction .blurred-content {
    filter: blur(6px);
    user-select: none;
    color: transparent;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    position: relative;
}

.locked-prediction .blurred-content::after {
    content: 'Prediction Locked';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: none;
    filter: none;
    background-color: rgba(255,255,255,0.8);
    border-radius: 5px;
}

.unlock-button {
    margin-top: 5px;
    padding: 5px 10px;
    font-size: 14px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.unlock-button:hover {
    background-color: #218838;
}

.outcome-badge {
    padding: 5px 10px;
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
}

.outcome-badge.Win {
    background-color: #28a745;
}

.outcome-badge.Draw {
    background-color: #ffc107;
    color: #333;
}

.outcome-badge.Loss {
    background-color: #dc3545;
}

.outcome-badge.Scheduled {
    background-color: #6c757d;
}

.betting-tool-login-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
}

.betting-tool-login-prompt a {
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
}

.betting-tool-login-prompt a:hover {
    text-decoration: underline;
}

/* Modal Styling */
.token-history-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.token-history-modal-content {
    background-color: #fff;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
}

.token-history-modal h2 {
    margin-top: 0;
    text-align: center;
    color: #0073e6;
}

.token-history-modal table {
    width: 100%;
    border-collapse: collapse;
}

.token-history-modal table th, .token-history-modal table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.token-history-modal table th {
    background-color: #0073e6;
    color: #fff;
}

.token-history-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.token-history-modal .close-modal:hover {
    background-color: #c82333;
}

/* Pagination Styles */
.pagination {
    margin-top: 15px;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 12px;
    font-size: 14px;
    color: #0073e6;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination .current-page {
    background-color: #0073e6;
    color: #fff;
    border-color: #0073e6;
}

/* Responsive */
@media screen and (max-width: 767px) {
    .betting-tool-balance, .betting-tool-time {
        text-align: center;
    }

    .betting-tool-form label, .betting-tool-form input {
        display: block;
        margin: 0 auto;
        margin-bottom: 10px;
    }

    .match-table th, .match-table td {
        font-size: 12px;
        padding: 8px;
    }

    .betting-tool-header h1 {
        font-size: 28px;
    }

    .betting-tool-header p {
        font-size: 16px;
    }
}
