/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #4B086D, #ACC04E);
    min-height: 100vh;
    color: #333;
}

.gradient-bg {
    background: linear-gradient(to bottom, #4B086D, #ACC04E);
    min-height: 100vh;
}

.gradient-header {
    background: linear-gradient(to bottom, #4B086D, #ACC04E);
    color: white;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Cards */
.custom-card {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn-primary-custom {
    background-color: #4B086D;
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: #3a0655;
    transform: scale(1.05);
}

.btn-white-custom {
    background-color: white;
    color: #4B086D;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #4B086D;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 5px 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.bottom-nav-item.active {
    color: white;
}

.bottom-nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.bottom-nav-item span {
    font-size: 12px;
}

/* Main Content Area */
.main-content {
    padding: 20px;
    padding-bottom: 80px;
}

/* Video Player */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* List Items */
.list-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.list-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

/* Wallet Card */
.wallet-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.wallet-balance {
    font-size: 36px;
    font-weight: bold;
    color: #4B086D;
}

/* Transaction Item */
.transaction-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    border-left: 4px solid #4B086D;
}

/* Referral Card */
.referral-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.referral-level {
    display: inline-block;
    background: #4B086D;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

/* Profile Picture */
.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

/* Alert Boxes */
.alert-custom {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
}

.modal-header {
    background: linear-gradient(to right, #4B086D, #ACC04E);
    color: white;
    border-radius: 15px 15px 0 0;
}

/* Form Styles */
.form-control:focus {
    border-color: #4B086D;
    box-shadow: 0 0 0 0.2rem rgba(75, 8, 109, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    
    .wallet-balance {
        font-size: 28px;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Payment Pending View */
.payment-status-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: white;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    color: white;
}

.feature-item i {
    font-size: 30px;
    margin-bottom: 10px;
}

/* Student Record Card */
.student-record-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.student-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* Milestone Badge */
.milestone-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    margin: 5px;
}

.milestone-completed {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

/* No Data Message */
.no-data {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
}

.no-data i {
    font-size: 60px;
    margin-bottom: 20px;
}