/* Unified UI Components CSS for BroadbandBazaar */

/* ==================== CURRENCY SYMBOLS ==================== */

.rupee-symbol {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
}

.rupee-symbol::before {
    content: '₹';
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.rupee {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
}

.rupee::before {
    content: '₹';
}

.rupee-alt {
    font-family: 'Arial Unicode MS', 'Lucida Grande', sans-serif;
}

.rupee-alt::before {
    content: '₹';
}

.rupee-fallback::before {
    content: 'Rs.';
    font-size: 0.8em;
}

/* ==================== PRICE DISPLAYS ==================== */

.price-display {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    color: #007bff;
}

.price-large {
    font-size: 1.5rem;
    font-weight: 700;
}

.price-medium {
    font-size: 1.25rem;
    font-weight: 600;
}

.price-small {
    font-size: 0.9rem;
    font-weight: 500;
}

.price-range {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ==================== CARDS ==================== */

.plan-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.plan-card .card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 1rem;
}

.plan-card .card-body {
    padding: 1.5rem;
}

.plan-card .card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem;
}

.review-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==================== BUTTONS ==================== */

.btn-custom {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary-custom {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: white;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
}

.btn-success-custom {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
    color: white;
}

.btn-success-custom:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    color: white;
}

.btn-warning-custom {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: none;
    color: #212529;
}

.btn-warning-custom:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    color: #212529;
}

.btn-danger-custom {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    color: white;
}

.btn-danger-custom:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    color: white;
}

/* ==================== BADGES ==================== */

.badge-custom {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

.badge-sm {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}

.badge-lg {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ==================== FORMS ==================== */

.form-control-custom {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-select-custom {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.form-select-custom:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ==================== ALERTS ==================== */

.alert-custom {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-success-custom {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger-custom {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning-custom {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info-custom {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* ==================== LOADING STATES ==================== */

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid #f3f3f3;
    border-top: 0.25rem solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== PAGINATION ==================== */

.pagination-custom .page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.pagination-custom .page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination-custom .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* ==================== EMPTY STATES ==================== */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    .plan-card {
        margin-bottom: 1rem;
    }
    
    .btn-custom {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .price-large {
        font-size: 1.25rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state i {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .plan-card .card-body {
        padding: 1rem;
    }
    
    .plan-card .card-footer {
        padding: 0.75rem;
    }
    
    .badge-custom {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ==================== UTILITY CLASSES ==================== */

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

.border-dashed {
    border-style: dashed !important;
}

.shadow-sm-custom {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-custom {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg-custom {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ==================== ANIMATIONS ==================== */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}
