/* Dashboard CSS for Kishan's Fundraiser */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-button {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.menu-button:hover {
    background: #f0f0f0;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

.section-header {
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.update-time {
    font-size: 16px;
    color: #718096;
    font-style: italic;
    margin: 0;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: start;
}

/* Total Card */
.total-card {
    grid-column: 1 / 2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.total-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.9;
}

.total-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.total-donors {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.9;
}

.campaign-tag {
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Platform Cards */
.platform-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

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

.card-header {
    margin-bottom: 20px;
}

.platform-name {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

/* Payment Logos */
.payment-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    flex: 1;
    align-items: center;
}

.logo-item {
    background: #f7fafc;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.logo-item.gpay {
    color: #4285f4;
    background: rgba(66, 133, 244, 0.1);
    border-color: rgba(66, 133, 244, 0.2);
}

.logo-item.whatsapp {
    color: #25d366;
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.2);
    font-size: 14px;
}

.logo-item.phonePe {
    color: #5f259f;
    background: rgba(95, 37, 159, 0.1);
    border-color: rgba(95, 37, 159, 0.2);
}

.logo-item.paytm {
    color: #002970;
    background: rgba(0, 41, 112, 0.1);
    border-color: rgba(0, 41, 112, 0.2);
}

/* Platform Logos */
.platform-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.platform-logo.milaap {
    color: #e91e63;
    display: flex;
    align-items: center;
    gap: 10px;
}

.milaap-text {
    font-size: 24px;
    font-weight: 700;
    color: #e91e63;
}

.milaap-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #e91e63, #ff4081);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.milaap-icon::after {
    content: '♥';
    color: white;
    font-size: 16px;
}

.platform-logo.impact-guru {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.impact-guru-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.impact-text {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.guru-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #00bcd4, #4caf50);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guru-icon::after {
    content: '+';
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.platform-logo.gofundme {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gofundme-logo {
    display: flex;
    align-items: center;
    gap: 2px;
}

.go-text {
    font-size: 20px;
    font-weight: 700;
    color: #00b964;
}

.fund-text {
    font-size: 20px;
    font-weight: 700;
    color: #00b964;
}

.me-text {
    font-size: 20px;
    font-weight: 700;
    color: #00b964;
}

/* Platform Amount */
.platform-amount {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    margin-bottom: 8px;
}

.platform-donors {
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    text-align: center;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .total-card {
        min-height: 150px;
        padding: 25px;
    }
    
    .total-amount {
        font-size: 28px;
    }
    
    .total-donors {
        font-size: 14px;
    }
    
    .platform-card {
        min-height: 160px;
        padding: 20px;
    }
    
    .payment-logos {
        justify-content: center;
    }
    
    .platform-amount {
        font-size: 20px;
    }
    
    .platform-donors {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .total-amount {
        font-size: 24px;
    }
    
    .total-donors {
        font-size: 12px;
    }
    
    .platform-amount {
        font-size: 18px;
    }
    
    .platform-donors {
        font-size: 11px;
    }
    
    .payment-logos {
        gap: 6px;
    }
    
    .logo-item {
        padding: 6px 8px;
        font-size: 11px;
    }
}