/* Styles extracted from default.php for the member portal */
.member-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.portal-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.help-link {
    position: absolute;
    top: 0;
    right: 0;
}

.help-box {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background: #777;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.help-box:hover {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    text-decoration: none;
        transition: all 0.2s ease-in-out;
}

.portal-header h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin: 0;
    font-weight: 300;
}

.portal-header .welcome-text {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0.5rem 0 2rem;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
}

.btn-secondary:hover {
    color: white;
    background: linear-gradient(135deg, #475569, #334155);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.login-container {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.login-container h2 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.login-container p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Tab Navigation */
.tab-navigation {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.tab-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e2e8f0;
}

.tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
    border-right: 1px solid #e2e8f0;
    min-width: 120px;
    position: relative;
}

.tab-button .badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    line-height: 1;
    vertical-align: middle;
}

.badge-unpaid {
    background: #dc2626;
    color: white;
}

.tab-button:last-child {
    border-right: none;
}

.tab-button.active {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
}

.tab-button:hover:not(.active) {
    background: #e2e8f0;
    color: #475569;
}

.tab-content {
    padding: 0;
    display: none;
}

.tab-content.active {
    display: block;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-header {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-content {
    padding: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #475569;
    flex-shrink: 0;
    margin-right: 1rem;
    min-width: 140px;
}

.info-value {
    color: #1e293b;
    text-align: right;
    flex-grow: 1;
    word-break: break-word;
}

.empty {
    color: #94a3b8;
    font-style: italic;
}

.renewal-card {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.renewal-card .card-header {
    background: rgba(255, 255, 255, 0.1);
}

.renewal-card .info-label {
    color: rgba(255, 255, 255, 0.9);
}

.renewal-card .info-value {
    color: white;
    font-weight: 600;
}

/* Invoice Table Styling */
.invoice-table-container {
    padding: 2rem;
    overflow-x: auto;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.invoice-table th {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.invoice-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.invoice-table tr:last-child td {
    border-bottom: none;
}

.invoice-table tr:hover {
    background-color: #f8fafc;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-paid {
    background: #dcfce7;
    color: #166534;
}

.status-unpaid {
    background: #fef2f2;
    color: #dc2626;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-inactive {
    background: #fef2f2;
    color: #dc2626;
}

.status-completed,
.status-finished {
    background: #dcfce7;
    color: #166534;
}

.status-registered {
    background: #dcfce7;
    color: #166534;
}

.status-available {
    background: #dbeafe;
    color: #1e40af;
}

.status-unavailable {
    background: #fef2f2;
    color: #dc2626;
}

.invoice-amount {
    font-weight: 600;
    color: #1e293b;
}

.btn-pay {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-pay:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: white;
    text-decoration: none;
}

.highlight-value {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .member-portal {
        padding: 1rem;
    }
    
    .portal-header h1 {
        font-size: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .info-label {
        min-width: auto;
        margin-right: 0;
    }
    
    .info-value {
        text-align: left;
    }
    
    .tab-nav {
        flex-direction: column;
    }
    
    .tab-button {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .tab-button:last-child {
        border-bottom: none;
    }
    
    .invoice-table-container {
        padding: 1rem;
    }
    
    .invoice-table {
        font-size: 0.875rem;
    }
    
    .invoice-table th,
    .invoice-table td {
        padding: 0.5rem;
    }
}

/* Event Styles */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.event-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.event-card.registered {
    border-color: #059669;
    background: linear-gradient(to right, #ffffff 0%, #f0fdf4 100%);
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.event-card.registered:hover {
    border-color: #059669;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.event-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    max-width: 70%;
}

.event-status {
    flex-shrink: 0;
}

.status-event,
.status-meeting,
.status-conference,
.status-webinar,
.status-workshop {
    background: #dbeafe;
    color: #1e40af;
}

.status-canceled,
.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.status-completed,
.status-finished {
    background: #dcfce7;
    color: #166534;
}

.status-registered {
    background: #dcfce7;
    color: #166534;
}

.status-available {
    background: #dbeafe;
    color: #1e40af;
}

.status-unavailable {
    background: #fef2f2;
    color: #dc2626;
}

.event-details {
    margin-bottom: 1rem;
}

.event-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.event-detail i {
    width: 16px;
    margin-right: 0.75rem;
    color: #6b7280;
    text-align: center;
}

.detail-label {
    font-weight: 600;
    color: #374151;
    margin-right: 0.5rem;
    min-width: 80px;
}

.detail-value {
    color: #6b7280;
    flex: 1;
}

.registration-open {
    color: #059669 !important;
    font-weight: 600;
}

.fee-amount {
    color: #dc2626 !important;
    font-weight: 600;
}

.event-description {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    border-left: 4px solid #3b82f6;
}

.event-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.btn-register {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-register:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

.no-data-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.no-data-message i {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.no-data-message h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.25rem;
    color: #374151;
}

.no-data-message p {
    margin: 0;
    font-size: 0.875rem;
}

.registration-options {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.registration-options h5 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #374151;
    font-weight: 600;
}

.registration-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.registration-type:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.registration-type-info {
    flex: 1;
    margin-right: 1rem;
}

.registration-type-info strong {
    display: block;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.registration-description {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.25rem 0;
    line-height: 1.4;
}

.registration-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: #059669;
    background: #dcfce7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.registration-form {
    flex-shrink: 0;
}

.registration-confirmed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-weight: 600;
}

.registration-confirmed i {
    color: #059669;
}

.registration-disabled {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-weight: 600;
}

.registration-disabled i {
    color: #dc2626;
}
