/* e-Lodge Frontend Styles */

.elodge-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.elodge-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.elodge-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
    font-size: 1.2em;
}

.elodge-meeting-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.elodge-meeting-item:last-child {
    border-bottom: none;
}

.elodge-rsvp-actions {
    margin-top: 10px;
}

.elodge-button {
    display: inline-block;
    padding: 6px 12px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.elodge-button:hover {
    background: #135e96;
    color: #fff;
}

.elodge-button.secondary {
    background: #f0f0f1;
    color: #2c3338;
    border: 1px solid #c3c4c7;
}

.elodge-button.secondary:hover {
    background: #f6f7f7;
    color: #2c3338;
}

.elodge-login-alert {
    padding: 15px;
    background: #f0f0f1;
    border-left: 4px solid #2271b1;
}

.elodge-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
}

.status-present {
    background: #00a32a;
}

.status-apology {
    background: #d63638;
}

.status-maybe {
    background: #dba617;
}

.status-dining {
    background: #2271b1;
}

.elodge-doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elodge-doc-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.elodge-doc-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #555;
}

@media (max-width: 600px) {
    .elodge-dashboard-grid {
        grid-template-columns: 1fr;
    }
}


/* Profile Styles */
.elodge-profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.profile-avatar img {
    border-radius: 50%;
    border: 3px solid #f8fafc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-title h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.5em;
}

.profile-title .reference {
    margin: 5px 0 0;
    font-size: 0.9em;
    color: #64748b;
}

.profile-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-item strong {
    display: block;
    font-size: 0.85em;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-item span {
    color: #334155;
    font-weight: 500;
}

/* Tabs System */
.elodge-tabs-nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid #f1f5f9;
}

.elodge-tab-link {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    transition: all 0.2s;
    border-radius: 8px 8px 0 0;
    position: relative;
    top: 2px;
}

.elodge-tab-link:hover {
    color: #2563eb;
    background: #f8fafc;
}

.elodge-tab-link.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
    background: #eff6ff;
}

.elodge-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.elodge-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Membership Cards */
.membership-detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.membership-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.membership-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 1.2em;
}

.membership-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.membership-dates h5 {
    margin: 0 0 15px;
    color: #475569;
    font-size: 1em;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.timeline-compact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-compact li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.timeline-compact li:last-child {
    border-bottom: none;
}

.timeline-compact .milestone {
    color: #334155;
    font-weight: 500;
}

.timeline-compact .date {
    color: #64748b;
    font-size: 0.9em;
}

.elodge-badge {
    background: #2271b1;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-active {
    background: #10b981;
}

.badge-pending {
    background: #f59e0b;
}

.badge-deceased {
    background: #64748b;
}