/* ============================================
   ADMIN PIPELINE PAGE - ADDITIVE STYLES
   Add this file AFTER admin-users-mobile.css
   ============================================ */

/* Card Grid 5 Columns */
.card-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

/* Deal List Item */
.deal-list-item {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
    transition: background 0.2s ease;
}

.deal-list-item:hover {
    background: rgba(96, 165, 250, 0.05);
}

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

/* Pending Review Badge */
.pending-review-badge {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Accordion/Collapsible Styles */
.accordion-header {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background: rgba(96, 165, 250, 0.05);
}

.accordion-toggle {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    color: #60a5fa;
}

.accordion-toggle.collapsed {
    transform: rotate(-90deg);
}

.accordion-content {
    max-height: 10000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.accordion-content.collapsed {
    max-height: 0;
    opacity: 0;
}

/* Section Filters */
.section-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.section-filters select {
    min-width: 150px;
}

/* Activity Cards for Mobile */
.activity-card {
    background: rgba(96, 165, 250, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.activity-cards-mobile {
    display: none;
}

/* Badge Error */
.badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Button Secondary */
.btn-secondary {
    background: rgba(71, 85, 105, 0.3);
    border: 1px solid rgba(71, 85, 105, 0.5);
    color: #F1F5F9;
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 0.5);
    border-color: rgba(71, 85, 105, 0.7);
}

.btn-secondary.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Adjust card grid for mobile */
    .card-grid-5 {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    /* Section Filters */
    .section-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .section-filters select,
    .section-filters button,
    .section-filters input {
        width: 100%;
    }
    
    /* Hide table, show cards */
    #activity-table-desktop {
        display: none !important;
    }
    
    .activity-cards-mobile {
        display: block !important;
        padding: 1rem;
    }
    
    /* Deal list items mobile adjustments */
    .deal-list-item {
        padding: 1rem;
    }
    
    .deal-list-item h3 {
        font-size: 1rem;
    }
    
    .deal-list-item .btn-sm {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .deal-list-item > div > div:last-child {
        width: 100%;
    }
    
    .deal-list-item > div > div:last-child > div:last-child {
        flex-direction: column;
        width: 100%;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .card-grid-5 {
        grid-template-columns: 1fr;
    }
}
