/**
 * Be-Dev Manager - Public Styles 2026
 */

/* Variables */
:root {
    --bedev-primary: #0055a5;
    --bedev-primary-dark: #003d7a;
    --bedev-primary-light: #e8f4fd;
    --bedev-accent: #ff6b35;
    --bedev-success: #10b981;
    --bedev-warning: #f59e0b;
    --bedev-danger: #ef4444;
    --bedev-dark: #1a1a2e;
    --bedev-gray: #6b7280;
    --bedev-light: #f8fafc;
    --bedev-white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 16px;
    --transition: all 0.3s ease;
}

/* =============================================
   Dashboard Hero Section
============================================= */
.bedev-dashboard {
    background: var(--bedev-light);
    min-height: 100vh;
}

/* Header compact pour le dashboard */
.dashboard-header-compact {
    background: var(--bedev-white);
    border-bottom: 1px solid var(--bedev-gray-200);
    padding: 15px 20px;
    margin-bottom: 30px;
}

.dashboard-welcome {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.welcome-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bedev-dark);
}

.member-number {
    font-size: 0.875rem;
    color: var(--bedev-gray-600);
    background: var(--bedev-gray-100);
    padding: 4px 12px;
    border-radius: 12px;
}

/* =============================================
   Dashboard Container
============================================= */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* =============================================
   Status Highlight
============================================= */
.status-highlight {
    background: var(--bedev-white);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.status-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--bedev-primary), var(--bedev-accent));
}

.status-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    background: var(--bedev-primary-light);
}

.status-active .status-icon {
    background: #d1fae5;
    color: var(--bedev-success);
}

.status-expiring .status-icon {
    background: #fef3c7;
    color: var(--bedev-warning);
}

.status-expired .status-icon,
.status-none .status-icon {
    background: #fee2e2;
    color: var(--bedev-danger);
}

.status-content {
    flex: 1;
}

.status-content h3 {
    margin: 0 0 10px 0;
    color: var(--bedev-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-badge.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-expiring {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-expired,
.status-badge.status-none {
    background: #fee2e2;
    color: #991b1b;
}

.btn-renew {
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--bedev-accent) 0%, #e55a2b 100%);
    color: var(--bedev-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
}

.btn-renew:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.btn-renew:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* =============================================
   Dashboard Grid
============================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* =============================================
   Dashboard Cards
============================================= */
.dashboard-card {
    background: var(--bedev-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bedev-primary), var(--bedev-accent));
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.dashboard-card h3 {
    margin: 0 0 20px 0;
    color: var(--bedev-dark);
    font-size: 1.25rem;
    font-weight: 700;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--bedev-primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--bedev-accent);
    gap: 10px;
}

.card-link-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--bedev-primary);
    background: none;
    border: none;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 15px;
    transition: var(--transition);
    cursor: pointer;
    padding: 0;
}

.card-link-button:hover {
    color: var(--bedev-accent);
    gap: 10px;
}

/* =============================================
   All Invoices List
============================================= */
.all-invoices-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.invoice-row {
    display: grid;
    grid-template-columns: 1fr 150px 120px 100px;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: var(--bedev-light);
    border-radius: 8px;
    border-left: 4px solid var(--bedev-primary);
}

.invoice-row-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.invoice-row-amount {
    font-weight: 700;
    color: var(--bedev-primary-dark);
    font-size: 1.1rem;
    text-align: right;
}

.btn-view-invoice-small {
    padding: 8px 14px;
    background: var(--bedev-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-view-invoice-small:hover {
    background: var(--bedev-primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .invoice-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .invoice-row-amount {
        order: -1;
    }
}

/* =============================================
   Profile Info
============================================= */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.85rem;
    color: var(--bedev-gray);
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: var(--bedev-dark);
    font-weight: 600;
}

/* =============================================
   Meetings List
============================================= */
.meetings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.meeting-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bedev-light);
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
}

.meeting-item:hover {
    background: var(--bedev-primary-light);
}

.meeting-item.registered {
    background: #d1fae5;
}

.meeting-date {
    background: var(--bedev-primary);
    color: var(--bedev-white);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    min-width: 60px;
    flex-shrink: 0;
}

.meeting-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.meeting-date .month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 5px;
}

.meeting-info {
    flex: 1;
}

.meeting-info h4 {
    margin: 0 0 5px 0;
    color: var(--bedev-dark);
    font-size: 1rem;
    font-weight: 600;
}

.meeting-time {
    margin: 0;
    color: var(--bedev-gray);
    font-size: 0.85rem;
}

.badge-registered {
    background: var(--bedev-success);
    color: var(--bedev-white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* =============================================
   Invoices List
============================================= */
.invoices-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invoice-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 15px;
    background: var(--bedev-light);
    border-radius: 10px;
    transition: var(--transition);
    gap: 10px;
}

.invoice-item:hover {
    background: var(--bedev-primary-light);
}

.invoice-item.invoice-preview {
    flex-direction: column;
}

.invoice-header-preview {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.invoice-amount {
    font-weight: 700;
    color: var(--bedev-primary-dark);
    font-size: 1.2rem;
    margin: 5px 0;
}

.btn-view-invoice {
    padding: 10px 16px;
    background: var(--bedev-primary);
    color: var(--bedev-white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
}

.btn-view-invoice:hover {
    background: var(--bedev-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 85, 165, 0.3);
}

.invoice-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.invoice-number {
    font-weight: 600;
    color: var(--bedev-primary);
    font-size: 0.9rem;
}

.invoice-date {
    font-size: 0.8rem;
    color: var(--bedev-gray);
}

.invoice-status {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.invoice-status.status-payee {
    background: #d1fae5;
    color: #065f46;
}

.invoice-status.status-en_attente {
    background: #fef3c7;
    color: #92400e;
}

.invoice-status.status-annulee {
    background: #fee2e2;
    color: #991b1b;
}

/* =============================================
   Empty State
============================================= */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--bedev-gray);
}

.empty-state p {
    margin: 0;
    font-size: 0.95rem;
}

/* =============================================
   Responsive
============================================= */
@media (max-width: 768px) {
    .dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .welcome-text {
        font-size: 1rem;
    }

    .member-number {
        font-size: 0.8rem;
    }

    .status-highlight {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .status-highlight::before {
        width: 100%;
        height: 6px;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .meeting-item {
        flex-wrap: wrap;
    }

    .invoice-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-amount,
    .invoice-status {
        align-self: flex-end;
    }
    
    /* Meetings Page */
    .meetings-grid {
        grid-template-columns: 1fr;
    }
    
    .meeting-card .meeting-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .meeting-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .participants-count {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dashboard-card {
        padding: 20px;
    }

    .status-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .meeting-date {
        min-width: 50px;
        padding: 8px;
    }

    .meeting-date .day {
        font-size: 1.25rem;
    }
    
    .meeting-date-badge {
        padding: 8px 12px;
    }
    
    .meeting-date-badge .day {
        font-size: 1.5rem;
    }
}

/* =============================================
   Meetings Page
============================================= */
.bedev-meetings-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.empty-meetings {
    text-align: center;
    padding: 80px 20px;
    background: var(--bedev-light);
    border-radius: var(--radius);
}

.empty-meetings .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-meetings h3 {
    color: var(--bedev-dark);
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.empty-meetings p {
    color: var(--bedev-gray);
    margin: 0;
}

.meetings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.meeting-card {
    background: var(--bedev-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.meeting-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.meeting-card.is-registered {
    border: 2px solid var(--bedev-success);
}

.meeting-card.is-full {
    opacity: 0.8;
}

.meeting-card .meeting-header {
    background: linear-gradient(135deg, var(--bedev-primary), var(--bedev-primary-dark));
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meeting-date-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    color: var(--bedev-white);
}

.meeting-date-badge .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.meeting-date-badge .month {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-top: 5px;
    opacity: 0.9;
}

.status-badge {
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge.registered {
    background: var(--bedev-success);
    color: var(--bedev-white);
}

.status-badge.full {
    background: var(--bedev-warning);
    color: var(--bedev-dark);
}

.meeting-content {
    padding: 25px;
    flex: 1;
}

.meeting-title {
    margin: 0 0 15px 0;
    color: var(--bedev-dark);
    font-size: 1.35rem;
    font-weight: 700;
}

.meeting-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bedev-gray);
    font-size: 0.95rem;
}

.meta-item .icon {
    font-size: 1.1rem;
}

.meeting-description {
    color: var(--bedev-gray);
    line-height: 1.6;
    margin: 0;
}

.meeting-footer {
    padding: 20px 25px;
    background: var(--bedev-light);
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.participants-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bedev-gray);
    font-size: 0.9rem;
}

.participants-count .icon {
    font-size: 1.1rem;
}

.participants-count .count {
    font-weight: 600;
    color: var(--bedev-dark);
}

.meeting-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-register {
    background: linear-gradient(135deg, var(--bedev-primary), var(--bedev-primary-dark));
    color: var(--bedev-white);
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.4);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 85, 165, 0.5);
}

.btn-unregister {
    background: var(--bedev-white);
    color: var(--bedev-danger);
    border: 2px solid var(--bedev-danger);
}

.btn-unregister:hover {
    background: var(--bedev-danger);
    color: var(--bedev-white);
}

.btn-login {
    background: var(--bedev-accent);
    color: var(--bedev-white);
}

.btn-login:hover {
    background: #e55a2b;
}

.btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.bedev-member-info .info-value {
    font-weight: 500;
}

/* Subscription Status */
.bedev-subscription-status {
    text-align: center;
    padding: 20px;
}

.bedev-subscription-status .status-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.bedev-subscription-status .status-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.bedev-subscription-status .status-date {
    color: var(--bedev-gray);
    font-size: 14px;
}

.bedev-subscription-status.active .status-icon {
    color: var(--bedev-success);
}

.bedev-subscription-status.expiring .status-icon {
    color: var(--bedev-warning);
}

.bedev-subscription-status.expired .status-icon,
.bedev-subscription-status.none .status-icon {
    color: var(--bedev-danger);
}

/* Status Badges */
.bedev-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.bedev-badge-success {
    background: #d4edda;
    color: #155724;
}

.bedev-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.bedev-badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.bedev-badge-info {
    background: #e8f4fd;
    color: #0055a5;
}

.bedev-badge-secondary {
    background: #e2e8f0;
    color: #64748b;
}

/* =============================================
   Meetings List
============================================= */
.bedev-meetings-list {
    max-width: 900px;
    margin: 0 auto;
}

.bedev-meeting-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bedev-meeting-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.bedev-meeting-card .meeting-header {
    display: flex;
    align-items: stretch;
}

.bedev-meeting-card .meeting-date {
    background: var(--bedev-primary);
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    min-width: 80px;
}

.bedev-meeting-card .meeting-date .day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.bedev-meeting-card .meeting-date .month {
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 5px;
}

.bedev-meeting-card .meeting-info {
    flex: 1;
    padding: 15px 20px;
}

.bedev-meeting-card .meeting-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a2e;
}

.bedev-meeting-card .meeting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--bedev-gray);
    font-size: 14px;
}

.bedev-meeting-card .meeting-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bedev-meeting-card .meeting-description {
    padding: 0 20px 15px;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

.bedev-meeting-card .meeting-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bedev-light);
    border-top: 1px solid #eee;
}

.bedev-meeting-card .meeting-participants {
    font-size: 14px;
    color: var(--bedev-gray);
}

/* =============================================
   Registration Form
============================================= */
.bedev-registration-form {
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.bedev-registration-form h2 {
    text-align: center;
    color: var(--bedev-primary);
    margin-bottom: 30px;
}

.bedev-form-group {
    margin-bottom: 20px;
}

.bedev-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a1a2e;
}

.bedev-form-group label .required {
    color: var(--bedev-danger);
}

.bedev-form-group input,
.bedev-form-group select,
.bedev-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bedev-form-group input:focus,
.bedev-form-group select:focus,
.bedev-form-group textarea:focus {
    outline: none;
    border-color: var(--bedev-primary);
    box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.1);
}

.bedev-form-group .error-message {
    color: var(--bedev-danger);
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.bedev-form-group.has-error input,
.bedev-form-group.has-error select,
.bedev-form-group.has-error textarea {
    border-color: var(--bedev-danger);
}

.bedev-form-group.has-error .error-message {
    display: block;
}

.bedev-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Member Type Selection */
.bedev-member-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.bedev-member-type {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.bedev-member-type:hover {
    border-color: var(--bedev-primary);
}

.bedev-member-type.selected {
    border-color: var(--bedev-primary);
    background: rgba(0, 85, 165, 0.05);
}

.bedev-member-type input[type="radio"] {
    display: none;
}

.bedev-member-type .type-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.bedev-member-type .type-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--bedev-primary);
}

.bedev-member-type .type-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--bedev-gray);
}

.bedev-member-type .type-description {
    font-size: 13px;
    color: var(--bedev-gray);
    margin-top: 10px;
}

/* =============================================
   Buttons
============================================= */
.bedev-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.bedev-btn-primary {
    background: var(--bedev-primary);
    color: #fff;
}

.bedev-btn-primary:hover {
    background: var(--bedev-primary-dark);
}

.bedev-btn-accent {
    background: var(--bedev-accent);
    color: #fff;
}

.bedev-btn-accent:hover {
    background: #e55a2b;
}

.bedev-btn-outline {
    background: transparent;
    border: 2px solid var(--bedev-primary);
    color: var(--bedev-primary);
}

.bedev-btn-outline:hover {
    background: var(--bedev-primary);
    color: #fff;
}

.bedev-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.bedev-btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

.bedev-btn-block {
    width: 100%;
}

.bedev-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============================================
   Calendar
============================================= */
.bedev-calendar {
    max-width: 900px;
    margin: 0 auto;
}

.bedev-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bedev-calendar-nav {
    display: flex;
    gap: 10px;
}

.bedev-calendar-nav button {
    background: var(--bedev-light);
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.bedev-calendar-nav button:hover {
    background: #e2e8f0;
}

.bedev-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.bedev-calendar-day-header {
    text-align: center;
    padding: 10px;
    font-weight: 600;
    color: var(--bedev-gray);
    font-size: 12px;
    text-transform: uppercase;
}

.bedev-calendar-day {
    aspect-ratio: 1;
    padding: 5px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.bedev-calendar-day:hover {
    background: var(--bedev-light);
}

.bedev-calendar-day.today {
    background: var(--bedev-primary);
    color: #fff;
}

.bedev-calendar-day.has-meeting {
    position: relative;
}

.bedev-calendar-day.has-meeting::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--bedev-accent);
    border-radius: 50%;
}

.bedev-calendar-day.other-month {
    color: #cbd5e0;
}

/* =============================================
   Alerts & Messages
============================================= */
.bedev-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bedev-alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.bedev-alert-content {
    flex: 1;
}

.bedev-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bedev-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.bedev-alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bedev-alert-info {
    background: #e8f4fd;
    color: #0055a5;
    border: 1px solid #b8daff;
}

/* =============================================
   Invoices
============================================= */
.bedev-invoices-list {
    max-width: 900px;
    margin: 0 auto;
}

.bedev-invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.bedev-invoice-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bedev-invoice-number {
    font-weight: 600;
    color: var(--bedev-primary);
}

.bedev-invoice-date {
    color: var(--bedev-gray);
    font-size: 14px;
}

.bedev-invoice-amount {
    font-weight: 600;
    font-size: 18px;
}

/* =============================================
   Loading States
============================================= */
.bedev-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--bedev-gray);
}

.bedev-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bedev-light);
    border-top-color: var(--bedev-primary);
    border-radius: 50%;
    animation: bedev-spin 0.8s linear infinite;
}

@keyframes bedev-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   Empty States
============================================= */
.bedev-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--bedev-gray);
}

.bedev-empty-state .icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.bedev-empty-state p {
    margin: 0 0 20px 0;
}

/* =============================================
   Responsive
============================================= */
@media (max-width: 768px) {
    .bedev-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .bedev-form-row {
        grid-template-columns: 1fr;
    }

    .bedev-meeting-card .meeting-header {
        flex-direction: column;
    }

    .bedev-meeting-card .meeting-date {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-width: auto;
    }

    .bedev-meeting-card .meeting-date .day,
    .bedev-meeting-card .meeting-date .month {
        font-size: 16px;
        margin: 0;
    }

    .bedev-meeting-card .meeting-footer {
        flex-direction: column;
        gap: 10px;
    }

    .bedev-invoice-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .bedev-calendar-grid {
        gap: 2px;
    }

    .bedev-calendar-day {
        font-size: 12px;
    }
}

/* =============================================
   Modal Styles
============================================= */
.bedev-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.bedev-modal.show,
.bedev-modal.active {
    display: flex;
}

.bedev-modal-content {
    background: var(--bedev-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.3s ease;
}

.invoice-modal-large {
    max-width: 900px;
    max-height: 95vh;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bedev-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: none;
    background: linear-gradient(135deg, var(--bedev-primary) 0%, var(--bedev-primary-dark) 100%);
}

.bedev-modal-header h2,
.bedev-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--bedev-white);
}

/* Bouton close - style par défaut (footer, etc.) */
button.bedev-modal-close {
    background: #c1c1c1;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    color: white;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

button.bedev-modal-close:hover {
    background: #999;
}

/* Bouton close dans le header (fond bleu - priorité via spécificité) */
.bedev-modal-header button.bedev-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0;
    width: 36px;
    height: 36px;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bedev-modal-header button.bedev-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.bedev-modal-header button.bedev-modal-close:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Form Styles in Modal */
.bedev-form {
    padding: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--bedev-dark);
    font-size: 14px;
}

.form-control {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--bedev-primary);
    box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 14px;
}

.btn-primary {
    background: var(--bedev-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--bedev-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: #e5e7eb;
    color: var(--bedev-dark);
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-primary-sm {
    padding: 10px 20px;
    font-size: 13px;
    background: var(--bedev-primary);
    color: white;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
}

.btn-primary-sm:hover {
    background: var(--bedev-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .bedev-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }
}

/* =============================================
   Modal de sélection de type de cotisation
============================================= */

/* Note: Les styles de base pour .bedev-modal sont définis plus haut */

#subscription-types-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.subscription-type-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.subscription-type-item:hover {
    border-color: var(--bedev-primary);
    background-color: var(--bedev-primary-light);
}

.type-info {
    flex: 1;
}

.type-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--bedev-dark);
}

.type-info p {
    margin: 0;
    color: var(--bedev-gray);
    font-size: 14px;
}

.type-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-left: 20px;
}

.type-price .price {
    font-size: 24px;
    font-weight: bold;
    color: var(--bedev-primary);
}

.select-type {
    background: var(--bedev-primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.select-type:hover {
    background: var(--bedev-primary-dark);
}

.select-type:disabled {
    background: #999;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .subscription-type-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .type-price {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-left: 0;
        margin-top: 15px;
    }

    .select-type {
        width: 100%;
    }
}

/* =============================================
   CodeHub Card in Dashboard
============================================= */
.card-codehub {
    background: var(--bedev-white);
}

.card-codehub .card-icon {
    font-family: 'Fira Code', 'Consolas', monospace;
    background: var(--bedev-primary-light);
    color: var(--bedev-primary);
    padding: 10px 15px;
    border-radius: 10px;
    display: inline-block;
    font-size: 1.5rem;
}

.card-codehub .card-description {
    color: var(--bedev-gray);
    font-size: 0.9rem;
    margin: 0 0 20px 0;
}

.codehub-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.codehub-stats .stat-item {
    flex: 1;
    background: var(--bedev-primary-light);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.codehub-stats .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bedev-primary);
}

.codehub-stats .stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--bedev-gray);
    margin-top: 4px;
}

.codehub-recent {
    margin-bottom: 20px;
}

.codehub-recent h4 {
    color: var(--bedev-dark);
    font-size: 0.9rem;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.recent-snippets-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-snippets-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bedev-light);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

.recent-snippets-list li:hover {
    background: var(--bedev-primary-light);
}

.recent-snippets-list li:last-child {
    margin-bottom: 0;
}

.snippet-lang-badge {
    background: var(--bedev-primary);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.snippet-title-mini {
    flex: 1;
    font-size: 0.85rem;
    color: var(--bedev-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.snippet-author-mini {
    font-size: 0.75rem;
    color: var(--bedev-gray);
    flex-shrink: 0;
}

.codehub-actions-mini {
    margin-top: 15px;
}

.card-codehub .btn-primary-sm {
    background: linear-gradient(135deg, var(--bedev-primary) 0%, var(--bedev-primary-dark) 100%);
    display: inline-block;
    text-decoration: none;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.card-codehub .btn-primary-sm:hover {
    background: linear-gradient(135deg, var(--bedev-primary-dark) 0%, #002d5c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.4);
}

@media (max-width: 480px) {
    .codehub-stats {
        flex-direction: column;
        gap: 10px;
    }

    .recent-snippets-list li {
        flex-wrap: wrap;
    }

    .snippet-author-mini {
        width: 100%;
        margin-top: 5px;
    }
}

