/* Affiliate Dashboard Styles */
.affiliate-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #333;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #fff;
}

.affiliate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
}

.affiliate-card .card-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-bottom: 1px solid #444;
    border-radius: 12px 12px 0 0;
}

.affiliate-card .card-body {
    padding: 1.5rem;
}

/* Performance Cards */
.stat-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ff6b35);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.stat-icon {
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

/* Time Display */
.current-time {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 10px;
    border: 1px solid #444;
}

.time-display {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    font-family: 'Courier New', monospace;
}

.date-display {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 0.5rem;
}

/* Referral Table */
.table-dark {
    background-color: #1a1a1a;
    color: #fff;
}

.table-dark th {
    border-color: #444;
    background-color: #2d2d2d;
}

.table-dark td {
    border-color: #333;
}

.customer-info strong {
    color: #ffd700;
}

.contact-info {
    font-size: 0.85rem;
}

.contact-info i {
    color: #ffd700;
    width: 16px;
}

/* Commission Tracker */
.commission-summary {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.commission-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #333;
}

.commission-item:last-child {
    border-bottom: none;
}

.commission-chart {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Performance Metrics */
.performance-metrics {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 10px;
    padding: 1.5rem;
}

.metric-item {
    margin-bottom: 1.5rem;
}

.metric-item:last-child {
    margin-bottom: 0;
}

.metric-label {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.progress {
    height: 8px;
    background-color: #333;
    border-radius: 4px;
}

.progress-bar {
    border-radius: 4px;
}

/* Payout History */
.payout-history {
    max-height: 300px;
    overflow-y: auto;
}

.payout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 8px;
    border: 1px solid #333;
}

.payout-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #28a745;
}

.payout-date {
    font-size: 0.85rem;
    color: #ccc;
}

.payout-method {
    text-align: right;
}

/* Resource List */
.resource-list {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 10px;
    padding: 1.5rem;
}

.resource-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.resource-item:hover {
    border-color: #ffd700;
    transform: translateX(5px);
}

.resource-item:last-child {
    margin-bottom: 0;
}

.resource-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.resource-info {
    flex: 1;
}

.resource-title {
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 0.25rem;
}

/* Modal Styles */
.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 1px solid #444;
    color: #fff;
}

.modal-header {
    border-bottom: 1px solid #444;
}

.modal-footer {
    border-top: 1px solid #444;
}

.form-control {
    background-color: #2d2d2d;
    border: 1px solid #444;
    color: #fff;
}

.form-control:focus {
    background-color: #2d2d2d;
    border-color: #ffd700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
    color: #fff;
}

.form-select {
    background-color: #2d2d2d;
    border: 1px solid #444;
    color: #fff;
}

.form-select:focus {
    background-color: #2d2d2d;
    border-color: #ffd700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
    color: #fff;
}

/* Asset Grid */
.asset-grid {
    display: grid;
    gap: 1rem;
}

.asset-item {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.asset-item:hover {
    border-color: #ffd700;
    transform: translateY(-2px);
}

.asset-preview {
    height: 100px;
    background: #1a1a1a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid #333;
}

.asset-preview img {
    max-width: 100%;
    max-height: 100%;
}

.banner-preview {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 0.8rem;
    text-align: center;
}

.business-card-preview {
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, #1a1a1a, #ffd700);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    text-align: center;
}

.asset-info h6 {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.asset-info p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Training Modules */
.training-modules {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 10px;
    padding: 1.5rem;
}

.training-module {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.training-module:hover {
    border-color: #ffd700;
    transform: translateX(5px);
}

.training-module:last-child {
    margin-bottom: 0;
}

.module-icon {
    margin-right: 1.5rem;
    font-size: 2rem;
}

.module-info {
    flex: 1;
}

.module-info h6 {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.module-info p {
    margin-bottom: 0.5rem;
}

.progress-overview {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 10px;
    padding: 1.5rem;
}

.progress-item {
    margin-bottom: 1rem;
}

.progress-label {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .time-display {
        font-size: 1.5rem;
    }
    
    .current-time {
        padding: 0.75rem;
    }
    
    .affiliate-card .card-body {
        padding: 1rem;
    }
    
    .resource-item {
        flex-direction: column;
        text-align: center;
    }
    
    .resource-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .training-module {
        flex-direction: column;
        text-align: center;
    }
    
    .module-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .payout-item {
        flex-direction: column;
        text-align: center;
    }
    
    .payout-method {
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* Animation for loading states */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Badge styles */
.badge {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

/* Button enhancements */
.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    border: none;
    color: #1a1a1a;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff6b35, #ffd700);
    color: #1a1a1a;
}

.btn-outline-primary {
    border-color: #ffd700;
    color: #ffd700;
}

.btn-outline-primary:hover {
    background-color: #ffd700;
    color: #1a1a1a;
}

/* Alert styles */
.alert {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
}

.alert-info {
    border-left: 4px solid #17a2b8;
}

.alert-success {
    border-left: 4px solid #28a745;
}

.alert-warning {
    border-left: 4px solid #ffc107;
}

.alert-danger {
    border-left: 4px solid #dc3545;
}