/* Frontend Styles */
.player-rater-widget {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    max-width: 600px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.player-rater-widget h4.widget-title {
    margin-top: 0;
    text-transform: uppercase;
    border-bottom: 2px solid #d40000;
    /* Lincoln Red */
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #333;
}

.playerrater-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.playerrater-table th {
    background: #f1f1f1;
    padding: 6px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #ccc;
    /* Added border */
    font-size: 13px;
}

.playerrater-table th.numeric {
    text-align: center;
}

.playerrater-table td {
    padding: 6px;
    border: 1px solid #ccc;
    /* Added border */
    vertical-align: middle;
    font-size: 14px;
}

.playerrater-table td.numeric {
    text-align: center;
}

/* Positions */
.playerrater-table .position small {
    display: inline-block;
    padding: 2px 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 480px) {

    .playerrater-table th,
    .playerrater-table td {
        padding: 4px 2px;
        font-size: 13px;
    }

    .player-rater-widget {
        padding: 10px;
        margin: 10px 0;
        border: none;
        background: transparent;
    }

    .widget-title {
        font-size: 1.1em;
    }

    .sub-info {
        display: block;
        font-size: 0.85em;
        color: #666;
    }
}

.swpr-error {
    border: 1px solid red;
    background-color: #ffe6e6;
}

.GK {
    background-color: #f39c12;
}

.DF {
    background-color: #3498db;
}

.MF {
    background-color: #27ae60;
}

.FW {
    background-color: #e74c3c;
}

/* Ratings Select */
.playerrater-table select {
    padding: 2px;
    font-size: 14px;
}

.submit {
    text-align: right;
}

.submit-ratings {
    background: #d40000;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
}

.submit-ratings:hover {
    background: #b30000;
}

.submit-ratings:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.swpr-message p {
    margin: 10px 0 0;
    font-weight: bold;
}

.swpr-message .success {
    color: green;
}

.swpr-message .info {
    color: #666;
}