/* Soxo Prediction System Styles */

.soxo-prediction-form {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ddd;
}

.soxo-prediction-form h3 {
    background: #e74c3c;
    color: white;
    margin: 0;
    padding: 15px 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 0;
}

.soxo-notice {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.soxo-notice.soxo-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.soxo-form-group {
    margin-bottom: 15px;
    padding: 0 20px;
}

.soxo-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.soxo-form-group input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #ff8c00;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: #fff;
    transition: all 0.3s ease;
}

.soxo-form-group input[type="text"]:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

.soxo-form-group input[type="text"]::placeholder {
    color: #999;
    font-weight: normal;
}

.soxo-form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 14px;
}

/* Row and column layout */
.soxo-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.soxo-col {
    flex: 1;
}

.soxo-col label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.soxo-col input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #ff8c00;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: #fff;
    transition: all 0.3s ease;
}

.soxo-col input[type="text"]:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

.soxo-col input[type="text"]::placeholder {
    color: #999;
    font-weight: normal;
}

/* Double input styles */
.soxo-double-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.soxo-double-input input {
    flex: 1;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    padding: 8px;
    border: 2px solid #ff8c00;
    border-radius: 4px;
    background: #fff;
}

.soxo-double-input input:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

/* Dàn input styles */
.soxo-dan-input {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.soxo-dan-input input {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    padding: 6px;
    border: 2px solid #ff8c00;
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s ease;
}

.soxo-dan-input input:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

.soxo-dan-input input::placeholder {
    color: #999;
    font-weight: normal;
}

.soxo-submit-btn {
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 15px 20px 10px 20px;
}

.soxo-submit-btn:hover {
    background: #c0392b;
}

.soxo-discuss-btn {
    background: #95a5a6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 15px 10px 10px 0;
    text-decoration: none;
}

.soxo-discuss-btn:hover {
    background: #7f8c8d;
    color: white;
    text-decoration: none;
}

.soxo-current-prediction {
    margin-top: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 0;
    border-left: 4px solid #e74c3c;
}

.soxo-current-prediction h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 14px;
}

.soxo-current-prediction p {
    margin: 5px 0;
    color: #34495e;
    font-size: 13px;
}

.soxo-form-note {
    padding: 0 20px 15px 20px;
    font-size: 12px;
    color: #e74c3c;
}

.soxo-form-note::before {
    content: "* ";
    color: #e74c3c;
    font-weight: bold;
}

/* Error styles */
.soxo-form-group input.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

.field-error {
    color: #e74c3c !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-top: 5px !important;
    display: block !important;
}

.soxo-buttons {
    padding: 0 20px;
    margin-top: 10px;
}

.soxo-login-required {
    text-align: center;
    padding: 40px 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
    font-size: 18px;
    font-weight: 500;
}

/* Leaderboard Styles */
.soxo-leaderboard {
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ddd;
    overflow: hidden;
}

.soxo-leaderboard-tabs {
    display: flex;
    background: #f8f9fa;
    overflow-x: auto;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    color: #666;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #e9ecef;
}

.tab-btn.active {
    background: #e74c3c;
    color: white;
}

.soxo-leaderboard-header {
    background: #e74c3c;
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.soxo-leaderboard-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.soxo-leaderboard-categories {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.category-btn {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    color: #666;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: #e9ecef;
}

.category-btn.active {
    background: #e74c3c;
    color: white;
}

.soxo-leaderboard-content {
    padding: 20px;
}

.soxo-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.soxo-leaderboard-table th {
    background: #f8f9fa;
    color: #333;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.soxo-leaderboard-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.soxo-leaderboard-table tr:nth-child(even) {
    background: #f8f9fa;
}

.soxo-leaderboard-table tr:hover {
    background: #e8f4f8;
}

.soxo-leaderboard-table .rank {
    font-weight: bold;
}

.soxo-leaderboard-table .medal {
    font-size: 18px;
}

.soxo-leaderboard-table .avatar img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.soxo-leaderboard-table .name {
    font-weight: 600;
    text-align: left;
}

.soxo-leaderboard-table .points {
    font-weight: bold;
    color: #e74c3c;
    font-size: 16px;
}

/* Statistics Styles */
.soxo-statistics {
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ddd;
    overflow: hidden;
}

.soxo-statistics-header {
    background: #e74c3c;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.soxo-statistics-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.soxo-date-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.soxo-date-picker input[type="date"] {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    background: rgba(255,255,255,0.9);
    color: #333;
}

.calendar-icon {
    font-size: 16px;
}

.soxo-statistics-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.soxo-filters {
    display: flex;
    gap: 20px;
}

.soxo-filters label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
}

.soxo-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.soxo-sort label {
    font-size: 14px;
    font-weight: 500;
}

.soxo-numbers-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    padding: 20px;
}

.soxo-number-item {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.soxo-number-item.active {
    background: #ffc107;
    border-color: #ffc107;
}

.soxo-number-item .number {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.soxo-number-item.active .number {
    color: #000;
}

.soxo-number-item .count {
    font-size: 12px;
    color: #666;
}

.soxo-number-item.active .count {
    color: #28a745;
    font-weight: 500;
}

/* Experts Styles */
.soxo-experts {
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ddd;
    overflow: hidden;
}

.soxo-experts-header {
    background: #e74c3c;
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.soxo-experts-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.soxo-experts-table {
    width: 100%;
    border-collapse: collapse;
}

.soxo-experts-table th {
    background: #f8f9fa;
    color: #333;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.soxo-experts-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.soxo-experts-table tr:nth-child(even) {
    background: #f8f9fa;
}

.soxo-experts-table tr:hover {
    background: #e8f4f8;
}

.expert-name {
    text-align: left;
    font-weight: 600;
}

.expert-name img {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.number-box {
    display: inline-block;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 2px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

/* Comments Styles */
.soxo-comments {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ddd;
    overflow: hidden;
}

.soxo-comments-header {
    background: #e74c3c;
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.soxo-comments-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.soxo-comment-form {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.comment-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 8px 15px;
    width: 100%;
    max-width: 100%;
}

.comment-input-area img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.guest-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-input-area input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 12px;
    font-size: 14px;
    background: transparent;
    min-width: 0;
    width: 100%;
}

.comment-input-area input::placeholder {
    color: #999;
}

.emoji-icon {
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.comment-input-area button {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.comment-input-area button:hover {
    background: #c0392b;
}

.login-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.login-btn:hover {
    background: #c0392b;
    color: white;
    text-decoration: none;
}

.soxo-comments-list {
    padding: 20px;
}

.soxo-comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.soxo-comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-avatar img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    margin-bottom: 5px;
}

.comment-author {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.comment-text {
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
}

.like-btn, .reply-btn {
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.like-btn:hover, .reply-btn:hover {
    color: #e74c3c;
}

.comment-time {
    color: #999;
}

/* Emoji Picker */
.emoji-picker-popup {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.emoji-option {
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
    font-size: 18px;
    transition: background 0.2s ease;
}

.emoji-option:hover {
    background: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .soxo-prediction-form {
        margin: 10px;
        max-width: none;
    }
    
    .soxo-form-group {
        padding: 0 15px;
    }
    
    .soxo-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .soxo-dan-input {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    .soxo-dan-input input {
        font-size: 12px;
        padding: 4px;
    }
    
    .soxo-buttons {
        padding: 0 15px;
        text-align: center;
    }
    
    .soxo-submit-btn,
    .soxo-discuss-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
    
    .soxo-leaderboard,
    .soxo-statistics,
    .soxo-experts,
    .soxo-comments {
        margin: 10px;
        padding: 15px;
    }
    
    .soxo-leaderboard-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
    }
    
    .soxo-leaderboard-table {
        font-size: 12px;
    }
    
    .soxo-leaderboard-table th,
    .soxo-leaderboard-table td {
        padding: 8px 4px;
    }
    
    .soxo-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .soxo-expert-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .expert-rank {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .expert-details {
        justify-content: center;
    }
    
    .soxo-date-picker {
        flex-direction: column;
        align-items: stretch;
    }
    
    .soxo-date-picker input[type="date"],
    .soxo-date-picker button {
        width: 100%;
    }
}

/* Loading Animation */
.soxo-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: soxo-spin 1s linear infinite;
}

@keyframes soxo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.soxo-message {
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 4px;
    font-weight: 500;
}

.soxo-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.soxo-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Results Display Styles */
.soxo-results {
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.soxo-results h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.soxo-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.soxo-result-item {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    transition: transform 0.3s ease;
}

.soxo-result-item:hover {
    transform: translateY(-2px);
}

.soxo-result-item.special {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    grid-column: 1 / -1;
    font-size: 1.2em;
}

.result-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

.result-number {
    font-size: 18px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.soxo-result-summary {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.summary-item {
    text-align: center;
}

.summary-item .label {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.summary-item .value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
}

.soxo-no-result {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-size: 16px;
}

/* History Styles */
.soxo-history {
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.soxo-history h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #9b59b6;
    padding-bottom: 10px;
}

.soxo-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.soxo-history-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #9b59b6;
    transition: all 0.3s ease;
}

.soxo-history-item:hover {
    background: #e8f4f8;
    transform: translateX(5px);
}

.history-date {
    min-width: 100px;
    font-weight: 600;
    color: #2c3e50;
    margin-right: 20px;
}

.history-results {
    display: flex;
    gap: 20px;
    flex: 1;
}

.history-special,
.history-lo,
.history-de {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-special .label,
.history-lo .label,
.history-de .label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

.history-special .number,
.history-de .number {
    font-weight: bold;
    color: #e74c3c;
    font-family: 'Courier New', monospace;
}

.history-lo .numbers {
    font-weight: 500;
    color: #3498db;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.soxo-no-history {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-size: 16px;
}

/* Custom Scrollbar */
.soxo-leaderboard-tabs::-webkit-scrollbar {
    height: 4px;
}

.soxo-leaderboard-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.soxo-leaderboard-tabs::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 2px;
}

.soxo-leaderboard-tabs::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}
