/* Activity Feed / Command Center Styles */
/* Modern, unified dashboard matching NEPP's dark premium theme */

/* ============================================
   Command Center Layout
   ============================================ */

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

.user-greeting {
    flex: 1;
    min-width: 200px;
}

.user-greeting h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD600 0%, #FFC107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.dashboard-subtitle {
    color: #94A3B8;
    margin: 0;
    font-size: 1rem;
}

/* ============================================
   Quick Actions Panel
   ============================================ */

.quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(16, 27, 40, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.quick-action-btn:hover {
    background: rgba(255, 214, 0, 0.1);
    border-color: #FFD600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.15);
}

.quick-action-btn:active {
    transform: translateY(0);
}

.quick-action-btn svg {
    width: 18px;
    height: 18px;
    color: #FFD600;
    flex-shrink: 0;
}

/* ============================================
   Dashboard Content Container
   ============================================ */

.dashboard-content {
    padding: 40px 48px;
    flex: 1;
    min-height: 100vh;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 20px 16px;
    }
}

/* ============================================
   Main Content Grid
   ============================================ */

.command-center-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    align-items: start;
    max-width: 100%;
}

/* ============================================
   Activity Feed Container
   ============================================ */

.activity-feed-container {
    background: rgba(16, 27, 40, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    min-height: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.activity-feed-container:hover {
    border-color: rgba(255, 214, 0, 0.2);
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 1rem;
}

.feed-header h2 {
    color: #E5C100;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Filter Buttons
   ============================================ */

.feed-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #94A3B8;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(255, 214, 0, 0.08);
    border-color: rgba(255, 214, 0, 0.5);
    color: #FFD600;
}

.filter-btn.active {
    background: rgba(255, 214, 0, 0.15);
    border-color: #FFD600;
    color: #FFD600;
}

/* ============================================
   Activity Feed
   ============================================ */

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Activity Item Base - Matching announcements style */
.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #FFD600;
    border-left-color: #FFD600;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Activity Type Left Border Colors */
.activity-item[data-type="announcement"] {
    border-left-color: #FFD600;
}

.activity-item[data-type="event"] {
    border-left-color: #4CAF50;
}

.activity-item[data-type="form"] {
    border-left-color: #2196F3;
}

.activity-item[data-type="message"] {
    border-left-color: #9C27B0;
}

.activity-item[data-type="advising"] {
    border-left-color: #FF5722;
}

.activity-item[data-type="signup_sheet"] {
    border-left-color: #9b59b6;
}

/* Activity Icon */
.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon svg {
    width: 22px;
    height: 22px;
}

/* Icon backgrounds by type */
.activity-item[data-type="announcement"] .activity-icon {
    background: rgba(255, 214, 0, 0.15);
    color: #FFD600;
}

.activity-item[data-type="event"] .activity-icon {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.activity-item[data-type="form"] .activity-icon {
    background: rgba(33, 150, 243, 0.15);
    color: #2196F3;
}

.activity-item[data-type="message"] .activity-icon {
    background: rgba(156, 39, 176, 0.15);
    color: #9C27B0;
}

.activity-item[data-type="advising"] .activity-icon {
    background: rgba(255, 87, 34, 0.15);
    color: #FF5722;
}

.activity-item[data-type="signup_sheet"] .activity-icon {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

/* Activity Content */
.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 1rem;
}

.activity-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.activity-title a:hover {
    color: #FFD600;
}

/* Activity Badges */
.activity-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.activity-badge.urgent {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.activity-badge.new {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.activity-badge.pending {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.activity-badge.upcoming {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

/* Activity Description */
.activity-description {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Activity Meta */
.activity-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #94A3B8;
    flex-wrap: wrap;
}

.activity-meta svg {
    width: 14px;
    height: 14px;
    margin-right: 0.25rem;
}

.activity-group,
.activity-time,
.activity-author {
    display: flex;
    align-items: center;
}

.activity-author {
    color: #FFD600;
    font-weight: 600;
    background: rgba(255, 214, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

/* ============================================
   Dashboard Sidebar
   ============================================ */

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

/* Sidebar panels - Dark theme with glassmorphism */
.dashboard-sidebar .sidebar-panel,
.sidebar-panel.calendar-panel,
.sidebar-panel.pending-panel {
    background: rgba(16, 27, 40, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.dashboard-sidebar .sidebar-panel:hover,
.sidebar-panel.calendar-panel:hover,
.sidebar-panel.pending-panel:hover {
    border-color: rgba(255, 214, 0, 0.2) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-header h3 {
    color: #E5C100;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.view-all-link {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-all-link:hover {
    color: #FFD600;
}

.view-all-link::after {
    content: '→';
    font-weight: bold;
}

/* ============================================
   Upcoming Events Panel
   ============================================ */

.upcoming-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upcoming-event-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upcoming-event-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 214, 0, 0.3);
}

.event-date-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FFD600 0%, #FFC107 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #020817;
    font-weight: 700;
}

.event-date-box .month {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-date-box .day {
    font-size: 1.2rem;
    line-height: 1;
}

.event-details {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-time {
    font-size: 0.8rem;
    color: #94A3B8;
}

/* ============================================
   Pending Actions Panel
   ============================================ */

.pending-actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pending-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid #f44336;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pending-action-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}

.pending-action-item.form {
    border-left-color: #2196F3;
}

.pending-action-item.advising {
    border-left-color: #FF5722;
}

.pending-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.pending-action-item.form .pending-icon {
    background: rgba(33, 150, 243, 0.15);
    color: #2196F3;
}

.pending-action-item.advising .pending-icon {
    background: rgba(255, 87, 34, 0.15);
    color: #FF5722;
}

.pending-icon svg {
    width: 16px;
    height: 16px;
}

.pending-content {
    flex: 1;
    min-width: 0;
}

.pending-title {
    font-weight: 600;
    color: #fff;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pending-due {
    font-size: 0.75rem;
    color: #f44336;
}

.pending-action-item.form .pending-due {
    color: #2196F3;
}

.pending-action-item.advising .pending-due {
    color: #FF5722;
}

/* ============================================
   Loading & Empty States
   ============================================ */

.activity-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #94A3B8;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #FFD600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.activity-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748B;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.05);
}

.activity-empty svg {
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
    opacity: 0.4;
    color: #64748B;
}

.activity-empty h3 {
    color: #94A3B8;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.activity-empty p {
    margin: 0;
    font-size: 0.9rem;
}

.pending-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    color: #64748B;
    font-size: 0.85rem;
}

.pending-empty svg {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1200px) {
    .command-center-body {
        grid-template-columns: 1fr 300px;
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .command-center-body {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .command-center-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .user-greeting h1 {
        font-size: 1.5rem;
    }

    .quick-actions {
        justify-content: center;
    }

    .quick-action-btn span {
        display: none;
    }

    .quick-action-btn {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .quick-action-btn svg {
        width: 22px;
        height: 22px;
    }

    .feed-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .feed-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        width: 100%;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .feed-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .activity-feed-container {
        padding: 1rem;
    }

    .activity-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .activity-icon {
        width: 38px;
        height: 38px;
    }

    .activity-icon svg {
        width: 18px;
        height: 18px;
    }

    .dashboard-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .quick-actions {
        gap: 0.5rem;
    }

    .activity-meta {
        gap: 0.5rem;
    }

    .activity-description {
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
}