/* Charity Banking Plugin - Member Frontend Styles */

.charity-banking-member-dashboard {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sidebar */
.dashboard-sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px 0;
    height: fit-content;
    position: sticky;
    top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.menu-item {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background-color: #f5f5f5;
    color: #1e5f9e;
}

.menu-item.active {
    background-color: #f5f5f5;
    color: #1e5f9e;
    border-left-color: #1e5f9e;
}

/* Main Content */
.dashboard-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-content h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Overview Cards */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.limit-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.withdrawal-day-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.verification-card {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.9;
}

.card p {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

/* Action Menu */
.action-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.action-item h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.action-item p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    letter-spacing: 2px;
    margin: 10px 0;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Transactions */
.transaction-list {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.transaction-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    flex: 1;
}

.transaction-type {
    font-weight: 600;
    color: #333;
}

.transaction-date {
    color: #999;
    font-size: 12px;
}

.transaction-amount {
    font-weight: 600;
    font-size: 16px;
}

.transaction-amount.in {
    color: #28a745;
}

.transaction-amount.out {
    color: #dc3545;
}

/* Withdrawal Modal */
.withdrawal-receipt {
    border: 2px solid #ddd;
}

.method-details {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.withdrawal-receipt-display {
    background: linear-gradient(to right, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.receipt {
    background: white;
    padding: 15px;
    border-radius: 5px;
}

.receipt p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

/* Fundraisers */
.fundraisers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.fundraiser-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.fundraiser-card:hover {
    transform: translateY(-5px);
}

.fundraiser-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.fundraiser-content {
    padding: 20px;
}

.fundraiser-content h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.fundraiser-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.progress-text {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Funding Options */
.funding-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.funding-option-btn {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.funding-option-btn:hover {
    border-color: #1e5f9e;
    background: #f9f9f9;
}

.option-icon {
    font-size: 32px;
}

.option-label {
    font-weight: 600;
    color: #333;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #1e5f9e;
    box-shadow: 0 0 0 3px rgba(30, 95, 158, 0.1);
}

.input-group {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.input-group-text {
    padding: 10px 15px;
    background: #f9f9f9;
    border-right: 1px solid #ddd;
    display: flex;
    align-items: center;
}

.input-group .form-control {
    border: none;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1e5f9e;
    color: white;
}

.btn-primary:hover {
    background-color: #164273;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: static;
    }
    
    .overview-cards {
        grid-template-columns: 1fr;
    }
    
    .funding-options {
        grid-template-columns: 1fr;
    }
}
