/* Yohshow Stripe Cards Management Styles */

.stripe-cards-manager {
    max-width: 800px;
    margin: 0 auto;
}

.cards-list .card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.cards-list .card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.cards-list .card.border-primary {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.card-title {
    color: #495057;
    font-weight: 600;
}

.badge-primary {
    background-color: #007bff;
    font-size: 0.75rem;
}

.dropdown-toggle {
    border: none;
    background: transparent;
    color: #6c757d;
}

.dropdown-toggle:hover {
    color: #495057;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.text-danger:hover {
    background-color: #f8d7da;
    color: #721c24;
}

.add-card-form .card {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.add-card-form .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6c757d;
    cursor: pointer;
}

.btn-close:hover {
    color: #495057;
}

#stripe-add-card-element {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.75rem;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#stripe-add-card-element:focus-within {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#stripe-add-card-errors {
    font-size: 0.875rem;
    min-height: 1.2rem;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.text-muted {
    color: #6c757d !important;
}

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.p-4 { padding: 1.5rem !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .cards-list .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .dropdown-menu {
        min-width: 150px;
    }
}

/* Font Awesome fallbacks */
.fas {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.fa-credit-card:before { content: "\f09d"; }
.fa-star:before { content: "\f005"; }
.fa-ellipsis-v:before { content: "\f142"; }
.fa-trash:before { content: "\f2ed"; }
.fa-plus:before { content: "\f067"; }
.fa-save:before { content: "\f0c7"; }

/* Alert styles */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-dismissible {
    position: relative;
    padding-right: 4rem;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    color: inherit;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.alert-dismissible .close:hover {
    opacity: 0.75;
}
