/* FundMe Platform Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Container and layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: #555;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    min-width: auto;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.full-width {
    width: 100%;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Authentication pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.auth-card {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.auth-link {
    text-align: center;
    margin-top: 2rem;
    color: #6c757d;
}

.auth-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: white;
}

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

/* Features section */
.features-section {
    padding: 5rem 0;
    background: white;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
}

.feature h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

/* Dashboard */
.dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    color: #2c3e50;
    margin-bottom: 0;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.stat-card h3 {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.section h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

/* Campaign cards */
.campaign-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.campaign-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.campaign-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.campaign-stats span {
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    border: 1px solid #dee2e6;
}

.status {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.status-active { color: #28a745; }
.status-suspended { color: #dc3545; }
.status-draft { color: #6c757d; }

.campaign-actions {
    display: flex;
    gap: 0.5rem;
}

.campaign-actions a {
    padding: 0.375rem 0.75rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.campaign-actions a:hover {
    background: #5a6fd8;
}

/* Activity items */
.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.activity-text {
    color: #333;
}

.activity-time {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Admin dashboard */
.admin-dashboard {
    padding: 2rem 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

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

.admin-campaign-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.admin-campaign-card h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.admin-campaign-card p {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Alerts */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    z-index: 1000;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Error pages */
.error-page {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.error-page h1 {
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-page p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Loading states */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-size: 1.2rem;
    color: #667eea;
    background: #f8f9fa;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .admin-sections {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .campaign-stats {
        flex-direction: column;
    }
    
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .campaign-actions {
        flex-direction: column;
    }
    
    .alert {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Admin Panel Styles */
.admin-panel {
    padding: 1rem 2rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0 1rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.admin-title h1 {
    margin: 0 0 0.5rem;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
}

.admin-title p {
    margin: 0;
    color: #6c757d;
    font-size: 1.1rem;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.admin-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* Enhanced Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color, #667eea);
}

.stat-card.primary::before { background: linear-gradient(90deg, #667eea, #764ba2); }
.stat-card.success::before { background: linear-gradient(90deg, #28a745, #20c997); }
.stat-card.warning::before { background: linear-gradient(90deg, #ffc107, #fd7e14); }
.stat-card.danger::before { background: linear-gradient(90deg, #dc3545, #e83e8c); }
.stat-card.info::before { background: linear-gradient(90deg, #17a2b8, #6f42c1); }

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-info h3 {
    margin: 0 0 0.5rem;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

/* Admin Sections */
.admin-main-sections {
    display: grid;
    gap: 2rem;
}

.admin-section {
    background: rgba(248, 249, 250, 0.5);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.admin-section h2 {
    margin: 0 0 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Tool Cards Grid */
.admin-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.admin-tool-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.admin-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    text-decoration: none;
    color: inherit;
}

.tool-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    flex-shrink: 0;
}

.tool-info h3 {
    margin: 0 0 0.5rem;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.tool-info p {
    margin: 0 0 0.75rem;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.tool-stats {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quick-action-btn.primary { border-color: #667eea; color: #667eea; }
.quick-action-btn.primary:hover { background: #667eea; color: white; }
.quick-action-btn.success { border-color: #28a745; color: #28a745; }
.quick-action-btn.success:hover { background: #28a745; color: white; }
.quick-action-btn.warning { border-color: #ffc107; color: #e67e22; }
.quick-action-btn.warning:hover { background: #ffc107; color: white; }
.quick-action-btn.info { border-color: #17a2b8; color: #17a2b8; }
.quick-action-btn.info:hover { background: #17a2b8; color: white; }

.action-icon {
    font-size: 1.2rem;
}

/* Button Styles */
.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Admin Section Headers */
.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.admin-stats-mini {
    display: flex;
    gap: 2rem;
}

.mini-stat {
    text-align: center;
}

.mini-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.mini-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.admin-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input, .filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.3s ease;
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input {
    width: 250px;
}

.filter-select {
    width: 120px;
}

/* Enhanced Data Tables */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table.enhanced th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.data-table.enhanced td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: top;
}

.data-table.enhanced tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* User Info Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.user-details {
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.user-email {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.user-id {
    color: #9ca3af;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

/* Status Info Styles */
.status-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-badge, .status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.verification-status {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.verified {
    color: #28a745;
    font-weight: 600;
}

.unverified {
    color: #dc3545;
    font-weight: 600;
}

/* Activity Info Styles */
.activity-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.activity-label {
    color: #6c757d;
    font-weight: 500;
}

.activity-value {
    color: #2c3e50;
    font-weight: 600;
}

/* Performance Info Styles */
.performance-info {
    display: flex;
    gap: 1rem;
}

.performance-metric {
    text-align: center;
    padding: 0.5rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    min-width: 60px;
}

.performance-metric.primary {
    background: rgba(102, 126, 234, 0.1);
}

.metric-value {
    display: block;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1rem;
}

.metric-label {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Enhanced Action Buttons */
.action-buttons.vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.btn-icon {
    margin-right: 0.5rem;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-top: 2px solid #dee2e6;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

/* Badges */
.badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    font-weight: 600;
}

.badge-admin { background-color: #dc3545; color: white; }
.badge-user { background-color: #28a745; color: white; }
.badge-active { background-color: #28a745; color: white; }
.badge-suspended { background-color: #ffc107; color: #212529; }
.badge-banned { background-color: #dc3545; color: white; }
.badge-pending { background-color: #6c757d; color: white; }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Fee Management */
.fee-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.fee-actions {
    margin-top: 2rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.analytics-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Campaign Management Styles */
.campaign-info h4 {
    margin: 0 0 0.5rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.campaign-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.campaign-id, .campaign-category {
    color: #6c757d;
    background: rgba(248, 249, 250, 0.8);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.flag-indicator {
    color: #dc3545;
    font-weight: 600;
}

.campaign-url a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

.creator-info {
    text-align: left;
}

.creator-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.creator-email {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.creator-date {
    color: #9ca3af;
    font-size: 0.8rem;
}

.progress-info {
    text-align: center;
}

.progress-numbers {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.raised {
    font-weight: 700;
    color: #28a745;
}

.goal {
    color: #6c757d;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

.progress-percent {
    font-size: 0.8rem;
    color: #495057;
    font-weight: 600;
}

.performance-metrics {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.metric-item {
    text-align: center;
    padding: 0.25rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 6px;
    min-width: 50px;
}

.fee-status {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
}

/* User Details Styles */
.user-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-section {
    background: rgba(248, 249, 250, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.detail-section h3 {
    margin: 0 0 1rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.detail-label {
    font-weight: 600;
    color: #495057;
}

.detail-value {
    color: #2c3e50;
}

.detail-stats {
    display: flex;
    gap: 1rem;
    justify-content: space-around;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-box .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-box .stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Activity Lists */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.activity-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-action {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.activity-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: #9ca3af;
    font-size: 0.8rem;
}

/* Flagged Content */
.flagged-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flagged-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #dc3545;
}

.flag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.flag-header h4 {
    margin: 0;
    color: #2c3e50;
}

.flag-details p {
    margin: 0.5rem 0;
    color: #495057;
}

.flag-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* System Logs */
.change-item {
    font-size: 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    margin: 0.1rem 0;
    display: inline-block;
}

/* Analytics Styles */
.growth-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.growth-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.growth-label {
    font-weight: 600;
    color: #495057;
}

.growth-value {
    font-weight: 700;
    color: #2c3e50;
}

.top-campaigns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-campaign-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.campaign-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.campaign-details h4 {
    margin: 0 0 0.25rem;
    color: #2c3e50;
}

.campaign-details p {
    margin: 0 0 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.campaign-metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.metric {
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #495057;
}

.category-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-item {
    display: grid;
    grid-template-columns: 120px 1fr 80px;
    gap: 1rem;
    align-items: center;
}

.category-name {
    font-weight: 600;
    color: #2c3e50;
    text-transform: capitalize;
}

.category-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.category-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.category-count {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: right;
}

.analytics-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Waiver Styles */
.waivers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.waiver-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #ffc107;
}

.waiver-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.waiver-header h4 {
    margin: 0;
    color: #2c3e50;
}

.waiver-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e67e22;
}

.waiver-details p {
    margin: 0.5rem 0;
    color: #495057;
}

.waiver-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-panel {
        padding: 1rem;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .user-details-grid {
        grid-template-columns: 1fr;
    }
    
    .growth-metrics {
        grid-template-columns: 1fr;
    }
    
    .category-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .analytics-actions {
        flex-direction: column;
    }
}