/* Components CSS - Reusable component styles */

/* Notification Styles */
.notification-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    max-width: 400px;
}

.notification {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInLeft 0.3s ease;
}

.notification.success {
    background: var(--success-color);
    color: white;
}

.notification.error {
    background: var(--danger-color);
    color: white;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Progress Tracker */
.progress-tracker {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.progress-step {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
    font-weight: bold;
    z-index: 2;
}

.step-incomplete {
    background: #e2e8f0;
    color: #64748b;
}

.step-complete {
    background: var(--success-color);
    color: white;
}

.step-current {
    background: var(--primary-cyan);
    color: var(--universe-dark);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.step-complete .step-label {
    color: var(--success-color);
}

.step-current .step-label {
    color: var(--primary-cyan);
    font-weight: 600;
}

.progress-connector {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 1rem;
}

.progress-connector.complete {
    background: var(--success-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--primary-bg);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-cyan);
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-cyan);
    color: var(--universe-dark);
}

.btn-primary:hover {
    background: #00d4e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-cyan);
    border: 2px solid var(--primary-cyan);
}

.btn-secondary:hover {
    background: var(--primary-cyan);
    color: var(--universe-dark);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #0da75c;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.status-active {
    background: #dbeafe;
    color: #1e40af;
}

.status-processing {
    background: #e0e7ff;
    color: #3730a3;
}

.status-completed {
    background: #dcfce7;
    color: #166534;
}

.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Search Results */
.search-results {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 0.5rem;
    background: white;
}

.search-result-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: var(--secondary-bg);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* No Data State */
.no-data {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.no-data i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Grid Layouts */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-cyan);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--universe-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--stripe-text-light);
    font-size: 0.9rem;
}

/* License Info Display */
.license-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: var(--stripe-text-light);
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 500;
    color: var(--universe-dark);
}

/* Selected Product Display */
.selected-product {
    background: var(--primary-cyan);
    color: var(--universe-dark);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 600;
    text-align: center;
}

/* Progress Tracker Mini */
.progress-tracker-mini {
    display: flex;
    gap: 4px;
    margin: 1rem 0;
}

.progress-step-mini {
    width: 20px;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
}

.progress-step-mini.step-complete {
    background: var(--success-color);
}

.progress-step-mini.step-incomplete {
    background: #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .license-info {
        grid-template-columns: 1fr;
    }
    
    .progress-tracker {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-connector {
        display: none;
    }
    
    .notification-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}