/**
 * iHandi Portal - Dashboard Module CSS
 * File: wp-content/plugins/ihandi-portal/assets/css/portal-dashboard.css
 * Based on: class-dashboard-module.php actual HTML output
 */

/* Dashboard Module Wrapper - Line 93 */
.dashboard-module {
    /* Container for all dashboard content */
}

/* Welcome Banner - Line 95 */
.dashboard-welcome {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.dashboard-welcome h2 {
    margin: 0 0 0.5rem 0;
    color: var(--portal-dark);
    font-size: 2rem;
}

.dashboard-date {
    margin: 0;
    color: var(--portal-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-date i {
    color: var(--portal-primary);
}

/* Dashboard Stats Grid - Line 102 */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Stat Cards - Line 103 */
.dashboard-stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Stat Icon */
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.stat-primary .stat-icon {
    background: rgba(23, 162, 184, 0.1);
    color: var(--portal-info);
}

.stat-info .stat-icon {
    background: rgba(23, 162, 184, 0.1);
    color: var(--portal-info);
}

.stat-warning .stat-icon {
    background: rgba(255, 193, 7, 0.1);
    color: var(--portal-warning);
}

.stat-danger .stat-icon {
    background: rgba(220, 53, 69, 0.1);
    color: var(--portal-danger);
}

.stat-success .stat-icon {
    background: rgba(40, 167, 69, 0.1);
    color: var(--portal-success);
}

.stat-secondary .stat-icon {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

/* Stat Content */
.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--portal-dark);
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--portal-text);
    font-weight: 500;
    margin: 0;
}

.stat-change {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: var(--portal-success);
}

.stat-change.negative {
    color: var(--portal-danger);
}

.stat-change i {
    font-size: 0.8rem;
}

/* Quick Actions - Line 193 */
.dashboard-quick-actions {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.dashboard-quick-actions h3 {
    margin: 0 0 1.5rem 0;
    color: var(--portal-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-quick-actions h3 i {
    color: var(--portal-primary);
}

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

.quick-action-btn {
    background: linear-gradient(135deg, var(--portal-primary), var(--portal-secondary));
    color: var(--portal-dark);
    border: none;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.quick-action-btn i {
    font-size: 2rem;
}

.quick-action-btn span {
    font-size: 0.95rem;
}

/* Two Column Layout - Line 223 */
.dashboard-two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Dashboard Cards - Line 225 */
.dashboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.dashboard-card-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--portal-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card-header h3 {
    margin: 0;
    color: var(--portal-dark);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-card-header h3 i {
    color: var(--portal-primary);
}

.dashboard-btn-link {
    background: none;
    border: none;
    color: var(--portal-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s ease;
}

.dashboard-btn-link:hover {
    color: var(--portal-secondary);
}

.dashboard-card-body {
    padding: 1.5rem;
}

/* Alert List - Line 232 */
.alert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.alert-warning {
    background: rgba(255, 193, 7, 0.05);
    border-left-color: var(--portal-warning);
}

.alert-item.alert-danger {
    background: rgba(220, 53, 69, 0.05);
    border-left-color: var(--portal-danger);
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-warning .alert-icon {
    background: rgba(255, 193, 7, 0.2);
    color: var(--portal-warning);
}

.alert-danger .alert-icon {
    background: rgba(220, 53, 69, 0.2);
    color: var(--portal-danger);
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    color: var(--portal-dark);
    margin-bottom: 0.3rem;
}

.alert-meta {
    font-size: 0.9rem;
    color: var(--portal-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.alert-action {
    background: var(--portal-primary);
    color: var(--portal-dark);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.alert-action:hover {
    background: var(--portal-secondary);
}

/* Activity Timeline - Line 267 */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--portal-light);
    border-radius: 8px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-icon.info {
    background: rgba(23, 162, 184, 0.2);
    color: var(--portal-info);
}

.activity-icon.warning {
    background: rgba(255, 193, 7, 0.2);
    color: var(--portal-warning);
}

.activity-icon.success {
    background: rgba(40, 167, 69, 0.2);
    color: var(--portal-success);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--portal-dark);
    margin-bottom: 0.3rem;
}

.activity-meta {
    font-size: 0.9rem;
    color: var(--portal-text);
    margin-bottom: 0.3rem;
}

.activity-time {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.activity-time i {
    font-size: 0.75rem;
}

/* Location Overview - Line 296 */
.location-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.location-card {
    background: var(--portal-light);
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.location-card:hover {
    border-color: var(--portal-primary);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid white;
}

.location-header h4 {
    margin: 0;
    color: var(--portal-dark);
    font-size: 1.1rem;
}

.location-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.location-status.status-active {
    background: rgba(40, 167, 69, 0.2);
    color: var(--portal-success);
}

.location-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-stat .stat-label {
    font-size: 0.9rem;
    color: var(--portal-text);
    font-weight: 500;
}

.location-stat .stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--portal-dark);
}

/* Dashboard Empty State - Line 253 */
.dashboard-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--portal-text);
}

.dashboard-empty i {
    font-size: 3rem;
    color: var(--portal-success);
    margin-bottom: 1rem;
}

.dashboard-empty p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-two-column {
        grid-template-columns: 1fr;
    }
    
    .location-overview-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .dashboard-welcome {
        padding: 1.5rem;
    }
    
    .dashboard-welcome h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .location-overview-grid {
        grid-template-columns: 1fr;
    }
}