/* Modern NAPSA ERM Component Styles */
/* Consistent design system for all pages */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    --warning-gradient: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    --danger-gradient: linear-gradient(135deg, #eb3b5a 0%, #fc5c65 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --card-hover-shadow: 0 15px 40px rgba(0,0,0,0.12);
    --sidebar-color: #1e3a8a;
    --orange-hover: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Modern Actions Section */
.actions-section {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-200);
}

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

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

/* Modern Smaller Buttons */
.btn-modern {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.btn-modern i {
    font-size: 0.875rem;
}

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

.btn-modern-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-modern-outline {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-modern-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
    transform: translateY(-1px);
}

/* Modern Statistics Cards */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--gray-300);
}

/* Stats Card Icons */
.stats-card .stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.stats-card.total .stats-icon,
.stats-card.primary .stats-icon {
    background: var(--primary-gradient);
}

.stats-card.active .stats-icon,
.stats-card.success .stats-icon {
    background: var(--success-gradient);
}

.stats-card.parent .stats-icon,
.stats-card.info .stats-icon {
    background: var(--info-gradient);
}

.stats-card.risks .stats-icon,
.stats-card.warning .stats-icon {
    background: var(--warning-gradient);
}

.stats-card.danger .stats-icon {
    background: var(--danger-gradient);
}

/* Stats Card Content */
.stats-content {
    flex: 1;
}

.stats-card h3,
.stats-metric-value,
.risk-metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1;
}

.stats-card h6,
.stats-metric-label,
.risk-metric-label {
    color: #64748b;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Risk Stats Cards (alternative naming) */
.risk-stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.risk-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--gray-300);
}

.risk-stats-card .stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.risk-stats-card.total .stats-icon {
    background: var(--primary-gradient);
}

.risk-stats-card.critical .stats-icon {
    background: var(--danger-gradient);
}

.risk-stats-card.high .stats-icon {
    background: var(--warning-gradient);
}

.risk-stats-card.low .stats-icon {
    background: var(--success-gradient);
}

/* Responsive Design */
@media (max-width: 768px) {
    .actions-section {
        padding: 0.75rem 1rem;
    }

    .actions-left h5 {
        font-size: 0.9rem;
    }

    .btn-modern {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .stats-card,
    .risk-stats-card {
        padding: 1rem;
    }

    .stats-card .stats-icon,
    .risk-stats-card .stats-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .stats-card h3,
    .stats-metric-value,
    .risk-metric-value {
        font-size: 24px;
    }

    .stats-card h6,
    .stats-metric-label,
    .risk-metric-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .actions-section {
        flex-direction: column;
        align-items: stretch;
    }

    .actions-left,
    .actions-right {
        width: 100%;
        justify-content: space-between;
    }

    .stats-card,
    .risk-stats-card {
        padding: 0.875rem;
    }

    .stats-card h3,
    .stats-metric-value,
    .risk-metric-value {
        font-size: 20px;
    }
}

/* Card Metric Variant (for pages using card-metric class) */
.card-metric {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.card-metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--gray-300);
}

.card-metric:hover::before {
    opacity: 1;
}

.card-metric.primary::before {
    background: var(--primary-gradient);
}

.card-metric.success::before {
    background: var(--success-gradient);
}

.card-metric.warning::before {
    background: var(--warning-gradient);
}

.card-metric.info::before {
    background: var(--info-gradient);
}

.card-metric h6 {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.card-metric h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1;
}
