/* css/cartes.css - Cartes Bancaires & Plafonds Styles */

/* Tabs inside main pane */
.sub-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.sub-tab {
    padding: 10px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition-smooth);
}
.sub-tab.active {
    color: var(--text-main);
    font-weight: 600;
}
.sub-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-green);
}

/* Credit Card Mock */
.credit-card-mock {
    width: 280px;
    height: 175px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1E3A5F, #2D5F8F);
    color: white;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.credit-card-mock:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.cc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.cc-chip {
    width: 35px;
    height: 25px;
    background: #d4af37;
    border-radius: 4px;
}
.cc-menu {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: white;
    padding: 0 5px;
}

.cc-number {
    font-size: 18px;
    letter-spacing: 2px;
    text-align: center;
    margin: 10px 0;
    font-family: monospace;
}

.cc-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.cc-info {
    font-size: 10px;
    text-transform: uppercase;
}
.cc-name {
    font-size: 14px;
    font-weight: bold;
    margin-top: 2px;
}
.cc-visa {
    font-size: 24px;
    font-weight: 900;
    font-style: italic;
}

/* Badge Carte */
.badge-carte {
    background: var(--color-green);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 9px;
    display: inline-block;
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: auto;
}

/* Dropdown Menu inside card */
.dropdown-menu-3dots {
    position: absolute;
    top: 35px;
    right: 15px;
    background: white;
    border: 1px solid var(--border-color);
    color: #333;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 10;
    min-width: 160px;
}
.dropdown-menu-3dots.show {
    display: flex;
}
.dropdown-menu-3dots a {
    padding: 10px 15px;
    font-size: 12px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}
.dropdown-menu-3dots a:hover {
    background: #f0f0f0;
}
