/* ============================================
   ACCOUNT COMMON - Shared Premium Styles
   Styles partages pour toutes les pages Account
   ============================================ */

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header-premium {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 24px;
}

.page-header-premium__left {
    flex: 1;
}

.page-header-premium__title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 8px 0 4px;
    line-height: 1.2;
}

.page-header-premium__subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

.page-header-premium__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .page-header-premium {
        flex-direction: column;
        gap: 16px;
    }

    .page-header-premium__actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-premium {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-premium__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-premium__item:hover {
    color: #7c3aed;
}

.breadcrumb-premium__item--current {
    color: #111827;
    font-weight: 500;
}

.breadcrumb-premium__separator {
    color: #d1d5db;
}

.breadcrumb-premium__separator svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-premium-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.btn-premium-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
    color: #ffffff;
}

.btn-premium-primary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-premium-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-premium-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.btn-premium-secondary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================
   TABLE PREMIUM
   ============================================ */
.table-container-premium {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.table-premium {
    width: 100%;
    border-collapse: collapse;
}

.table-premium thead {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.table-premium__th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-premium__th--center {
    text-align: center;
}

.table-premium__th--right {
    text-align: right;
}

.table-premium__row {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
}

.table-premium__row:hover {
    background: #faf5ff;
}

.table-premium__row:last-child {
    border-bottom: none;
}

.table-premium__td {
    padding: 16px;
    vertical-align: middle;
}

.table-premium__td--center {
    text-align: center;
}

.table-premium__td--right {
    text-align: right;
}

/* ============================================
   SECTION CARD
   ============================================ */
.section-card-premium {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.section-card-premium__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.section-card-premium__title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-card-premium__title-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
}

.section-card-premium__title-icon svg {
    width: 20px;
    height: 20px;
}

.section-card-premium__title-text {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.section-card-premium__body {
    padding: 24px;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-premium svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.badge-premium--success {
    background: #d1fae5;
    color: #059669;
}

.badge-premium--warning {
    background: #fef3c7;
    color: #d97706;
}

.badge-premium--danger {
    background: #fee2e2;
    color: #dc2626;
}

.badge-premium--info {
    background: #dbeafe;
    color: #2563eb;
}

.badge-premium--purple {
    background: #ede9fe;
    color: #7c3aed;
}

.badge-premium--neutral {
    background: #f3f4f6;
    color: #6b7280;
}

/* ============================================
   ACTION BUTTONS (Table)
   ============================================ */
.action-btn-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.action-btn-premium svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.action-btn-premium:hover {
    background: #f3f4f6;
    color: #7c3aed;
}

.action-btn-premium--view:hover {
    background: #dbeafe;
    color: #2563eb;
}

.action-btn-premium--edit:hover {
    background: #d1fae5;
    color: #059669;
}

.action-btn-premium--delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
}

.empty-state-premium__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.empty-state-premium__icon svg {
    width: 40px;
    height: 40px;
    color: #9ca3af;
}

.empty-state-premium__title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.empty-state-premium__text {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px;
    max-width: 400px;
}

/* ============================================
   TOOLBAR / SEARCH
   ============================================ */
.toolbar-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toolbar-premium__left {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.toolbar-premium__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box-premium {
    position: relative;
}

.search-box-premium__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 18px;
    height: 18px;
}

.search-box-premium__input {
    width: 100%;
    padding: 10px 14px 10px 44px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 14px;
    color: #111827;
    transition: all 0.2s ease;
}

.search-box-premium__input:focus {
    background: #ffffff;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
    outline: none;
}

.search-box-premium__input::placeholder {
    color: #9ca3af;
}

/* ============================================
   FILTER TABS
   ============================================ */
.filter-tabs-premium {
    display: flex;
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 4px;
}

.filter-tab-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-tab-premium:hover {
    color: #374151;
}

.filter-tab-premium.active {
    background: #ffffff;
    color: #7c3aed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-tab-premium__count {
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    background: #e5e7eb;
    border-radius: 9999px;
}

.filter-tab-premium.active .filter-tab-premium__count {
    background: #ede9fe;
    color: #7c3aed;
}

/* ============================================
   INFO CARDS (Sidebar)
   ============================================ */
.info-card-premium {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 20px;
}

.info-card-premium__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.info-card-premium__icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card-premium__icon svg {
    width: 20px;
    height: 20px;
}

.info-card-premium__icon--purple {
    background: #ede9fe;
    color: #7c3aed;
}

.info-card-premium__icon--green {
    background: #d1fae5;
    color: #059669;
}

.info-card-premium__icon--blue {
    background: #dbeafe;
    color: #2563eb;
}

.info-card-premium__title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.info-card-premium__content {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.info-card-premium__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card-premium__list li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-card-premium__list li:last-child {
    border-bottom: none;
}

.info-card-premium__list a {
    color: #7c3aed;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.info-card-premium__list a:hover {
    color: #6d28d9;
}

/* ============================================
   PRIORITY BADGES
   ============================================ */
.priority-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
}

.priority-badge-premium--critical {
    background: #fee2e2;
    color: #dc2626;
}

.priority-badge-premium--high {
    background: #ffedd5;
    color: #ea580c;
}

.priority-badge-premium--medium {
    background: #fef3c7;
    color: #d97706;
}

.priority-badge-premium--low {
    background: #dbeafe;
    color: #2563eb;
}

/* ============================================
   GRID LAYOUT
   ============================================ */
.grid-premium {
    display: grid;
    gap: 24px;
}

.grid-premium--2-1 {
    grid-template-columns: 2fr 1fr;
}

.grid-premium--3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .grid-premium--2-1,
    .grid-premium--3 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp-premium {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp-premium 0.4s ease-out both;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .animate-fadeInUp,
    .btn-premium-primary,
    .btn-premium-secondary,
    .action-btn-premium {
        animation: none;
        transition: none;
    }
}
