/* prediksi.css - Styles for the prediction page */

/* Prediction number styles */
.prediction-number {
    background: linear-gradient(135deg, #3498db, #1a5276);
    color: white;
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.prediction-number:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.prediction-number-4d {
    background: linear-gradient(135deg, #e74c3c, #922b21);
    color: white;
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1.4rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.prediction-number-4d:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 5D Prediction number styles */
.prediction-number-5d {
    background: linear-gradient(135deg, #f39c12, #d35400);
    color: white;
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: all 0.3s;
    letter-spacing: 2px;
}

.prediction-number-5d:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Hot number styles */
.hot-number {
    position: relative;
    background: linear-gradient(135deg, #f39c12, #d35400);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.hot-number:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hot-digit {
    font-size: 1.5rem;
    font-weight: bold;
}

.hot-count {
    position: absolute;
    bottom: -18px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    color: #333;
    font-weight: bold;
}

/* Pattern analysis styles */
.pattern-analysis h6 {
    margin-bottom: 10px;
    font-weight: 600;
}

.pattern-explanation ul {
    padding-left: 20px;
}

/* Market schedule styles */
.market-schedule {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.schedule-item {
    padding: 8px 0;
    border-bottom: 1px dashed #dee2e6;
}

.schedule-item:last-child {
    border-bottom: none;
}

/* Stats item styles */
.stats-item {
    padding: 8px 0;
    border-bottom: 1px dashed #dee2e6;
}

.stats-item:last-child {
    border-bottom: none;
    margin-bottom: 15px;
}

/* Market logo styles */
.market-logo {
    padding: 10px 0;
}

.flag-container {
    display: inline-block;
    width: 60px;
    height: 40px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Card styling */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-header {
    font-weight: 600;
    padding: 12px 20px;
}

/* Prediction Calculator Styles */
.calculator-bb-container,
.calculator-colok-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.calculator-bb-number {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.calculator-colok-number {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.calculator-bb-number:hover,
.calculator-colok-number:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.calculator-predictions-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.calculator-predictions-table th,
.calculator-predictions-table td {
    vertical-align: middle;
}

.calculator-pred-number {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
}

/* Calculator 5D prediction number styles */
.calculator-pred-number-5d {
    background: linear-gradient(135deg, #f39c12, #d35400);
    color: white;
    border-radius: 6px;
    padding: 6px 8px;
    text-align: center;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: inline-block;
    margin: 2px;
    letter-spacing: 1px;
    min-width: 45px;
}

.calculator-pred-number-5d:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Hourly prediction styles */
.hourly-prediction-set {
    border-left: 4px solid #17a2b8;
    padding-left: 15px;
    margin-bottom: 15px;
}

.hourly-pred-number {
    background: linear-gradient(135deg, #17a2b8, #0c5460);
    color: white;
    border-radius: 6px;
    padding: 5px 8px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: inline-block;
    margin: 2px;
}

.hourly-pred-number:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Market status styles */
.market-status-open {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: white;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    animation: pulse-green 2s infinite;
}

.market-status-closed {
    background: linear-gradient(135deg, #e74c3c, #922b21);
    color: white;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(39, 174, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Market type badges */
.market-type-5d {
    background: linear-gradient(135deg, #f39c12, #d35400);
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.market-type-hourly {
    background: linear-gradient(135deg, #17a2b8, #0c5460);
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.market-type-special {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Market closed notice styles */
.market-closed-notice {
    background: linear-gradient(135deg, #e74c3c, #922b21);
    color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    animation: pulse-red 3s infinite;
}

.market-closed-notice .fa-times-circle {
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 50%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-5deg); }
    20%, 40% { transform: rotate(5deg); }
}

/* General predictions page styles */
.feature-box {
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
    height: 100%;
}

.feature-box:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.feature-box i {
    margin-bottom: 10px;
}

.feature-box h5 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature-box p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.market-grid {
    max-width: 800px;
    margin: 0 auto;
}

.market-grid .btn {
    margin: 2px;
    font-size: 0.85rem;
    padding: 6px 12px;
}

.market-grid .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .prediction-number, .prediction-number-4d {
        font-size: 1rem;
        padding: 8px 4px;
    }
    
    .hot-number {
        width: 40px;
        height: 40px;
    }
    
    .hot-digit {
        font-size: 1.2rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}

/* Responsive adjustments for calculator */
@media (max-width: 576px) {
    .calculator-pred-number {
        font-size: 0.8rem;
        padding: 2px 5px;
    }
    
    .calculator-bb-number,
    .calculator-colok-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}

/* Animation for number boxes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.prediction-number-4d {
    animation: pulse 2s infinite;
}
