/* Custom CSS for Tipster Pro */

/* Ensure ALL plan header backgrounds work */
.card-header.bg-free {
    background: linear-gradient(135deg, #770277, #ebe705) !important;
}
.card-header.bg-silver {
    background: linear-gradient(135deg, #91a5e7, #a9a9a9) !important;
}
.card-header.bg-gold {
    background: linear-gradient(135deg, #ffd700, #daa520) !important;
}
.card-header.bg-platinum {
    background: linear-gradient(135deg, #e5e4e2, #b5b1af) !important;
}
.card-header.bg-sportpesa_jp {
    background: linear-gradient(135deg, #28a745, #218838) !important;
}
.card-header.bg-sportpesa_mjp {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
}
.card-header.bg-betika_jp {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

/* Ensure ALL button styles work with higher specificity */
.btn.btn-free {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    border: none !important;
    color: #fff !important;
}
.btn.btn-free:hover,
.btn.btn-free:focus {
    background: linear-gradient(135deg, #5a6268, #495057) !important;
    color: #fff !important;
    border: none !important;
}

.btn.btn-silver {
    background: linear-gradient(135deg, #c0c0c0, #a9a9a9) !important;
    border: none !important;
    color: #000 !important;
}
.btn.btn-silver:hover,
.btn.btn-silver:focus {
    background: linear-gradient(135deg, #a9a9a9, #909090) !important;
    color: #000 !important;
    border: none !important;
}

.btn.btn-gold {
    background: linear-gradient(135deg, #ffd700, #daa520) !important;
    border: none !important;
    color: #000 !important;
}
.btn.btn-gold:hover,
.btn.btn-gold:focus {
    background: linear-gradient(135deg, #daa520, #b8860b) !important;
    color: #000 !important;
    border: none !important;
}

.btn.btn-platinum {
    background: linear-gradient(135deg, #e5e4e2, #b5b1af) !important;
    border: none !important;
    color: #000 !important;
}
.btn.btn-platinum:hover,
.btn.btn-platinum:focus {
    background: linear-gradient(135deg, #b5b1af, #9a9693) !important;
    color: #000 !important;
    border: none !important;
}

.btn.btn-sportpesa_jp {
    background: linear-gradient(135deg, #28a745, #218838) !important;
    border: none !important;
    color: #fff !important;
}
.btn.btn-sportpesa_jp:hover,
.btn.btn-sportpesa_jp:focus {
    background: linear-gradient(135deg, #218838, #1e7e34) !important;
    color: #fff !important;
    border: none !important;
}

.btn.btn-sportpesa_mjp {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    border: none !important;
    color: #fff !important;
}
.btn.btn-sportpesa_mjp:hover,
.btn.btn-sportpesa_mjp:focus {
    background: linear-gradient(135deg, #138496, #117a8b) !important;
    color: #fff !important;
    border: none !important;
}

.btn.btn-betika_jp {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border: none !important;
    color: #fff !important;
}
.btn.btn-betika_jp:hover,
.btn.btn-betika_p:focus {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    color: #fff !important;
    border: none !important;
}

/* Badge colors */
.badge.bg-free {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    color: #fff !important;
    border: none !important;
}
.badge.bg-silver {
    background: linear-gradient(135deg, #c0c0c0, #a9a9a9) !important;
    color: #000 !important;
    border: none !important;
}
.badge.bg-gold {
    background: linear-gradient(135deg, #ffd700, #daa520) !important;
    color: #000 !important;
    border: none !important;
}
.badge.bg-platinum {
    background: linear-gradient(135deg, #e5e4e2, #b5b1af) !important;
    color: #000 !important;
    border: none !important;
}
.badge.bg-sportpesa-jp {
    background: linear-gradient(135deg, #28a745, #218838) !important;
    color: #fff !important;
    border: none !important;
}
.badge.bg-sportpesa-mjp {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    color: #fff !important;
    border: none !important;
}
.badge.bg-betika-jp {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: #fff !important;
    border: none !important;
}

/* Header styling */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #FF5C00 !important;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Card hover effects */
.plan-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Table styles for tips */
.tips-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.tips-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Result status styles */
.result-won {
    color: #198754;
    font-weight: bold;
}

.result-lost {
    color: #dc3545;
    font-weight: bold;
}

.result-pending {
    color: #6c757d;
    font-weight: bold;
}

/* Tab styles */
.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    border: none;
    padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: #007bff;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    font-weight: 600;
    border-bottom: 3px solid #007bff;
    background: transparent;
}

/* Carousel adjustments */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-size: 60%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: #6c757d;
}

.carousel-indicators button.active {
    background-color: #007bff;
}

/* Alert customizations */
.alert-info {
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    border-left: 4px solid #ffc107;
}

.alert-success {
    border-left: 4px solid #28a745;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .plan-card .card-header h3 {
        font-size: 1.5rem;
    }
    
    .plan-card .card-header h4 {
        font-size: 1.25rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .plan-card {
        margin-bottom: 1.5rem;
    }
    
    .card-header {
        padding: 1rem !important;
    }
    
    .card-header h3 {
        font-size: 1.25rem !important;
    }
    
    .card-header h4 {
        font-size: 1.1rem !important;
    }
}

/* Additional utility classes for plan-specific text colors */
.text-free { color: #6c757d !important; }
.text-silver { color: #c0c0c0 !important; }
.text-gold { color: #ffd700 !important; }
.text-platinum { color: #e5e4e2 !important; }
.text-sportpesa-jp { color: #28a745 !important; }
.text-sportpesa-mjp { color: #17a2b8 !important; }
.text-betika-jp { color: #dc3545 !important; }

/* Border colors for plan elements */
.border-free { border-color: #6c757d !important; }
.border-silver { border-color: #c0c0c0 !important; }
.border-gold { border-color: #ffd700 !important; }
.border-platinum { border-color: #e5e4e2 !important; }
.border-sportpesa-jp { border-color: #28a745 !important; }
.border-sportpesa-mjp { border-color: #17a2b8 !important; }
.border-betika-jp { border-color: #dc3545 !important; }

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    .carousel-controls,
    .nav-tabs {
        display: none !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
}