/* Coupon System Styles */
.coupon-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.coupon-header h4 {
    margin: 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

.coupon-input-group {
    margin-top: 1rem;
}

.coupon-input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.coupon-input-wrapper input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.coupon-status {
    font-size: 0.85rem;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.coupon-status.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.coupon-status.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.coupon-status.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.promotion-banner {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
}

.promotion-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.promotion-icon {
    font-size: 2rem;
    color: #fbbf24;
}

.promotion-text h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.promotion-text p {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.promotion-text small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.coupon-summary {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
}

.coupon-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.coupon-label {
    color: #374151;
    font-weight: 500;
}

.coupon-code {
    background: #0ea5e9;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.coupon-discount {
    color: #059669;
    font-weight: 600;
}

/* Admin Dashboard Coupon Styles */
.special-coupon-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.special-coupon-card .coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.special-coupon-card h3 {
    margin: 0;
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
}

.coupon-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.active {
    background: #10b981;
}

.status-dot.coming-soon {
    background: #f59e0b;
}

.status-dot.inactive {
    background: #6b7280;
}

.coupon-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.coupon-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
}

.info-item label {
    font-weight: 500;
    color: #374151;
}

.coupon-code-display {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.9rem;
}

.credits-amount {
    color: #059669;
    font-weight: 600;
}

.validity {
    color: #6b7280;
    font-size: 0.9rem;
}

.usage-count {
    color: #7c3aed;
    font-weight: 500;
}

.coupon-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.control-group span {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

.coupon-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Teachers Day Popup Styles */
.teachers-day-modal {
    max-width: 600px;
    width: 90%;
}

.teachers-day-content {
    text-align: center;
}

.celebration-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.banner-icon {
    font-size: 3rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.banner-text h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.banner-text p {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.coupon-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.coupon-display .coupon-code {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.offer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    text-align: left;
}

.detail-item i {
    color: #3b82f6;
    font-size: 1.2rem;
    width: 20px;
}

.detail-text {
    flex: 1;
}

.detail-text strong {
    display: block;
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.detail-text span {
    color: #6b7280;
    font-size: 0.9rem;
}

.how-to-use {
    text-align: left;
    margin-bottom: 2rem;
}

.how-to-use h4 {
    color: #374151;
    margin-bottom: 1rem;
}

.how-to-use ol {
    padding-left: 1.5rem;
}

.how-to-use li {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.how-to-use strong {
    color: #374151;
}

.celebration-message {
    background: #fef3c7;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.celebration-message p {
    margin: 0 0 0.5rem 0;
    color: #92400e;
    font-style: italic;
}

.celebration-message p:last-child {
    margin-bottom: 0;
    font-weight: 500;
}

/* Free Credits Success UI */
.free-credits-success {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin: 1rem 0;
}

.success-header {
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

.success-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.success-subtitle {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.credits-reward {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.reward-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.reward-description {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.reward-note {
    background: rgba(16, 185, 129, 0.2);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
}

.reward-note i {
    color: #10b981;
    margin-right: 0.5rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.success-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: left;
}

.success-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.success-info i {
    color: #fbbf24;
    margin-right: 0.5rem;
    width: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .coupon-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .offer-details {
        grid-template-columns: 1fr;
    }
    
    .coupon-actions {
        flex-direction: column;
    }
    
    .promotion-content {
        flex-direction: column;
        text-align: center;
    }
    
    .coupon-display {
        flex-direction: column;
    }

    .free-credits-success {
        padding: 1.5rem;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .success-header h2 {
        font-size: 1.5rem;
    }
    
    .reward-amount {
        font-size: 2.5rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
}




